2025年docker部署TRELLIS-3D 图片转模型 完全不会出现依赖无法下载,爆红问题 !

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值