一、环境准备
1、适用系统:Windows,Linux,MacOS
2、适用Python版本:3.7-3.13
3、前提条件:Pytorch依赖库
4、PyTorch3D简介:PyTorch3D 是基于 PyTorch 的 3D 深度学习库,提供 3D 数据(网格、点云)处理及渲染工具,用于 3D 目标检测、形状分析等视觉任务。
二、安装步骤(pytorch3d-0.7.8,pytorch-2.0.0+cu118,python-3.9示例)
1、pytorch,pytorch3d完整安装步骤:
| 步骤序号 | 对应命令 | 命令释义 |
|---|---|---|
| ① | pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118 | 安装pytorch |
| ② | pip install --extra-index-url https://miropsota.github.io/torch_packages_builder pytorch3d==0.7.8+pt2.0.0cu118 | 1、pip安装3d库,pt后面红色部分换成自己pytorch版本,0.7.8换为需要安装的pytorch3d版本。 |
| ③ | 1、pytorch3d库官网链接:https://miropsota.github.io/torch_packages_builder/pytorch3d/ 2、0.7.8+pt2.0.0cu118下载直链: |
如果步骤②失败,使用③下载whl文件,然后执行步骤④ |
| ④ | 1、完整安装命令: pip install D:\Downloads\pytorch3d-0.7.8+pt2.0.0cu118-cp39-cp39-win_amd64.whl 2、安装命令实例: pip install path/to/pytorch3d-0.7.8+pt2.0.0cu118-cp39-cp39-win_amd64.whl |
1、pip命令安装whl文件,标红部分path/to替换为自己的安装路径 2、标红部分0.7.8+pt2.0.0cu118-cp39-cp39换成对应pytorch3d,pytorch版本,python版本。 |
2、pytorch3d,pytorch对应版本参考表
| PyTorch3D版本 | PyTorch版本 | 平台 | Python版本 | 支持系统 |
|---|---|---|---|---|
| 0.7.5 | 1.11.0 | CPU, CUDA 102, CUDA 113 | 3.7-3.10 | Linux, Windows, macOS |
| 1.12.0 | CPU, CUDA 102, CUDA 113, CUDA 116 | 3.7-3.10 | Linux, Windows, macOS | |
| 1.12.1 | CPU, CUDA 102, CUDA 113, CUDA 116 | 3.7-3.10 | Linux, Windows, macOS | |
| 1.13.0 | CPU, CUDA 116, CUDA 117 | 3.7-3.11 | Linux | |
| 1.13.1 | CPU, CUDA 116, CUDA 117 | 3.7-3.11 | Linux | |
| 2.0.0 | CPU, CUDA 117, CUDA 118 |

最低0.47元/天 解锁文章
5704

被折叠的 条评论
为什么被折叠?



