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

Move hyp and opt yaml save to top of train() #338

Merged
merged 1 commit into from
Jul 9, 2020
Merged

Move hyp and opt yaml save to top of train() #338

merged 1 commit into from
Jul 9, 2020

Conversation

alexstoken
Copy link
Contributor

@alexstoken alexstoken commented Jul 9, 2020

Fixes bug where scaled values were saved in hyp.yaml, which would cause continuity issues with --resume. Thanks to @jundengdeng for spotting the error in #104 .

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved log directory organization in YOLOv5's training script.

πŸ“Š Key Changes

  • Moved the code snippet responsible for saving the run settings (hyp.yaml and opt.yaml) to an earlier stage in the train.py script.

🎯 Purpose & Impact

  • Purpose: Ensures that run settings are saved before initializing the model and starting the training, making run configuration transparent and easily accessible right from the start of the training process.
  • Impact: Users can immediately verify training configurations and ensure reproducibility of their experiments. In case the training process encounters an issue early on, the necessary settings are already stored, which helps in debugging or re-running the experiment. πŸ“ˆπŸ”

Fixes bug where scaled values were saved in hyp.yaml, which would cause continuity issues with --resume
@glenn-jocher
Copy link
Member

Looks good, thanks!!

@glenn-jocher glenn-jocher merged commit 2b6209a into ultralytics:master Jul 9, 2020
@alexstoken alexstoken deleted the hyp_save_bugfix branch July 10, 2020 15:48
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.

None yet

2 participants