赞
踩
官方安装教程如下:https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md,完全按照这个教程安装可能会遇到很多问题,因此需要补充一些细节。安装这个的前提是已经安装了pytorch。
- conda create -n 环境名 python=3.9
- conda activate 环境名
- conda install -c fvcore -c iopath -c conda-forge fvcore iopath
- conda install jupyter
- pip install scikit-image matplotlib imageio plotly opencv-python
- pip install black usort flake8 flake8-bugbear flake8-comprehensions
下载地址:https://github.com/facebookresearch/pytorch3d/releases注意版本要与pytorch对应,每个版本的Pytorch3d下有注明其适用的pytorch版本。
打开pytorch3d文件夹,找到setup.py文件,打开,将extra_compile_args = {“cxx”: [“-std=c++14”]} 修改为: extra_compile_args = {“cxx”: []};
在终端进入刚才下载的pytorch3d安装包放置的路径下,然后执行安装pytorch3D的代码。
- cd 路径
- python setup.py install
执行conda list 查看环境中是否有pytorch3d包,安装成功则会显示。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。