zju3dv / GVHMR

Code for "GVHMR: World-Grounded Human Motion Recovery via Gravity-View Coordinates", Siggraph Asia 2024
https://zju3dv.github.io/gvhmr
Other
358 stars 22 forks source link

How to install PyTorch3D on Windows 11 #27

Open fxgame0003 opened 5 days ago

fxgame0003 commented 5 days ago

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 commented 4 days ago

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

fxgame0003 commented 4 days ago

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 commented 2 days ago

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