openai / shap-e

Generate 3D objects conditioned on text or images
MIT License
11.62k stars 945 forks source link

exception rendering with PyTorch3D: No module named 'pytorch3d' #27

Open zhangleinice opened 1 year ago

M0hc3n commented 1 year ago

have you tried: pip install pytorch3d ?

sbilikepy commented 1 year ago

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

scentof commented 1 year ago

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

Natotela commented 1 year ago

have you tried: pip install pytorch3d ?

no such thing :-/

scc97 commented 1 year ago

same issue

moo-the-cow commented 1 year ago

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
AntonioCiolino commented 1 year ago

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"

Sadegh-Kalami commented 1 year ago

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

skydream72 commented 1 year ago

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.

rupertvdb commented 12 months ago

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

Sadegh-Kalami commented 11 months ago

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?

rupertvdb commented 11 months ago

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: @.***>

Sadegh-Kalami commented 11 months ago

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: @.***>