Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install PyTorch3D on Windows 11 #27

Open
fxgame0003 opened this issue Oct 2, 2024 · 4 comments
Open

How to install PyTorch3D on Windows 11 #27

fxgame0003 opened this issue Oct 2, 2024 · 4 comments

Comments

@fxgame0003
Copy link

py3d
Traceback (most recent call last):
File "D:\GVHMR\tools\demo\demo.py", line 10, in
from pytorch3d.transforms import quaternion_to_matrix
ModuleNotFoundError: No module named 'pytorch3d'

How to install PyTorch3D on Windows 11,This has troubled me for a few days

@ljxdn
Copy link

ljxdn commented Oct 3, 2024

在windows上安装很麻烦,别的能解决,DPVO只有carlosedubarreto说了方法,太难了,我解决不了。现在我用WSL在linux环境重新安装了。
至于PyTorch3D,需要单独安装和编译,步骤比较繁琐,我是按这个教程 https://zhuanlan.zhihu.com/p/609391678 安装的,在这之前安装requirements.txt的时候可以禁用PyTorch和pytorch3D。

@fxgame0003
Copy link
Author

Thank you for your answer,I don't have a Linux computer; my computer doesn't have space.I'll try to install Linux when I have time.

@philgatt
Copy link

philgatt commented Oct 5, 2024

This helped me out a lot:

https://medium.com/@naga_karumuri/installing-pytorch3d-on-windows-11-an-exhaustive-step-by-step-guide-020510c8bd37
Instead of building Pytorch 3D in it's own environment as it's described in this blog, just build it in the GVHMR environment.
If installing still throws some error because CUDA can't find some Visual Studio files (which was the case for me), you can add their paths in the nvcc arguments in setup.py with the "I"-flag for building Pytorch 3D

@dt880pro
Copy link

dt880pro commented Oct 9, 2024

Spending time on enviromental setting on WIN is time consuming.
I guess it's easier to install another Linux OS on disk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants