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
Update default.yaml to include the save_dir parameter. #10153
base: main
Are you sure you want to change the base?
Conversation
The goal of your commit is to address an issue encountered during validation, specifically related to the save_dir argument not utilizing the value passed to the function as intended. Instead, it utilizes an incremented path, leading to unexpected behavior. This issue stems from the get_cfg function, where the condition if "save_dir" not in cfg: sets save_dir to None if it's not already defined in the configuration. As a result, the intended value of save_dir passed to the function is not used, leading to the undesired behavior during validation.
CLA Assistant Lite bot All Contributors have signed the CLA. ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hello @jbdebelle, thank you for submitting an Ultralytics YOLOv8 🚀 PR! To allow your work to be integrated as seamlessly as possible, we advise you to:
- ✅ Verify your PR is up-to-date with
ultralytics/ultralytics
main
branch. If your PR is behind you can update your code by clicking the 'Update branch' button or by runninggit pull
andgit merge main
locally. - ✅ Verify all YOLOv8 Continuous Integration (CI) checks are passing.
- ✅ Update YOLOv8 Docs for any new or updated features.
- ✅ Reduce changes to the absolute minimum required for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." — Bruce Lee
See our Contributing Guide for details and let us know if you have any questions!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10153 +/- ##
==========================================
- Coverage 73.46% 69.93% -3.53%
==========================================
Files 122 122
Lines 15622 15622
==========================================
- Hits 11476 10926 -550
- Misses 4146 4696 +550
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I have read the CLA Document and I sign the CLA |
recheck |
@jbdebelle certainly! 😊 It looks like you're requesting a re-evaluation of a particular aspect or issue. To assist you effectively, could you please provide more specific details about what you need rechecked? If it's pertaining to a potential bug or an update in code or documentation, a brief code snippet or direct link to the concerned part would be immensely helpful! |
|
Thanks for pointing this out! 😊 Indeed, including save_dir: 'path/to/your/directory' And the snippet you've provided should work as intended. If it doesn't, making sure that Keep us posted if you encounter any other issues! 🛠️ |
Then shouldn't my PR be merged into the main? This means that the current implementation doesn't support the use of the save_dir argument. My suggested fix will resolve this issue. |
Thanks for bringing this to our attention! 🌟 You're right; your PR addresses the Keep contributing! Your input helps make our project better for everyone. 👍 |
+1. I encountered the same issue of |
Hi there! 🎉 I'm glad to hear that modifying save_dir: 'desired/path/for/output' to their |
Hi @glenn-jocher! Will this be merged soon? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
@luca-depe hello! Thanks for reaching out. We're currently reviewing the changes to ensure everything aligns perfectly with our standards. If all goes well, it should be merged shortly. We appreciate your patience and enthusiasm! 🚀 Stay tuned! |
The goal of your commit is to address an issue encountered during validation, specifically related to the save_dir argument not utilizing the value passed to the function as intended. Instead, it utilizes an incremented path, leading to unexpected behavior.
This issue stems from the get_cfg function, where the condition if "save_dir" not in cfg: sets save_dir to None if it's not already defined in the configuration. As a result, the intended value of save_dir passed to the function is not used, leading to the undesired behavior during validation.
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Introducing a customizable save directory for results in Ultralytics configurations! 🚀
📊 Key Changes
save_dir
to specify the directory where results should be saved.🎯 Purpose & Impact