emoca icon indicating copy to clipboard operation
emoca copied to clipboard

python 3.8 or python 3.6

Open zhaiyuan0217 opened this issue 3 years ago • 9 comments

when I created the conda environment, i chose python=3.6, but in the environment when i run pip install -e . , it reminds "Package 'gdl' requires a different Python: 3.6.13 not in '>=3.8'". This code can't use python 3.6?

zhaiyuan0217 avatar Mar 20 '23 05:03 zhaiyuan0217

Same. I can't figure out how to get this installed, it's driving me crazy.

emlcpfx avatar Jul 03 '23 16:07 emlcpfx

Since the EMOCA 2.0 update, it's recommended to use Python 3.8.

Let me know which part of the README caused this condition and I'll fix it.

Sorry for the confusion

On Mon, Jul 3, 2023, 17:25 emlcpfx @.***> wrote:

Same. I can't figure out how to get this installed, it's driving me crazy.

— Reply to this email directly, view it on GitHub https://github.com/radekd91/emoca/issues/42#issuecomment-1618834649, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7MKHPPXPCKOPNV5VU3OJ3XOLXAZANCNFSM6AAAAAAWATTDPY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

radekd91 avatar Jul 03 '23 17:07 radekd91

I’m trying to use EMOCA V1 with an RTX 3090 on Windows or WSL. Every which way I attempt is another failure.

Now I’m just trying to get DECA to work first, and it’s also a no-go.

emlcpfx avatar Jul 03 '23 17:07 emlcpfx

WSL is quite a specific setup that I have never tested and so I imagine there can be plenty of things to go wrong there, especially with GPU related stuff. Pytorch and pytorch3d.

I would recommend installing EMOCA 2.0. The code will also run EMOCA 1.0

On Mon, Jul 3, 2023, 18:15 emlcpfx @.***> wrote:

I’m trying to use EMOCA V1 with an RTX 3090 on Windows or WSL. Every which way I attempt is another failure.

Now I’m just trying to get DECA to work first, and it’s also a no-go.

— Reply to this email directly, view it on GitHub https://github.com/radekd91/emoca/issues/42#issuecomment-1618907761, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7MKHLAPQ7DZBCVW4IFGT3XOL44PANCNFSM6AAAAAAWATTDPY . You are receiving this because you commented.Message ID: @.***>

radekd91 avatar Jul 03 '23 17:07 radekd91

What‘s the vanilla OS for this? Linux, Windows?

emlcpfx avatar Jul 03 '23 17:07 emlcpfx

Everything was tested on Linux.

radekd91 avatar Jul 03 '23 18:07 radekd91

After much fighting, I got this to work on Windows 11, WSL 2, Ubuntu 22.04 with an RTX 3090. CUDA 11.7, Pytorch 2.0. What an adventure.

emlcpfx avatar Jul 05 '23 21:07 emlcpfx

Wow. Nice with. :-) Did pytorch 2.0 break anything? That's quite an update from the originally supported version.

A pull request would be very welcome.

On Wed, Jul 5, 2023, 22:32 emlcpfx @.***> wrote:

After much fighting, I got this to work on Windows 11, WSL 2, Ubuntu 22.04 with an RTX 3090. CUDA 11.7, Pytorch 2.0. What an adventure.

— Reply to this email directly, view it on GitHub https://github.com/radekd91/emoca/issues/42#issuecomment-1622554790, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7MKHLFGB3CPH4EV4D7AQ3XOXMOVANCNFSM6AAAAAAWATTDPY . You are receiving this because you commented.Message ID: @.***>

radekd91 avatar Jul 05 '23 21:07 radekd91

I'm a beginner when it comes to GitHub and Pull Requests, so I'd need some help in learning what you want. I can outline a few changes I had to make.

  • Start with this: https://github.com/radekd91/emoca/issues/44#issuecomment-1531581422

  • Install a newer version of face_alignment. Do this before you install Pytorch.

  • mamba install -c 1adrianb face_alignment==1.4.0

  • There was an update to face-alignment, where you can't use _2D anymore, so....

  • In the Python code, change any instance of "face_alignment.LandmarksType._2D" to "face_alignment.LandmarksType.TWO_D"

  • It couldn't find all of the cuda files, so... #Add to Nvidia Paths, so it knows where to find cuda files export LD_LIBRARY_PATH=/usr/local/cuda-11.7/targets/x86_64-linux/lib/stubs:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=/home/YOURUSERNAME/mambaforge/envs/work38/lib/python3.8/site-packages/nvidia/cudnn/lib:$LD_LIBRARY_PATH

#install pytorch conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.7 -c pytorch -c nvidia #install pytorch3d pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'

I think that's it. At least that'll get someone most of the way there.

emlcpfx avatar Jul 05 '23 23:07 emlcpfx