meituan / YOLOv6

YOLOv6: a single-stage object detection framework dedicated to industrial applications.
GNU General Public License v3.0
5.69k stars 1.02k forks source link

Wrong labels on inferred images #903

Open Legerth opened 1 year ago

Legerth commented 1 year ago

Before Asking

Search before asking

Question

Hello,

I have the following issue (it happens with custom datasets as well as with the VOC used in the repo). After following and executing each chunk given in the yolov6_training notebook (succesfully, and using VOC), i can start training without issues, and it trains correctly. The issue starts when i try to infer on test images(i have tried several): The bounding boxes are very accurate on every image, but the labeling is not working at all, ie: People get labeled as birds, trains as sheep, and so on. I have looked everywhere i can think of but cant seem to find the issue.

I have also tried training with a custom dataset, with the same results (accurate bounding boxes but wrong labeling). Find attached some examples of inferred pictures. 000002 test2

Thank you in advance for your time Best regards.

Additional

No response

YahooKID commented 1 year ago

Halo, it seems that you don't set the yaml correctly. You can try to add --yaml data/voc.yaml when you use tools/infer.py because programme uses data/coco.yaml by default. The command you use will be like( you can set other parameters as you like) python tools/infer.py --yaml data/voc.yaml