tinyvision / DAMO-YOLO

DAMO-YOLO: a fast and accurate object detection method with some new techs, including NAS backbones, efficient RepGFPN, ZeroHead, AlignedOTA, and distillation enhancement.
Apache License 2.0
3.75k stars 470 forks source link

如何开启矩形(rect)训练 #100

Closed Nirvana93 closed 1 year ago

Nirvana93 commented 1 year ago

Before Asking

Search before asking

Question

我训练时的输入图像尺寸为1024*128,请问如何通过修改配置文件或代码来实现rect矩形框训练?

Additional

No response

XianzheXu commented 1 year ago

当前版本的代码在训练和测试时只支持方形。

目前代码的默认逻辑是,不管输入图像是矩形还是方形,训练时dataloader会将图像resize成方形,再送入训练。在测试时,会自动将输入的图像resize成方形送入模型进行测试。注意,我们在resize时并不保证图像长宽比不变(根据我们的在visdrone和coco上的经验,这样效果更好)。

您可以先尝试默认设置训练,如果精度达不到预期,希望您再反馈给我们,我们安排时间做进一步的代码更新。

Nirvana93 commented 1 year ago

好的 感谢您的回复 我们来实验测试一下