ReDet icon indicating copy to clipboard operation
ReDet copied to clipboard

关于DOTA2COCO.py的问题?

Open kuazhangxiaoai opened this issue 4 years ago • 4 comments

image 请问一下,您在DOTA2COCO.py这个文件中,计算了x_min, y_min,x_max,y_max.我没看到关于angle的信息啊?那OBB-detection如何学习角度呢?还有就是,在数据prepare的时候,难道不用删除没有object的图片和txt吗? 谢谢

kuazhangxiaoai avatar Sep 13 '21 08:09 kuazhangxiaoai

数据里旋转bbox由polygon表示,在模型内会转成(x,y,w,h,a) https://github.com/csuhan/ReDet/blob/0b9addf3c2734659fd6ffc7824f2e659fde4419c/DOTA_devkit/DOTA2COCO.py#L58 prepare时,empty image的anotation是空的。

csuhan avatar Sep 13 '21 14:09 csuhan

数据里旋转bbox由polygon表示,在模型内会转成(x,y,w,h,a) https://github.com/csuhan/ReDet/blob/0b9addf3c2734659fd6ffc7824f2e659fde4419c/DOTA_devkit/DOTA2COCO.py#L58

prepare时,empty image的anotation是空的。

当annotation为空的时候,训练时,模型会自动跳过吗?

kuazhangxiaoai avatar Sep 14 '21 07:09 kuazhangxiaoai

在生成annotation时会过滤掉空样本

csuhan avatar Sep 15 '21 09:09 csuhan

The rotation of the bbox in the data is represented by polygon, which will be converted to (x, y, w, h, a) in the model.

https://github.com/csuhan/ReDet/blob/0b9addf3c2734659fd6ffc7824f2e659fde4419c/DOTA_devkit/DOTA2COCO.py#L58

When preparing, the anotation of the empty image is empty.

@csuhan In regression loss calculation, are the prediction and target boxes in this form (x, y, w, h, a) ?

And also, how did you define the angle a

If possible, can you give example of the angle definition? Thanks!

chandlerbing65nm avatar Jun 14 '22 09:06 chandlerbing65nm