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

[YOLO]Add the probability to the image #1910

Merged
merged 2 commits into from
Oct 18, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nnvm/python/nnvm/testing/yolo_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def draw_detections(im, dets, thresh, names, classes):
if det['prob'][j] > thresh:
if category == -1:
category = j
labelstr.append(names[j])
labelstr.append(names[j] + "(" + str(round(det['prob'][j]*100, 2)) + ")")
Copy link
Contributor

@PariksheetPinjari909 PariksheetPinjari909 Oct 18, 2018

Choose a reason for hiding this comment

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

Yes, it will better for user to know the probability in the image itself. Either you add a % sign or keep probability as it is upto 4 decimals

if category > -1:
imc, imh, imw = im.shape
width = int(imh * 0.006)
Expand Down