Skip to content
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

docker can not use GPU #1244

Open
xiaosefengyun opened this issue Jun 30, 2022 · 4 comments
Open

docker can not use GPU #1244

xiaosefengyun opened this issue Jun 30, 2022 · 4 comments
Labels

Comments

@xiaosefengyun
Copy link

Using the docker-gpu of the latest master branch of faceswap, when running to
python faceswap/faceswap.py train -A aobamadst -B trupdst -m model/
it is found that nvidia-smi in docker is basically not used, and the cpu usage rate is 100%
image
image

@xiaosefengyun
Copy link
Author

@torzdf
Copy link
Collaborator

torzdf commented Jun 30, 2022

I don't use Docker. The images tend to get updated by the community. I'm tagging @rushic24 who PR'd related #1232 in case he has any insights. In the meantime, please post the output of the following:

From inside your virtual environment, inside your faceswap folder, run:

python -c "from lib.sysinfo import sysinfo ; print(sysinfo)"

and post output

@kwxiaozhu
Copy link

@xiaosefengyun
Because the base image nvidia/cuda:11.7.0-runtime-ubuntu18.04 do not installed the libcudnn8.
docker exec -it inside the docker and run
apt-get install libcudnn8=8.2.4.15-1+cuda11.4
depend on your cuda version inside the docker,run
apt-cache show libcudnn8
and find and install the proper version of libcudnn8,and then wil solve the problem.

@0xrushi
Copy link
Contributor

0xrushi commented Jul 5, 2022

Hey did you fix it? Whats your base nvidia and cuda version in the ubuntu OS?
This dockerfile was for Arch, most probably @kwxiaozhu solution would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants