csbhr / FFHQ-UV

The official repository of our CVPR2023 paper "FFHQ-UV: Normalized Facial UV-Texture Dataset for 3D Face Reconstruction".
MIT License
459 stars 46 forks source link

about install pytorch3d match python version #42

Open zw20045500 opened 1 year ago

zw20045500 commented 1 year ago

Hello,Thanks for the great work.

Installation requirement Python 3.7 git clone https://github.com/facebookresearch/pytorch3d

but pytorch3d github Installation is :

image

it require Python 3.8, 3.9 or 3.10 how to do it?

when install pytorch3d failed, the error part message is like ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/migu/anaconda3/envs/ffhq-uv/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1539, in _run_ninja_build env=env) File "/home/migu/anaconda3/envs/ffhq-uv/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception

Can you give me some suggestion,Thanks in advance

slime898 commented 1 year ago

Try to install old version of pytorch3d with corresponding packages. You can find it from release issue of pytorch3d github.

ashish-kubade commented 1 year ago

Hey @slime898, could you please mention about the older version of pytorch3d that you are referring to?

TIA

csbhr commented 1 year ago

Maybe you can try git clone -b v0.6.2 https://github.com/facebookresearch/pytorch3d.

This version supports Python 3.7 and PyTorch 1.7

image