Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review #6

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Review #6

wants to merge 8 commits into from

Conversation

sahnilab
Copy link

No description provided.

model.py Outdated
# indices = tf.image.non_max_suppression(
# normalized_boxes, scores, self.proposal_count,
# self.nms_threshold, name="rpn_non_max_suppression")
indices = tf.image.non_max_suppression(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file contains original SeBRe model logic, and results in invalid detection results, even when running detection using weights that were also trained with normal non_max_suppression.

invalid

"POOL_SIZE 7\n",
"POST_NMS_ROIS_INFERENCE 1000\n",
"POST_NMS_ROIS_TRAINING 2000\n",
"ROI_POSITIVE_RATIO 0.33\n",
"RPN_ANCHOR_RATIOS [0.5, 1, 2]\n",
"RPN_ANCHOR_SCALES (32, 64, 128, 256, 512)\n",
"RPN_ANCHOR_SCALES (16, 32, 64, 128, 256)\n",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I played with a few different factors of these values, but they did not seem to improve the results.


# Non-max suppression
def nms(normalized_boxes, scores):
indices, scores = tf.image.non_max_suppression_with_scores(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches the call I made when generating the initial "softmax" weights, though running detection with the corresponding weights does not yield any results.

@sahnilab sahnilab marked this pull request as draft May 12, 2023 05:10
@sahnilab sahnilab marked this pull request as ready for review May 12, 2023 05:11
@sahnilab sahnilab marked this pull request as draft May 12, 2023 05:13
@sahnilab sahnilab marked this pull request as ready for review May 12, 2023 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant