Open AliButtar opened 2 years ago
Please update the requirements in order to run the repo
The error above was because of pytorch3d
. Thanks to this comment, I was able to install and run it correctly.
The steps I did were as follows:
conda create -n deca python=3.8.10
conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install pytorch3d -c pytorch3d
then pip install -r requirements.txt
where requirements.txt is:
#`pip install -r requirements.txt`
numpy
scipy
chumpy
scikit-image
opencv-python
scikit-image #skimage
PyYAML
# torch==1.6.0 # for compatible with pytorch3d
# torchvision==0.7.0
face-alignment
yacs
kornia==0.5.0
ninja
# fvcore
# pytorch3d
I face the same problem. the error was because of pytorch3d. I follow the advice of AliButtarhttps://github.com/YadiraF/DECA/issues/124#issuecomment-1106474784 and another error emerged that the GeForce driver version is old. So I set the project on another computer with CUDA11. And everything is ok.
After 3 days of struggle to the point of making a dual-boot setup to creating countless environments just to run the demo, I finally made it and yes, requirements needs update.
I'm running WSL 2 Ubuntu 20.04 on Windows11, NVIDIA-SMI 515.65.01 Driver Version: 516.94 CUDA Version: 11.7 (had to install cuda 11.7 to windows and to the WSL via these steps to finally see nvcc -version https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions )
then followed up @AliButtar 's steps https://github.com/YadiraF/DECA/issues/124#issuecomment-1106474784
with this little change; and it worked
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge
Followed the exact instructions as mentioned in the README.md but when running the command:
This error comes up:
Please help in solving this. The installation process of the libraries went smoothly with no errors. Thanks.