Skip to content
New issue

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

Retianet中的一些问题 #49

Open
Puppet97 opened this issue Jan 18, 2021 · 2 comments
Open

Retianet中的一些问题 #49

Puppet97 opened this issue Jan 18, 2021 · 2 comments

Comments

@Puppet97
Copy link

感觉这里存在问题,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

@xg-chu
Copy link
Owner

xg-chu commented Jan 18, 2021

👍感谢你发现了这个问题,我会尽快进行测试并修改。

@dumyy
Copy link

dumyy commented Sep 29, 2021

取的最大IOU的下标,原anchor和top_k之后的label,基于最大iou的下标的索引关系应该就是一个2倍关系,其实把gt_assignment_for_gt*2就把label/bbox_targets的index和默认索引对应上了吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants