scarpma / aorta_lib

1 stars 0 forks source link

Installing Pytorch3D Issue #1

Open farshadtajeddini opened 3 months ago

farshadtajeddini commented 3 months ago

Hello,

I aimed to utilize the "reg.py" code to align all meshes to a common template. I attempted to install PyTorch3D from the source on my Windows desktop using the following commands:

conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 pytorch-cuda=12.1 -c pytorch -c nvidia conda install -c conda-forge -c fvcore fvcore iopath pip install git+https://github.com/facebookresearch/pytorch3d.git

However, I consistently encounter an error related to failing the wheel building process. Any suggestions on how to resolve this issue?

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pytorch3d Running setup.py clean for pytorch3d Failed to build pytorch3d ERROR: Could not build wheels for pytorch3d, which is required to install pyproject.toml-based projects

scarpma commented 3 months ago

Hi @farshadtajeddini , I see two possible problems. First, you are on windows. There can be several small problems that are out of control for several libraries, including pytorch3d. However, the main problem could be that you are installing pytorch 2.2.0. In the pytorch3d documentation they recommend using this command:

conda install pytorch=1.13.0 torchvision pytorch-cuda=11.6 -c pytorch -c nvidia

I found this command here. Let me know if this helps.