Add shared DP3 pi05 PyTorch3D wheel
Browse files
.gitattributes
CHANGED
|
@@ -59,3 +59,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
Docker/requirements/ACT/pytorch3d-0.7.8-cp310-cp310-linux_x86_64.whl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
Docker/requirements/ACT/pytorch3d-0.7.8-cp310-cp310-linux_x86_64.whl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
Docker/requirements/DP3_pi05/pytorch3d-0.7.8-cp310-cp310-linux_x86_64.whl filter=lfs diff=lfs merge=lfs -text
|
Docker/requirements/DP3_pi05/README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DP3 / pi0.5 镜像 PyTorch3D 安装说明
|
| 2 |
+
|
| 3 |
+
这个目录提供 `/data2/wxy/images/robotwin-dp3-pi05-20260618-latest.tar.gz` 镜像中解析出的 PyTorch3D wheel 包。
|
| 4 |
+
|
| 5 |
+
我检查该镜像后,镜像内部只发现一份 PyTorch3D:
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
/opt/conda/envs/RoboTwin/lib/python3.10/site-packages/pytorch3d
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
没有发现 pi0.5 单独的 `.venv` 中安装了第二份 PyTorch3D。因此这里上传一份共享 wheel,供该 DP3/pi0.5 镜像对应环境使用。
|
| 12 |
+
|
| 13 |
+
## 适用环境
|
| 14 |
+
|
| 15 |
+
- Linux x86_64 服务器
|
| 16 |
+
- Python 3.10
|
| 17 |
+
- PyTorch `2.6.0+cu124`
|
| 18 |
+
- `torch.version.cuda == 12.4`
|
| 19 |
+
- 已在 NVIDIA H20 上验证可用
|
| 20 |
+
|
| 21 |
+
当前 wheel 文件:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
pytorch3d-0.7.8-cp310-cp310-linux_x86_64.whl
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
校验值:
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
sha256: 0332cdb7a75b68d047826acb3f37527a6500dbf42451c0183fc2ebea8be20526
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
## 下载文件
|
| 34 |
+
|
| 35 |
+
安装 Hugging Face CLI:
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
pip install -U huggingface_hub
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
下载这个目录:
|
| 42 |
+
|
| 43 |
+
```bash
|
| 44 |
+
hf download MetaAct/robotwin-act \
|
| 45 |
+
--repo-type dataset \
|
| 46 |
+
--include "Docker/requirements/DP3_pi05/*" \
|
| 47 |
+
--local-dir .
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
下载完成后,文件位置类似:
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
Docker/requirements/DP3_pi05/pytorch3d-0.7.8-cp310-cp310-linux_x86_64.whl
|
| 54 |
+
Docker/requirements/DP3_pi05/README.md
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## 安装
|
| 58 |
+
|
| 59 |
+
进入 DP3/pi0.5 镜像对应的 Python 环境,例如:
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
conda activate RoboTwin
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
安装 wheel:
|
| 66 |
+
|
| 67 |
+
```bash
|
| 68 |
+
pip install --no-deps --force-reinstall Docker/requirements/DP3_pi05/pytorch3d-0.7.8-cp310-cp310-linux_x86_64.whl
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
`--no-deps` 的作用是只安装 PyTorch3D 本体,不让 pip 自动替换当前环境中的 PyTorch/CUDA 相关包。
|
| 72 |
+
|
| 73 |
+
## 验证安装
|
| 74 |
+
|
| 75 |
+
运行:
|
| 76 |
+
|
| 77 |
+
```bash
|
| 78 |
+
python - <<'PY'
|
| 79 |
+
import torch
|
| 80 |
+
import pytorch3d
|
| 81 |
+
import pytorch3d._C
|
| 82 |
+
from pytorch3d.ops import sample_farthest_points
|
| 83 |
+
|
| 84 |
+
print("torch:", torch.__version__, "cuda:", torch.version.cuda)
|
| 85 |
+
print("pytorch3d:", pytorch3d.__version__)
|
| 86 |
+
print("cuda_available:", torch.cuda.is_available())
|
| 87 |
+
|
| 88 |
+
if torch.cuda.is_available():
|
| 89 |
+
x = torch.rand(1, 128, 3, device="cuda")
|
| 90 |
+
y, idx = sample_farthest_points(x, K=16)
|
| 91 |
+
torch.cuda.synchronize()
|
| 92 |
+
print("pytorch3d cuda op ok:", y.shape, idx.shape)
|
| 93 |
+
PY
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
看到 `pytorch3d cuda op ok` 就说明 PyTorch3D 可以正常使用。
|
| 97 |
+
|
| 98 |
+
## 注意
|
| 99 |
+
|
| 100 |
+
这个 wheel 是从 DP3/pi0.5 镜像内的 `/opt/conda/envs/RoboTwin` 环境解析出来的。不要把它用于 ACT 环境;ACT 使用 `torch==2.2.2+cu118`,对应 wheel 在 `Docker/requirements/ACT/`。
|
| 101 |
+
|
| 102 |
+
如果你自己给 pi0.5 新建了 Python 3.11 `.venv`,这个 `cp310` wheel 不能直接安装到 Python 3.11 环境,需要重新构建对应 Python 版本的 PyTorch3D。
|
Docker/requirements/DP3_pi05/pytorch3d-0.7.8-cp310-cp310-linux_x86_64.whl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0332cdb7a75b68d047826acb3f37527a6500dbf42451c0183fc2ebea8be20526
|
| 3 |
+
size 3792224
|