-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trian coco128 from scratch get 0 mAP #44
Comments
Hello @yxNONG, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom model or data training question, please note that Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
For more information please visit https://www.ultralytics.com. |
i try 50 epoch, get the mAP@50 great then 0 after 15 epoch, the problem is simply due to that train from scratch need more time to converge. |
@yxNONG yes you are correct, training from scratch takes longer to converge. Note that when training extremely small datasets like coco128.yaml from scratch, minimum training is 300 epochs, and recommended training is up to 1000 epochs. |
thinks for your great job !
i download the coco128 and try to train it from scratch:
python train.py --img 640 --batch 16 --epochs 10 --data ./data/coco128.yaml --cfg ./models/yolov5s.yaml --weights '' --device 4,5,6,7
The GIou, objectness, Classification work, However, the mAP, Precision and Recall is both 0, in each epoch.
Then, i try to use the pretrained weight:
python train.py --img 640 --batch 16 --epochs 1 --data ./data/coco128.yaml --cfg ./models/yolov5s.yaml --weights yolov5s.pt --device 4,5,6,7
in this case, everything work well
i get this with the original code.
since i didn't implement the Nvidia Apex, i change the mixed precision training = False
simply run again and get the same result.( mAP = 0 )
any idea about this ? thanks for your reply.
The text was updated successfully, but these errors were encountered: