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

如何将边界框坐标(x1,y1,x2,y2,x3,y3,x4,y4)转换成(x,y,w,h,theta)的形式。 #36

Open
Kris-Lcq opened this issue Mar 27, 2023 · 3 comments

Comments

@Kris-Lcq
Copy link

如何将边界框坐标(x1,y1,x2,y2,x3,y3,x4,y4)转换成(x,y,w,h,theta)的形式。请问作者有具体的代码实现吗?

@LiWentomng
Copy link
Owner

@Kris-Lcq 关于poly(x1,y1,x2,y2,x3,y3,x4,y4) 与 rbox(x,y,w,h,theta)之间的转换,请参考该脚本中的函数。
rbox2poly
poly2rbox

@Kris-Lcq
Copy link
Author

Kris-Lcq commented Mar 28, 2023 via email

@LiWentomng
Copy link
Owner

在训练过程中 采用 convexhull,该部分代码是cuda代码 并且是与giou loss写在一起的。
具体实现请参考giou_lossmmdet/ops/iou/src 文件夹下的脚本。

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