-
-
Notifications
You must be signed in to change notification settings - Fork 16.1k
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
What's the difference between last.pt&best.pt, and which one should i use when i test my custom data? #582
Comments
Hello @PromiseXu1, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook , Docker Image, and Google Cloud Quickstart Guide for example environments. 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 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. |
@PromiseXu1 last.pt are the weights from the last epoch of training. best.pt are the best weights recorded during training. |
@glenn-jocher ah it seems so obviously, thanks for your patient... but i find sometimes best.pt not always be there, and i find someone have mentioned it, are you dealing with it? |
@PromiseXu1 Because in exp11, when you resume from another exp, the model you trained didn't have better mAP than the one you resume from. |
@PromiseXu1 --resuming still has a few bugs to iron out, so I would avoid it as much as possible. Best.pt will be saved anytime a new best fitness is observed on your validation set. We define fitness as a weighted combination of metrics: Lines 881 to 885 in 48e15be
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Lines 881 to 885 in 48e15be
Does this mean the weights for new best fitness will be recorded even if the model already overfits? |
@Yu-Hang they are exactly as they sound, the last and best checkpoints during your training. If the model overfits then by definition there will be no new best fitness. |
Let me ask more specifically. The fitness function does not include any loss metrics. So, if you train for a large epoch, [P, R, mAP@0.5, mAP@0.5:0.95] are increasing, but some val loss starts to increases as well (which indicates overfitting?). In this case, will this creates new best fitness? |
I have tried your work of yolov3 on my custom data, and when i train on yolov5 i find that yolov5 is more excellent! I just train for 100 epochs, the map50 have reached at 80! And i will train more epochs to see if it could be better .
But the question is that when i finish the train, and start to test, which weight.pt should i choose? And what's the difference between last.pt and best.pt?
Could you help me? Thanks sincerely.
The text was updated successfully, but these errors were encountered: