Skip to content

Commit

Permalink
[fix] Fix detected objects in extract_features_vmb (facebookresearch#159
Browse files Browse the repository at this point in the history
)

* [fix] Correctly ignore the background class

* [fix] Output the correct number of objects
  • Loading branch information
rmrao authored and apsdehal committed Aug 22, 2019
1 parent 12f67cd commit 2df9160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythia/scripts/features/extract_features_vmb.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _process_feature_extraction(
feat_list.append(feats[i][keep_boxes])
bbox = output[0]["proposals"][i][keep_boxes].bbox / im_scales[i]
# Predict the class label using the scores
objects = torch.argmax(scores[keep_boxes][start_index:], dim=1)
objects = torch.argmax(scores[keep_boxes][:, start_index:], dim=1)

info_list.append(
{
Expand Down

0 comments on commit 2df9160

Please sign in to comment.