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

Fix val.py study plot #4831

Merged
merged 3 commits into from
Sep 16, 2021
Merged

Fix val.py study plot #4831

merged 3 commits into from
Sep 16, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Sep 16, 2021

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Update to validation plotting function for enhanced flexibility and improved file management.

πŸ“Š Key Changes

  • Renamed plot_study_txt to plot_val_study to reflect its usage more accurately.
  • Extended functionality to plot either a single study.txt file or all study*.txt files in a directory.
  • Added save_dir variable to determine the saving directory based on whether a file or directory is provided.

🎯 Purpose & Impact

  • The renaming clarifies the purpose of the function, making the codebase more understandable and maintainable. 🧹
  • The added flexibility allows users to plot validation studies from different run instances more conveniently, which is beneficial for comparing model performances. πŸ“ˆ
  • The updated file saving approach ensures that output images are neatly organized and easy to locate, enhancing user experience. πŸ“‚

@glenn-jocher glenn-jocher linked an issue Sep 16, 2021 that may be closed by this pull request
@glenn-jocher glenn-jocher merged commit 27a4736 into master Sep 16, 2021
@glenn-jocher glenn-jocher deleted the fix/val_study_plot branch September 16, 2021 15:55
CesarBazanAV pushed a commit to CesarBazanAV/yolov5 that referenced this pull request Sep 29, 2021
* Fix val.py study plot

* call plot_val_study

* Rename plot_study_txt to plot_val_study
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Fix val.py study plot

* call plot_val_study

* Rename plot_study_txt to plot_val_study
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.

savefig in plot_study_text will not save plot.
1 participant