0

I have trained 215 pics which are contains chess pieces with using yolov8m.pt as pre-trained model and epoch value was 75.

!yolo task=detect mode=train model=yolov8m.pt data={dataset.location}/data.yaml epochs=75 imgsz=800 plots=True

Then when I tried that model it detected stuff which is not in train set. How can I solve that problem.

enter image description here

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36
gurselturkeri
  • 71
  • 1
  • 8

1 Answers1

0

The manner in which you can solve this problem is to add images to your dataset such as the ones above/similar, in which there are no labels of interest.

If you only trained on images and labels from the chess training pieces, it's likely that the model would yield false positives such as the ones above.

For both YoloV5 and YoloV8, it is recommended that you also include background images(images with no labels) which could amount from 1% to 10% of your entire dataset.

Timbus Calin
  • 13,809
  • 5
  • 41
  • 59