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

Maybe a bug? #5

Closed
MingtaoFu opened this issue Sep 8, 2020 · 2 comments
Closed

Maybe a bug? #5

MingtaoFu opened this issue Sep 8, 2020 · 2 comments

Comments

@MingtaoFu
Copy link

angle = (angle + PI / 4) % PI - PI / 4

Should it be angles?

@csuhan
Copy link
Owner

csuhan commented Sep 8, 2020

Thank you for your suggestion! This is indeed a mistake. We will update it later.
poly2rbox_torch is a function in the very early library for rbox-poly-bbox transformation.
Due to the change of data format (xywha for now, other than xyxyxyxy), it has been abandoned.
So, it will not affect the performace of S2ANet (as well as faster rcnn, retinanet).

@csuhan csuhan closed this as completed Sep 18, 2020
@Lg955
Copy link

Lg955 commented Jul 9, 2021

gx = dx * Rroi_w * torch.cos(Rroi_angle) \

gx = dx * Rroi_w * torch.cos(Rroi_angle) - dy * Rroi_h * torch.sin(Rroi_angle) + Rroi_x
gy = dx * Rroi_w * torch.sin(Rroi_angle) + dy * Rroi_h * torch.cos(Rroi_angle) + Rroi_y
gw = Rroi_w * dw.exp()
gh = Rroi_h * dh.exp()
ga = np.pi * dangle + Rroi_angle

Which formula or figure in the paper corresponds to these formulas?

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