hsuanguo commented on a change in pull request #7188:
URL: https://github.com/apache/tvm/pull/7188#discussion_r560857820



##########
File path: python/tvm/topi/vision/ssd/multibox.py
##########
@@ -238,7 +238,8 @@ def hybrid_multibox_transform_loc(cls_prob, loc_pred, 
anchor, clip, threshold, v
                 out_loc[i, valid_count[i], 4] = out_coord[2]
                 out_loc[i, valid_count[i], 5] = out_coord[3]
                 valid_count[i] += 1
-
+        for j in range(valid_count[i], num_anchors):
+            out_loc[i, j, 0] = -1.0

Review comment:
       The class id is the most important part, usually if we set it to -1 as 
background, values on out_loc[i, j, 1~5] then will be ignored, so for a minimum 
change to fix, this should be enough.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to