yolo model train error
Hi ,What should I pay attention to if I want to train a model that is not pre training?
because i has try to train a few time,every time in the mAP does not go up.
i try use30000 image or 60000image or 10000image,and use diff dataset,i just want to train 1 class
thank you so much

33 Replies
Are you trying to continue training a model?
Because I see
resume=True in thereRecommended reading
https://discord.com/channels/1089800235347353640/1208561259268669451
Yes, because sometimes I interrupt the training. I saw in online tutorials that by enabling this, I can resume training from where it was interrupted.
If you want to continue a interrupted training that didn't finish, you can point
YOLO() to the last.pt and use resume=TrueThank you. Most of my training sessions are not interrupted. May I ask how many photos I should use for training? My mAP never increases with each session.
Can you share the labels.jpg and results.jpg from the train folder?
thank you so much



https://universe.roboflow.com/microsoft/coco
i download the data from this site
no not those
there are files that are called labels.jpg and results.jpg in the train folder ultralytics creates
result

They are image files called that inside the runs folder
i dont have file in runs folder

i change the path to D:/
thats just windows not loading the folder
let me find it,i am sorry
🙏
then it should be located in that folder

i gusee i dont have labels.jpg?

Wait why are you training on the coco dataset
The default models are trained on coco
because i try to train other dataset,but still failed.
so i try cocodataset 😆
i want to test is it data problem😆
Then you should say what the issue with your original dataset is
What are you trying to train?
i trying to train ,detect to person .
and i og dataset issue,is the mAP Not increasing,keey in 0.00xxx
You can use the original coco models if you want to detect people
With this code you will only detect people
my professor said I cannot use a model that has already been pre-trained 🫠
Amazing, great professor
You can try:
This will train the model on the coco dataset with only the person class
If you specify coco.yaml, ultralytics will automatically download the dataset it needs
thanks for your help🙏 ,but it already download few hour,is it normal ?

Yes, coco is a large dataset
The dataset is about 20gb, how fast it is depends on your internet speed
thank you,btw can i change the model to yolo12n.yaml?
I wouldn't recommend yolo12, its worse than 11
May I ask what the reason is? From the data, it seems that 12 is faster and more accurate.
Its much slower on cpu