LiWentomng / OrientedRepPoints

The code for “Oriented RepPoints for Aerial Object Detection (CVPR 2022)”
268 stars 43 forks source link

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

Open Kris-Lcq opened 1 year ago

Kris-Lcq commented 1 year ago

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

LiWentomng commented 1 year ago

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

Kris-Lcq commented 1 year ago

十分感谢作者回复我的问题,我想再请问作者,在您的代码库里面有实现训练的时候使用的转换函数吗?我只找到了推理时候使用的转换函数,

---原始邮件--- 发件人: @.> 发送时间: 2023年3月28日(周二) 上午9:24 收件人: @.>; 抄送: @.**@.>; 主题: Re: [LiWentomng/OrientedRepPoints] 如何将边界框坐标(x1,y1,x2,y2,x3,y3,x4,y4)转换成(x,y,w,h,theta)的形式。 (Issue #36)

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

LiWentomng commented 1 year ago

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