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 support for saving labels as text (save_txt) #1547

Merged
merged 4 commits into from
Mar 21, 2023

Conversation

amanbasu
Copy link
Contributor

@amanbasu amanbasu commented Mar 21, 2023

Implemented save_one_txt() function to save labels as text files.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhancement of prediction saving options in validation script.

πŸ“Š Key Changes

  • Uncommented and updated the section of code that saves prediction results to a .txt file.
  • Added a new function called save_one_txt responsible for formatting and saving the predictions in the correct label format.

🎯 Purpose & Impact

  • 🎯 Purpose: To provide users with the ability to save model predictions in a text format, which is useful for various post-processing tasks, like evaluating model performance or further analysis.
  • πŸ’‘ Impact: Users can now save detailed prediction results on a per-image basis, facilitating a more granular review process. This can be especially valuable to researchers and practitioners who require an in-depth examination of model outputs.

@github-actions
Copy link

github-actions bot commented Mar 21, 2023

CLA Assistant Lite bot All Contributors have signed the CLA. βœ…

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ‘‹ Hello @amanbasu, thank you for submitting a 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 running git pull and git merge master locally.
  • βœ… Verify all YOLOv8 Continuous Integration (CI) checks are passing.
  • βœ… 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!

@amanbasu
Copy link
Contributor Author

I have read the CLA Document and I sign the CLA

@amanbasu
Copy link
Contributor Author

recheck

@glenn-jocher glenn-jocher changed the base branch from main to updates March 21, 2023 22:58
@glenn-jocher
Copy link
Member

@amanbasu PR merged into updates for next release. Thank you for your contributions!

@glenn-jocher glenn-jocher merged commit 60d4168 into ultralytics:updates Mar 21, 2023
@amanbasu amanbasu deleted the save_txt_support branch March 22, 2023 15:34
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