Poor Streaming Performance #19174
Replies: 3 comments 8 replies
-
👋 Hello @RhysDeLoach, thank you for sharing your experience with Ultralytics 🚀! We’re here to help. We recommend checking out our Docs where you’ll find extensive information on both Python and CLI usage. There may already be pre-existing solutions or optimizations to improve streaming performance. If this is a 🐛 Bug Report regarding streaming performance, please provide a minimum reproducible example including:
If this is a ❓ Question regarding improving streaming performance, some additional context such as camera specs, frame rate, resolution, and network bandwidth (for wireless setups) might help us better understand your setup. In the meantime, ensure you are leveraging the latest features and updates by upgrading your pip install -U ultralytics For those exploring GPU-accelerated environments, consider running YOLO in one of these environments, which are preconfigured for optimal performance:
For real-time collaboration or exchanging ideas with the Ultralytics community, you might also find these platforms useful:
Your inquiry has also been flagged for support, and an Ultralytics engineer will assist you shortly. Thank you for your patience and for being part of the Ultralytics community! 😊 |
Beta Was this translation helpful? Give feedback.
-
@RhysDeLoach for live streaming performance improvements with YOLOv11, consider these optimizations:
If using RTSP streams, ensure your network latency is <100ms. For code examples, see our Live Inference Guide. |
Beta Was this translation helpful? Give feedback.
-
Update. I was able to achieve real-time object counting with about 1% error by doing the following. Switching to a computer with a better GPU, optimizing the model by adjusting parameters such as IOU and setting half to True, setting custom tracking parameters (this was a big one), and using threading to handle streaming issues such as inconsistent FPS and dropped frames. |
Beta Was this translation helpful? Give feedback.
-
I've got a Yolov11 object detection model that performs very well when analyzing recordings from a camera. However, when I stream from that same camera with the same settings, my model performs very poorly. I've set the stream parameter to true, and I have not seen much of a difference. What are some steps I can take to fix this? Is this something that can be solved with a better camera?
Whether there is a wired connection or not, I see about the same performance. I've also tried threading, but this doesn't seem to make a big difference.
Beta Was this translation helpful? Give feedback.
All reactions