-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
There is a big issue with computing ctr_x and ctr_y in line126 and line127.
BFJDet/lib/det_oprs/fpn_roi_target.py
Lines 126 to 127 in 0194d5d
| ctr_x = all_rois[gt_assignment, 0] + 0.5 * (all_rois[gt_assignment, 2] - all_rois[gt_assignment, 0] + 1) | |
| ctr_y = all_rois[gt_assignment, 1] + 0.5 * (all_rois[gt_assignment, 3] - all_rois[gt_assignment, 1] + 1) |
But it is clear that in the line 87, that
all_rois is concatenated by rpn_rois and gt_rois which are matrices added with batch_id at their first columns.BFJDet/lib/det_oprs/fpn_roi_target.py
Line 87 in 0194d5d
| all_rois = torch.cat([rpn_rois[batch_roi_inds], gt_rois], axis=0) |
So I think it should be skipping the first column of
all_rois:ctr_x = all_rois[gt_assignment, 1] + 0.5 * (all_rois[gt_assignment, 3] - all_rois[gt_assignment, 1] + 1)ctr_y = all_rois[gt_assignment, 2] + 0.5 * (all_rois[gt_assignment, 4] - all_rois[gt_assignment, 2] + 1)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels