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

Add train.py --name cfg option #7202

Merged
merged 2 commits into from
Mar 31, 2022
Merged

Add train.py --name cfg option #7202

merged 2 commits into from
Mar 31, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Mar 29, 2022

Automatically names run as --cfg argument, i.e. python train.py --name cfg

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Automatic renaming feature added to training script when evolving models.

πŸ“Š Key Changes

  • A new conditional block has been added that automatically sets the name of the experiment to the stem of the configuration file, provided that the user has specified 'cfg' as the name.

🎯 Purpose & Impact

  • 🎯 Purpose: To streamline the process of model evolution by reducing the need for manual naming of each experiment, ensuring that each evolved model has a unique and meaningful name based on its configuration file.
  • πŸ’₯ Impact: Users evolving models will find their output directories more organized and easier to navigate, with a lower risk of overwriting previous experiments due to naming collisions. It can also aid in the recognition of which model configuration was used just by looking at the name.

Automatically names run as --cfg argument
@glenn-jocher glenn-jocher self-assigned this Mar 29, 2022
@glenn-jocher glenn-jocher merged commit df9008e into master Mar 31, 2022
@glenn-jocher glenn-jocher deleted the update/train branch March 31, 2022 11:17
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
Automatically names run as --cfg argument
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

1 participant