shap-e icon indicating copy to clipboard operation
shap-e copied to clipboard

exception rendering with PyTorch3D: No module named 'pytorch3d'

Open zhangleinice opened this issue 2 years ago • 13 comments

zhangleinice avatar May 08 '23 04:05 zhangleinice

have you tried: pip install pytorch3d ?

Mohcen2311 avatar May 08 '23 08:05 Mohcen2311

same issue with import torch -> ModuleNotFoundError: No module named 'torch' Requirement already satisfied: torch in c: .... (2.0.0)

sbilikepy avatar May 08 '23 14:05 sbilikepy

same issue. And when I conda install pytorch3d, another error occurred on from pytorch3d import _C

scentof avatar May 09 '23 00:05 scentof

have you tried: pip install pytorch3d ?

no such thing :-/

Natotela avatar May 10 '23 15:05 Natotela

same issue

scc97 avatar May 11 '23 02:05 scc97

I was running into the same and resolved it by using

  1. Install with CUDA support from Anaconda Cloud, on Linux only from the documentation at https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md

moo-the-cow avatar May 11 '23 20:05 moo-the-cow

it's not pip installable unless oua re on a colab. I ahd to follow the docs and use the pip github install, something like pip install "git+https://github.com/facebookresearch/pytorch3d.git"

AntonioCiolino avatar May 13 '23 17:05 AntonioCiolino

Hey there.

💯 For solving pytorch3D use the below code to install pytorch3D on google Colab or use below link to read Special install of pytorch3d (see here) import sys import torch pyt_version_str=torch.__version__.split("+")[0].replace(".", "") version_str="".join([ f"py3{sys.version_info.minor}_cu", torch.version.cuda.replace(".",""), f"_pyt{pyt_version_str}" ]) !pip install fvcore iopath !pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html link to My Google Colab: https://colab.research.google.com/drive/1dm1p1tj2sIaxToPn2bP31v3GquE0MdvE?usp=sharing

Sadegh-Kalami avatar May 14 '23 08:05 Sadegh-Kalami

This is work for me:

follow the pytorch3D installation guide: https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md

The version of python and other packages should be the same as the guide.

After installing, then continue to run setup file of shape-e.

skydream72 avatar May 18 '23 07:05 skydream72

Hey there.

💯 For solving pytorch3D use the below code to install pytorch3D on google Colab or use below link to read Special install of pytorch3d (see here) import sys import torch pyt_version_str=torch.__version__.split("+")[0].replace(".", "") version_str="".join([ f"py3{sys.version_info.minor}_cu", torch.version.cuda.replace(".",""), f"_pyt{pyt_version_str}" ]) !pip install fvcore iopath !pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html link to My Google Colab: https://colab.research.google.com/drive/1dm1p1tj2sIaxToPn2bP31v3GquE0MdvE?usp=sharing

I just ran this and got :

ERROR: Could not find a version that satisfies the requirement pytorch3d (from versions: none) ERROR: No matching distribution found for pytorch3d

rupertvdb avatar Oct 26 '23 16:10 rupertvdb

Hey there. 💯 For solving pytorch3D use the below code to install pytorch3D on google Colab or use below link to read Special install of pytorch3d (see here) import sys import torch pyt_version_str=torch.__version__.split("+")[0].replace(".", "") version_str="".join([ f"py3{sys.version_info.minor}_cu", torch.version.cuda.replace(".",""), f"_pyt{pyt_version_str}" ]) !pip install fvcore iopath !pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html link to My Google Colab: https://colab.research.google.com/drive/1dm1p1tj2sIaxToPn2bP31v3GquE0MdvE?usp=sharing

I just ran this and got :

ERROR: Could not find a version that satisfies the requirement pytorch3d (from versions: none) ERROR: No matching distribution found for pytorch3d

Hello there, I hope u have a nice day. would u tell me which OS are u using? linux ? windows?

Sadegh-Kalami avatar Nov 02 '23 09:11 Sadegh-Kalami

Hey, it’s actually alright. I’ve realised that the .obj file is being created before this render stage so I don’t need for this to work to get my model.

On Thu, 2 Nov 2023 at 09:07 Sadegh Kalami @.***> wrote:

Hey there. 💯 For solving pytorch3D use the below code to install pytorch3D on google Colab or use below link to read Special install of pytorch3d (see here https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md#3-install-wheels-for-linux) import sys import torch pyt_version_str=torch.version.split("+")[0].replace(".", "") version_str="".join([ f"py3{sys.version_info.minor}_cu", torch.version.cuda.replace(".",""), f"_pyt{pyt_version_str}" ]) !pip install fvcore iopath !pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html link to My Google Colab: https://colab.research.google.com/drive/1dm1p1tj2sIaxToPn2bP31v3GquE0MdvE?usp=sharing

I just ran this and got :

ERROR: Could not find a version that satisfies the requirement pytorch3d (from versions: none) ERROR: No matching distribution found for pytorch3d

Hello there, I hope u have a nice day. would u tell me which OS are u using? linux ? windows?

— Reply to this email directly, view it on GitHub https://github.com/openai/shap-e/issues/27#issuecomment-1790331930, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCRDANPOU3XI4LVXQN4DC23YCNPE3AVCNFSM6AAAAAAXZNF32GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQGMZTCOJTGA . You are receiving this because you commented.Message ID: @.***>

rupertvdb avatar Nov 02 '23 09:11 rupertvdb

good to see you doing well.GL

On Thursday, November 2, 2023 at 12:43:18 PM GMT+3:30, Rupert van den Broek ***@***.***> wrote:  

Hey, it’s actually alright. I’ve realised that the .obj file is being created before this render stage so I don’t need for this to work to get my model.

On Thu, 2 Nov 2023 at 09:07 Sadegh Kalami @.***> wrote:

Hey there. 💯 For solving pytorch3D use the below code to install pytorch3D on google Colab or use below link to read Special install of pytorch3d (see here https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md#3-install-wheels-for-linux) import sys import torch pyt_version_str=torch.version.split("+")[0].replace(".", "") version_str="".join([ f"py3{sys.version_info.minor}_cu", torch.version.cuda.replace(".",""), f"_pyt{pyt_version_str}" ]) !pip install fvcore iopath !pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html link to My Google Colab: https://colab.research.google.com/drive/1dm1p1tj2sIaxToPn2bP31v3GquE0MdvE?usp=sharing

I just ran this and got :

ERROR: Could not find a version that satisfies the requirement pytorch3d (from versions: none) ERROR: No matching distribution found for pytorch3d

Hello there, I hope u have a nice day. would u tell me which OS are u using? linux ? windows?

— Reply to this email directly, view it on GitHub https://github.com/openai/shap-e/issues/27#issuecomment-1790331930, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCRDANPOU3XI4LVXQN4DC23YCNPE3AVCNFSM6AAAAAAXZNF32GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQGMZTCOJTGA . You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Sadegh-Kalami avatar Nov 02 '23 09:11 Sadegh-Kalami