问题
!./darknet detector demo cfg/coco.data cfg/yolov3.cfg /content/drive/My\ Drive/checking/yolov3.weights -dont_show -ext_output video.mp4 -i 0 -out_filename res.avi
I am trying to run a video.mp4 in google colab using Yolov3 for object detection but it is continuously showing Video-streaming stopped! as an error. I am stuck at that point.
回答1:
Had the same issue on Google Colab running this code:
!./darknet detector demo cfg/coco.data cfg/yolov4.cfg yolov4.weights test.mp4 -dont_show -i 0 -out_filename results.avi
I managed to solve it specifying the exact path of the input video:
!./darknet detector demo cfg/coco.data cfg/yolov4.cfg yolov4.weights /content/test.mp4 -dont_show -i 0 -out_filename results.avi
Hope it solves your problem too!
来源:https://stackoverflow.com/questions/61678996/video-streaming-stopped-is-showing-google-colab-while-using-video-in-yolov3-mode