How to use multi threading using yolov8 efficiently

I am currently using Pytorch YOLOv8 model for detecting humans in multiple video streams. In my case, I am processing 10 video streams simultaneously to expedite the process. From all 10 videos, I am solely detecting humans and extracting the human-detected boxes.

Now, I am seeking guidance on how to process all 10 videos in parallel and run inference. I would greatly appreciate it if you could provide a sample code or any instructions on how to achieve this. (I want to use multi-threading using dask)

Thank you for your assistance.

i tried the using 10 threads by loading single yolov8 model, im getting code dump error, i wanted to process all 10 videos in parallel using Pytorch yolov8 model

Leave a Comment