Skip to content

Commit

Permalink
[YOLO]Add the probability to the image (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
siju-samuel authored and tqchen committed Oct 18, 2018
1 parent a6f32bf commit f1a4b94
Showing 1 changed file with 1 addition and 1 deletion.
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], 4)))
if category > -1:
imc, imh, imw = im.shape
width = int(imh * 0.006)
Expand Down

0 comments on commit f1a4b94

Please sign in to comment.