-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Fix result saving issue when multi-stream detection #19297
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: ultralytics/engine/predictor.py
Did you find this useful? React with a 👍 or 👎 |
All Contributors have signed the CLA. ✅ |
👋 Hello @XevenQC, thank you for submitting an To streamline the review process, please review the following checklist:
Additional Notes:If possible, please provide a minimal reproducible example (MRE) or additional context to help us test your fix more efficiently. For example:
For more guidance, please refer to our Contributing Guide. If you have any questions or face any issues, feel free to leave a comment. We're here to help. 🚀 Thank you again for your contribution to Ultralytics! 🌟 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19297 +/- ##
=======================================
Coverage 73.25% 73.25%
=======================================
Files 129 129
Lines 17590 17590
=======================================
Hits 12886 12886
Misses 4704 4704
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I have read the CLA Document and I sign the CLA |
@XevenQC Hi thanks for the PR! How about we directly add the modifications to the ultralytics/ultralytics/data/loaders.py Line 109 in c05d6d4
something like: self.sources = [ops.clean_str(x).replace(os.path.sep, "_").replace(".", "_") for x in sources] # clean source names for later |
It would save the results of all webcam in the same video file with name 101.avi when the RTSP addresses with the same suffix, such as below rtsp://admin:hik12345@10.224.191.241:5560/Streaming/Channels/101 rtsp://admin:hik12345@10.224.191.241:5564/Streaming/Channels/101 Signed-off-by: Chao Qin <chaoqin_cmkj@163.com>
@XevenQC Thanks for the updates! I removed the update in |
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
@Laughing-q thanks for the review and updates, looks good, merging! |
🎉 This PR is officially merged! Huge thanks to @XevenQC for leading the charge on improving cross-platform compatibility, and to @glenn-jocher, @Y-T-G, and @Laughing-q for your valuable contributions and insights. 🛠️🌍 Your work ensures smoother file handling and a better experience for everyone in the community—true craftsmanship in action! 👏 As Marcus Aurelius said, "What stands in the way becomes the way." By tackling and refining these nuanced challenges, you've paved the way for a more resilient system, empowering users to create without barriers. 🚀 Your contributions matter and truly make a difference. Here's to more impactful collaborations ahead! 💡🌟 |
It would save the results of all streams in the same video file with name 101.avi when the RTSP addresses with the same suffix, such as below
rtsp://admin:hik12345@10.224.191.241:5560/Streaming/Channels/101 rtsp://admin:hik12345@10.224.191.241:5564/Streaming/Channels/101
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Improves handling of video source paths in the
loaders.py
module to ensure better compatibility across platforms. 🔧📊 Key Changes
sources
cleaning to replace OS-specific path separators (e.g.,/
or\
) with underscores (_
) in video source names.🎯 Purpose & Impact