foivospar / Arc2Face

[ECCV 2024🔥] Arc2Face: A Foundation Model of Human Faces
https://arc2face.github.io/
MIT License
491 stars 32 forks source link

[Solved just sharing] Fixing the libcudnn_cnn_infer.so.8 Error #16

Open mikelmh025 opened 2 months ago

mikelmh025 commented 2 months ago

(I am not pro user, but someone barely maintaining the lab server from crashing. If my message messed up your server, sorry in advance!)

Hey there, I recently ran into an issue after installing via conda and pip, and I wanted to share my solution in case anyone else encounters the same problem.

The Error Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory

The Fix After some research, I found that I needed to install nvidia-cudnn. Here's what worked for me:

  1. Update your package list: Run sudo apt update to ensure you have the latest package information.
  2. Install nvidia-cudnn: Execute sudo apt install nvidia-cudnn to install the required library.

Note on CUDA Version Compatibility Keep in mind that CUDA version 545 might not be compatible with other dependencies. I recommend using CUDA version 535 instead.

Additional Tips

Hope this helps!

mikelmh025 commented 2 months ago
image

Just a proof that the code runs on my machine.

Thanks for the awesome paper and open sourced repo!!