You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 16, 2022. It is now read-only.
Following code for predicting object in script/extract_features.py
# Predict the class label using the scoresobjects=torch.argmax(scores[keep_boxes][start_index:], dim=1)
cls_prob=torch.max(scores[keep_boxes][start_index:], dim=1)
my understanding is as following:
the size of scores[keep_boxes] is (100, 1601), start_index is for classes, prediction objects exclude foreground when it is 1.
the size of scores[keep_boxes][start_index:] is (99, 1601), what we want is (100, 1601) or (100, 1600) for prediction scores.
so the code should be writen like this if we want to compare the prediction scores of expected classes:
# Predict the class label using the scoresobjects=torch.argmax(scores[keep_boxes][:, start_index:], dim=1)
cls_prob=torch.max(scores[keep_boxes][:, start_index:], dim=1)