1. git clone https://github.com/UNES97/TRELLIS-DOCKER
2.cd TRELLIS-DOCKER
3.打开requirements.txt
替换为以下内容
--extra-index-url https://download.pytorch.org/whl/cu121
--find-links https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.4.0_cu121.html
spaces
torch==2.4.0
torchvision==0.19.0
pillow==10.4.0
imageio==2.36.1
imageio-ffmpeg==0.5.1
tqdm==4.67.1
easydict==1.13
opencv-python-headless==4.10.0.84
scipy==1.14.1
rembg==2.0.60
onnxruntime==1.20.1
trimesh==4.5.3
xatlas==0.0.9
pyvista==0.44.2
pymeshfix==0.17.0
igraph==0.11.8
git+https://github.moeyy.xyz/https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
xformers==0.0.27.post2
kaolin==0.17.0
spconv-cu120==2.3.6
transformers==4.46.3
https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.3/flash_attn-2.7.3+cu12torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
https://huggingface.co/spaces/JeffreyXiang/TRELLIS/resolve/main/wheels/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl?download=true
https://huggingface.co/spaces/JeffreyXiang/TRELLIS/resolve/main/wheels/nvdiffrast-0.3.3-cp310-cp310-linux_x86_64.whl?download=true
4.docker build -t 3d-gpu-app .
这一步需要搭梯子vpn 下载才行,因为最后三个是国外地址
5.docker run -it --gpus all -p 7860:7860 --name 3d-app 3d-gpu-app
6.如果以上几步都不行 那就 下载我docker 部署好的 100% OK
我用夸克网盘分享了「3d-app3.tar」,点击链接即可保存。打开「夸克APP」,无需下载在线播放视频,畅享原画5倍速,支持电视投屏。
链接:https://pan.quark.cn/s/d4615ccfc083
docker load -i 3d-app3.tar
docker run -it --cpus=20 --memory=12g --gpus all -p 7860:7860 --name 3d-app3 3d-app3:latest