-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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
early stopping in training #294
Comments
Hm, if you run it without Lines 627 to 633 in 5e2429e
Put below in yolov5 folder, then call via from utils.utils import strip_optimizer;
strip_optimizer('weights/best.pt') |
https://pytorch.org/docs/stable/optim.html#torch.optim.lr_scheduler.ReduceLROnPlateau might also be of interest. |
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. |
Hey,
I just wanted to know how to automatically stop the training if the loss doesnt decrease for say 10 epochs and save the best and last weights?
if there is snothing i could do with the results.txt or something
Thanks
The text was updated successfully, but these errors were encountered: