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

Non-Maximum Suppression #85

Open
i4yyds opened this issue Jan 9, 2019 · 1 comment
Open

Non-Maximum Suppression #85

i4yyds opened this issue Jan 9, 2019 · 1 comment

Comments

@i4yyds
Copy link

i4yyds commented Jan 9, 2019

Hello, is there any non-maximal suppression module in the code?

@Madi200
Copy link

Madi200 commented Jun 19, 2019

Non Maximal Suppression is used at Inference time. It's code is in test.py
https://github.com/hizhangp/yolo_tensorflow/blob/master/test.py
for i in range(len(boxes_filtered)): if probs_filtered[i] == 0: continue for j in range(i + 1, len(boxes_filtered)): if self.iou(boxes_filtered[i], boxes_filtered[j]) > self.iou_threshold: probs_filtered[j] = 0.0

    `filter_iou = np.array(probs_filtered > 0.0, dtype='bool')
    boxes_filtered = boxes_filtered[filter_iou]
    probs_filtered = probs_filtered[filter_iou]
    classes_num_filtered = classes_num_filtered[filter_iou]`

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

No branches or pull requests

2 participants