-
Notifications
You must be signed in to change notification settings - Fork 56
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
Error when trying to open a video file #18
Comments
Hi Try to add to command line --masked disabled Gian luca |
Hello @dexmac221, Thank you for the fast response. As advised by you, I passed the following command, with the line
However, now I get a new error:
May I know how should I go about fixing that? Thanks! |
you're welcome!. This is due to openpose, it is very gpu memory hunger (Abovr sll in 1.7 release, try to use 1.6). I suggest you to reduce net size. Try to use --net_size 256x192 (less memory usage but less performance, also) or try to use another nvidia board to to get best performance. Gian Luca |
Thank you very much, with that line of command, I could finally run the program! Also, may I know what commands should I pass into the Ubuntu terminal so that I can run the Social Distancing program on the live video of a webcam, instead of running it by passing video files into the program? |
Hi! I'm happy about that. open process_source.py and change line 181 from self.cap = cv2.VideoCapture(args[0].stream_in) to self.cap = cv2.VideoCapture(0) this will get video stream directly from you webcam Gian Luca |
Hello! I tried that and it got the video stream from my webcam. However, after some testing and experimenting, I found out that, whenever I wave my hand closely in front of the webcam, or if an object moves across the webcam while being very near to the webcam, such that the object covers almost the entire screen in the output video, the program stops abruptly and shows the following error:
May I know what can I do to resolve this error? Thank you for all your help so far, I really appreciate it! |
Hello all,
I passed the following command onto Ubuntu terminal:
python3 process_source.py --image disabled --video enabled --stream_in ./samples/video.mp4 --stream_out /samples/video_out.avi --horizontal_ratio 0.7 --vertical_ratio 0.7 --openpose_folder /home/user/Desktop/Social-Distancing/openpose/models
However, this is what I got:
Only received the error message ^ and nothing else happened.
For some context, I have a video file (video.mp4) in the samples folder of the Social-Distancing folder, and that is it. I am ob Ubuntu 20.04, with CUDA 10.1 CuDNN 7.6.5, and my GPU is Nvidia GTX 1650 Max-Q.
Please advise on what I should do, thanks!
The text was updated successfully, but these errors were encountered: