Skip to content
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

Resume yolov8 training if it’s interrupted #2511

Open
alinaivanovaoff opened this issue Dec 12, 2024 · 1 comment
Open

Resume yolov8 training if it’s interrupted #2511

alinaivanovaoff opened this issue Dec 12, 2024 · 1 comment
Assignees

Comments

@alinaivanovaoff
Copy link

Hi everyone,

First of all, thank you for your excellent work on implementing YOLOv8!

I have a question: does your YOLOv8 implementation include an option to resume training if it gets interrupted, similar to the functionality provided by Ultralytics?

How do I resume training if it’s interrupted?
YOLOv8 makes it easy to resume training from where it was interrupted by simply using the resume=True flag in your training command.

Looking forward to your response!

@paraynaud
Copy link

Hello, you can use callbacks to save the weights found across your training with the fit method.
To do so, take a look at the ModelCheckpoint callback.
The weights saved are monitored by the loss function or the metric you choose.

By using this callback, even if your training is interrupted for whatever reason, you can always start a new training based on the weights you found so far.
There is an option to keep only the best weight you found across the epochs, but you can also store the last weights found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants