Skip to content

Commit

Permalink
Fixed bbox scaling to be applied to all boxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilder authored and hgaiser committed Dec 13, 2017
1 parent 9a89cd0 commit 850821a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ResNet50RetinaNet - COCO 2017.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"scores = detections[0, np.arange(detections.shape[1]), 4 + predicted_labels]\n",
"\n",
"# correct for image scale\n",
"detections[:, :4] /= scale\n",
"detections[0, :, :4] /= scale\n",
"\n",
"# visualize detections\n",
"for idx, (label, score) in enumerate(zip(predicted_labels, scores)):\n",
Expand Down

0 comments on commit 850821a

Please sign in to comment.