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

Support .txt files as a line-by-line media list rather than streams #10059

Merged
merged 15 commits into from
Dec 3, 2022

Conversation

democat3457
Copy link
Contributor

@democat3457 democat3457 commented Nov 7, 2022

#8517 (comment)

Reads .txt files as lists of media to support multiple media in sequence. Uses the .streams file extension in place of .txt for lists of streams and rtsp.streams as the default streams file, as suggested.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Upgraded input handling for YOLOv5 to allow lists of images and streams from text files.

πŸ“Š Key Changes

  • πŸ“ Added support for list.txt files to specify lists of images to be processed.
  • 🌐 Added support for list.streams files for defining lists of stream URLs.
  • πŸ› οΈ Adapted webcam detection logic to recognize .streams file extension.
  • πŸ”„ Modified LoadImages and LoadStreams classes to handle new .txt and .streams file types.
  • πŸ“ Updated README.md and help strings in scripts to document new features.

🎯 Purpose & Impact

  • πŸš€ Streamlines batch processing by allowing users to load multiple images or streams from a single text file.
  • 🌍 Widens accessibility for users needing to process a large number of files or streams without specifying them individually.
  • πŸ’‘ Enhances the existing functionality to align with user workflows that involve bulk operations, potentially saving time and effort.

@glenn-jocher glenn-jocher self-assigned this Nov 7, 2022
@glenn-jocher
Copy link
Member

@democat3457 this is great, thanks for the PR! I've added a TODO to prioritize a review this week.

@glenn-jocher glenn-jocher merged commit 5dc1ce4 into ultralytics:master Dec 3, 2022
@glenn-jocher
Copy link
Member

@democat3457 PR is merged. Thank you for your contributions to YOLOv5 πŸš€ and Vision AI ⭐

@glenn-jocher glenn-jocher removed the TODO label Dec 3, 2022
@democat3457 democat3457 deleted the patch-1 branch December 19, 2022 19:31
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