WongKinYiu / PyTorch_YOLOv4

PyTorch implementation of YOLOv4
1.86k stars 585 forks source link

How to improve the detection of extreme aspect ratio targets #393

Closed q1135718080 closed 2 years ago

q1135718080 commented 2 years ago

My image size is 2048 * 2000, in which some crack targets are 20 pixels wide and 2000 pixels high. I can't detect them at all. What should I do?Thank you very much! @WongKinYiu

abcc235 commented 2 years ago

你对预设的anchor重新聚类了吗,更换数据集以及图片尺寸时,首先应该聚类得出最新的尺寸并在.cfg文件中做出更改

q1135718080 commented 2 years ago

聚类了,大部分短的裂缝能检测到,那种2000像素长度的裂缝一个都没检测出来

q1135718080 commented 2 years ago

https://github.com/ultralytics/yolov5/pull/5556我在yolov5的问题中找到了这个,但是不知道该怎么解决

q1135718080 commented 2 years ago

solved