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

classify/predict --save-txt fix #9478

Merged
merged 1 commit into from
Sep 18, 2022
Merged

classify/predict --save-txt fix #9478

merged 1 commit into from
Sep 18, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Sep 18, 2022

Signed-off-by: Glenn Jocher [email protected]

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced output options for classification in classify/predict.py.

πŸ“Š Key Changes

  • Added frame number to output paths for images and labels when processing video sequences.
  • Improved image and label output for webcam streams or when processing multiple images.
  • Changed the --save-txt flag default behavior to not save results to .txt by default.

🎯 Purpose & Impact

  • Precise Tracking: Frame numbers in filenames help in tracking and comparing results over video sequences 🎞️.
  • Flexibility: Adjustments ensure the code handles both single images and batch processing correctly, providing greater flexibility for different input types πŸ–ΌοΈ.
  • User Control: With the change to --save-txt, users now have more control over whether they want to save textual output or not, reducing unnecessary file generation πŸ“.

Signed-off-by: Glenn Jocher <[email protected]>
@glenn-jocher glenn-jocher linked an issue Sep 18, 2022 that may be closed by this pull request
2 tasks
@glenn-jocher
Copy link
Member Author

Classification --save-txt now saves one annotations file per image:

Screenshot 2022-09-18 at 19 33 35

@glenn-jocher glenn-jocher merged commit 120e27e into master Sep 18, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch September 18, 2022 17: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.

No labels stored for classify/perdict.py
1 participant