We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
感觉这里存在问题,Retinanet部分中,取了与gt重合度最大的iou的下标,然后将其对应的gt标签置为gt的标签,因为前面取了top_k个与anchor对应的gt,假设这里top_k=2,anchor数量为A,那么labels数量就是A*2,此时gt_assignment_for_gt中anchor的下标就和原来anchor下标无法对应了,因为anchor相当于取了top_k份,那么顺序就发生了改变 if config.allow_low_quality: labels[gt_assignment_for_gt] = gt_boxes_perimg[:, 4] low_quality_bbox_targets = bbox_transform_opr( anchors[gt_assignment_for_gt], gt_boxes_perimg[:, :4]) bbox_targets[gt_assignment_for_gt] = low_quality_bbox_targets
The text was updated successfully, but these errors were encountered:
👍感谢你发现了这个问题,我会尽快进行测试并修改。
Sorry, something went wrong.
取的最大IOU的下标,原anchor和top_k之后的label,基于最大iou的下标的索引关系应该就是一个2倍关系,其实把gt_assignment_for_gt*2就把label/bbox_targets的index和默认索引对应上了吧
No branches or pull requests
感觉这里存在问题,Retinanet部分中,取了与gt重合度最大的iou的下标,然后将其对应的gt标签置为gt的标签,因为前面取了top_k个与anchor对应的gt,假设这里top_k=2,anchor数量为A,那么labels数量就是A*2,此时gt_assignment_for_gt中anchor的下标就和原来anchor下标无法对应了,因为anchor相当于取了top_k份,那么顺序就发生了改变
if config.allow_low_quality:
labels[gt_assignment_for_gt] = gt_boxes_perimg[:, 4]
low_quality_bbox_targets = bbox_transform_opr(
anchors[gt_assignment_for_gt], gt_boxes_perimg[:, :4])
bbox_targets[gt_assignment_for_gt] = low_quality_bbox_targets
The text was updated successfully, but these errors were encountered: