-
-
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
Self-contained checkpoint --resume
#8839
Conversation
@kalenmike ok I think has all we need. The idea is you can take one of these new fully-contained partially-trained checkpoints, download it, and then It will create save_dir and resume training from where it left off automatically. For HUB I think what we need on the server/API side is that when ultralytics.start(key) sees an existing partially trained model in the database that it downloads it's last.pt and then runs So for the user the command to start a new training or resume an existing training would be the same, and it would be up to us to handle them correctly depending on the model status in the database (fully or partially trained). |
--resume
for more information, see https://pre-commit.ci
…nto update/resume_from_checkpoint
* Single checkpoint resume * Update train.py * Add hyp * Add hyp * Add hyp * FIX * avoid resume on url data * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * avoid resume on url data * avoid resume on url data * Update Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Make checkpoints fully contained, allow resume directly from any checkpoint.
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Improved checkpoint handling and enhanced URL checks in training scripts.
📊 Key Changes
hyp
) are now saved with checkpoint for improved reproducibility.is_url
function check to verify if a given string is a valid URL.parse_opt
function.🎯 Purpose & Impact
is_url
) provides more robust validation and ensures that training data can be correctly accessed from remote sources. 🌍