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
According to your notes, all of the parameters's shape at zero index should be consistent in Loss class's forward function. But according to my dubug results, the shape of passed parameters is not the same.
According to your notes and my understanding, I made the following two changes:
In model/anchors.py def anchor_target(batched_anchors, batched_gt_bboxes, batched_gt_labels, assigners, nclasses):
Be modified as: assigned_gt_labels_weights[pos_flag] = 1
After the revision, the shape at zero index of the bbox_cls_pred and batched_bbox_labels will be match with others variable. ( bbox_cls_pred and batched_bbox_labels at 109/180 and 111/182 row in train.py)
Just switched positions. Because batched_bbox_labels maybe contains the value of -1, If num_cls_pos is assigned first, It can also lead to mismatched shapes.
And according to the issue of #38, I made the following change in train.py.
According to your notes, all of the parameters's shape at zero index should be consistent in Loss class's forward function. But according to my dubug results, the shape of passed parameters is not the same.
According to your notes and my understanding, I made the following two changes:
Be modified as:
assigned_gt_labels_weights[pos_flag] = 1
After the revision, the shape at zero index of the bbox_cls_pred and batched_bbox_labels will be match with others variable. ( bbox_cls_pred and batched_bbox_labels at 109/180 and 111/182 row in train.py)
Be modified as:
Just switched positions. Because batched_bbox_labels maybe contains the value of -1, If num_cls_pos is assigned first, It can also lead to mismatched shapes.
And according to the issue of #38, I made the following change in train.py.
Be modified as:
The same goes for line 173-175.
The text was updated successfully, but these errors were encountered: