Closed jiapei100 closed 2 years ago
@CeeBeeEh any ideas?
could not select device driver "" with capabilities: [[gpu]].
You're missing something on your host, maybe the GPU drivers aren't properly installed.
What's your output of nvidia-smi?
You are going to see this error message for any Ubuntu NVIDIA drivers above 470. Apparently, this code was built on 470 and does not handle the device calls for the higher driver versions. I have 20.04 LTS with nvidia-driver-510 and DeepFaceLive does not recognize it. I'm not willing to downgrade driver versions just to use this tool. Hopefully, the author will handle it soon.
the author will handle it soon.
linux is only supported by contributors such as CeeBeeEh.
@VisionaryMind
this code was built on 470
show me the code
show me the code
It's the Docker image (I believe). It was built on nvidia-driver-470. @CeeBeeEh, I have tried to resolve the issue by installing the nvidia-container-toolkit and restarting Docker, but the issue persists. I'll continue to troubleshoot and post updates here.
@jiapei100, I have found a workaround for this problem (if your GPU is NVIDIA). I jumped to the wrong conclusion about NVIDIA driver incompatibility. The problem is, in fact, in Docker itself. Here is what I did to fix the problem:
sudo snap remove --purge docker
dpkg -l | grep -i docker
sudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-cli
and sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce
sudo rm -rf /var/lib/docker /etc/docker sudo rm /etc/apparmor.d/docker
and sudo groupdel docker
and sudo rm -rf /var/run/docker.sock
curl https://get.docker.com | sh && sudo systemctl --now enable docker
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
&& curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
&& curl -s -L https://nvidia.github.io/libnvidia-container/$distribution/libnvidia-container.list | \
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
sudo apt-get update
sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker
I would first try steps 6-8, in case your Docker installation is valid (mine was not). Now, I am able to run the DeepFaceLive docker image on Ubuntu 20.04 LTS with nvidia-driver-510, no problem.
Hope this helps you.
I just tested DeepFaceLive on a fresh Arch install (I just did a clean install of EndeavorOS) with Nvidia driver 515.48.07. The only additional thing I needed to install (outside of the the docker and nvidia-container-runtime) was xorg-xhost.
Aside from that it works just fine.
Unless @jiapei100 provides feedback (such as the output of nvidia-smi) there's not much anyone can do.
@VisionaryMind Nvidia had rotated its keys a couple months ago. That may have been the cause of the issue on your system.
Here is the announcement: https://forums.developer.nvidia.com/t/notice-cuda-linux-repository-key-rotation/212772
Hi, I'm testing this great job under Ubuntu 22.04... However, I got the following ERROR message: