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

Updated detect.py to save images in images/ directory when save_txt is True #12914

Open
wants to merge 57 commits into
base: master
Choose a base branch
from

Conversation

harshdhamecha
Copy link
Contributor

@harshdhamecha harshdhamecha commented Apr 13, 2024

Updated detect.py to save images in the images directory:

Earlier, inference images were saved in the detect/exp directory, and labels were saved in the detect/exp/labels directory. The proposed changes save images in the detect/exp/images directory to better organize and distinguish images from labels and crops.

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Enhanced File Organization for Detection Outputs 📁✨

📊 Key Changes

  • Introduced separate directories for images and labels when save_txt is set to true.
  • Images will now be saved in an "images" folder, and label files in a "labels" folder within the specified project directory.

🎯 Purpose & Impact

  • Improved Organization: Creates a cleaner directory structure by segregating images and labels, making it simpler for users to navigate and manage their output files.
  • Enhanced Usability: This change is especially beneficial for projects requiring separate handling or analysis of images and label files, streamlining workflows.
  • Potential Impact: Users who rely on the existing file structure may need to adjust their post-detection processes to accommodate these new directories. However, the overall impact is positive, promoting a more organized and efficient file management approach.

Copy link
Contributor

@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 @harshdhamecha, thank you for submitting a YOLOv5 🚀 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/yolov5 master 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 YOLOv5 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

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.

2 participants