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

Make sure best.pt model file is preserved ClearML #9265

Merged

Conversation

thepycoder
Copy link
Contributor

@thepycoder thepycoder commented Sep 2, 2022

Adresses #9251
There are 2 model upload point in the code. One of them did not have the necessary argument to preserve the model file.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced ClearML logging behavior in YOLOv5 training callbacks.

πŸ“Š Key Changes

  • Modified the on_train_end method within the logging utilities.
  • Added an auto_delete_file=False parameter to the ClearML update_output_model call to prevent automatic deletion of model files.

🎯 Purpose & Impact

  • 🎯 Purpose: To ensure that the model files are retained and not automatically deleted when the ClearML task concludes, providing more consistent model management within the YOLOv5 training process.
  • 🎯 Impact: Users integrating YOLOv5 with ClearML will have a more reliable and explicit handling of their output models, reducing the risk of unintentional data loss.

@glenn-jocher glenn-jocher linked an issue Sep 3, 2022 that may be closed by this pull request
2 tasks
@glenn-jocher glenn-jocher merged commit 5cb9fe6 into ultralytics:master Sep 3, 2022
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
* Make sure best.pt model file is preserved ClearML

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

ClearML integration removes the best checkpoint after uploading to the server
2 participants