Skip to content

Write date in checkpoint file#5514

Merged
glenn-jocher merged 3 commits intoultralytics:masterfrom
developer0hye:patch-10
Nov 5, 2021
Merged

Write date in checkpoint file#5514
glenn-jocher merged 3 commits intoultralytics:masterfrom
developer0hye:patch-10

Conversation

@developer0hye
Copy link
Copy Markdown
Contributor

@developer0hye developer0hye commented Nov 5, 2021

Write date in checkpoint file

Related to #5513

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Improvements in model checkpoint metadata with datetime addition.

📊 Key Changes

  • Imported datetime module in train.py.
  • Extended the model checkpoint dictionary to include the current date and time when saving.

🎯 Purpose & Impact

  • The addition of the current date and time ('date': datetime.now().isoformat()) to the model's checkpoint information allows users to track when each checkpoint was created, improving model versioning and reproducibility.
  • This tweak aids users in organizing their training runs more effectively, potentially leading to a smoother development and debugging process. 🕒📈

@glenn-jocher glenn-jocher linked an issue Nov 5, 2021 that may be closed by this pull request
2 tasks
@glenn-jocher glenn-jocher merged commit 99a45ba into ultralytics:master Nov 5, 2021
@glenn-jocher
Copy link
Copy Markdown
Member

@developer0hye PR is merged. Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐

@developer0hye developer0hye deleted the patch-10 branch November 5, 2021 11:48
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* write date in checkpoint file

write date in checkpoint file

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

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

* isoformat

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

Save date in checkpoint file

2 participants