-
Notifications
You must be signed in to change notification settings - Fork 48
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 run the script #90
Comments
after installing/uninstalling packages I got it to run somehow, with ( I think ) GPU on tensorflow. I get this error now, the one the troubleshooting refers to. I tried the command it gives ( with and without the
and it seems like it persisted even when I logout/login. |
Your user account needs read/write access to the devices. Depending on your Distribution they should be owned by group |
you're right. my normal webcam is /dev/video0 , I checked with vlc. I get this error now.
:) |
if I do
then I end back in the previous error again.
And I am in the |
Today, the script seems to work fine. The GPU is still an issue though. I get this when the script starts :
It's very very slow on CPU. Like 4-5 fps. thank you. PS
But then why is the script switching to the CPU? |
Have a look at tensorflow tutorials for your platform. It isn't always easy to get the right versions. You need Your errors look like you're having a GPU enabled tensorflow, but not the nvidia libraries for neural networks. https://www.tensorflow.org/install/pip#software_requirements |
@allo- I read this page 3-4 times by now. |
You should be able to get much of the stuff from your linux distribution, but I think for CuDNN and some others you need a download from nvidia.com that requires an account (but you can use a trashmail for it, it just needs the account for downloading). |
I already got cudnn installed. And I tried cudnn8-cuda11.0 (#9) but it fails to build it. What I'm trying now is this command
It literally has been going on for almost 3 hours. I don't know what it's doing 😂 PS |
I know it's a mess to get the right versions and I don't know a good advice for your system either. Looks at basic tutorials and FAQs and try to get the stuff together or maybe ask in some help forums for cuda/tensorflow or general deep learning things. When you find a definite guide I'm happy to link to it, but I don't think I know what to recommend except what's on the tensorflow homepage myself. Depending on your system it could install wheel packages, but when it builds from source probably something on your system isn't supported. The versions in my current virtual environment are: Python 3.8.2
|
how do you normally set it up? |
I use a virtual enviroment and installed the packages with |
@allo- The issue now is that I have no clue how to use that binary/graph to redirect the output to a fake webcam video device ( or how to configure the input/output in general ) And idea? |
When you use the virtual webcam background program with mediapipe you configure video devices like when using resnet/mobilenet and only cannot use many of the plugins, but segmentation should work as good as with other mediapipe codes. The standard is v4l2loopback for the video device, but akvcam would be a more modern solution, only the configuration is more involved. See #33 for discussion and my example config. |
I get this error when trying to run
python ./virtual_webcam.py
more specifically
The text was updated successfully, but these errors were encountered: