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

horizontal_overlaps计算是否存在问题? #5

Open
wytcsuch opened this issue Sep 26, 2022 · 1 comment
Open

horizontal_overlaps计算是否存在问题? #5

wytcsuch opened this issue Sep 26, 2022 · 1 comment

Comments

@wytcsuch
Copy link

wytcsuch commented Sep 26, 2022

您好,看了您的代码,非常适合初学者读。这里有一个问题请教,网络产生的anchor是 [xc, yc, w, h, angle]的形式,由于gt也是 [xc, yc, w, h, angle]的形式,所以在计算horizontal_overlaps 的时候您将gt通过obb2hbb_oc转成了hbb的形式,但是anchor并没有转啊,这怎么求horizontal_overlaps的呢?

horizontal_overlaps = bbox_overlaps(
anchor.clone(), # generate anchor data copy
obb2hbb_oc(bbox_annotation[:, :-1]))

我理解应该是
horizontal_overlaps = bbox_overlaps(
obb2hbb_oc(anchor.clone()), # generate anchor data copy
obb2hbb_oc(bbox_annotation[:, :-1]))
请问我的理解是否存在偏差?

@ztysdu
Copy link

ztysdu commented Apr 16, 2023

您好,我也研究这个项目的代码.我认为这是因为本身生成的锚框theta就为0,所以不需要旋转

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

2 participants