TripoSR 模型部署教程TripoSR 是由 Tripo AI 和 Stability AI 合作开发的最先进的开源模型,用于从单个图像进行快速前馈 3D 重建。利用大型重建模型(LRM)的原理,TripoSR 带来了关键的进步,大大提高了 3D 重建的速度和质量。该模型的特点是能够快速处理输入,在 NVIDIA A100 GPU 上在不到 0.5 秒的时间内生成高质量的 3D 模型。
conda -V安装教程可查看*~~(gitee.com)https://e.gitee.com/gz_donkey/docs/2504450/file/5797611?sub_id=11485950&scope=root~~*

输入下列命令将系统更新及系统缺失命令下载
apt-get update apt-get upgrade apt-get install -y vim wget unzip lsof net-tools openssh-server git git-lfs gcc cmake build-essential
输入下列命令对TripoSR模型进行下载
git clone https://gitclone.com/github.com/VAST-AI-Research/TripoSR.git
conda create -n tsr python=3.10
conda activate tsr

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.douban.com

pip3 install torch torchvision torchaudio

系统下载过程中,切勿有任何操作,直到出现“Successfully installed......”开头则表示安装结束并且成功。

pip install --upgrade setuptools

改为:“git+https://gitclone.com/github.com/tatsy/torchmcubes.git”
git+https://gitclone.com/github.com/tatsy/torchmcubes.git
cd TripoSR
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
系统下载过程中,切勿有任何操作,直到出现“Successfully installed......”开头则表示安装结束并且成功。


第一次运行项目时需要下载config.yaml和model.ckpt权重文件
export HF_ENDPOINT=https://hf-mirror.com
export GRADIO_SERVER_NAME=0.0.0.0
export GRADIO_SERVER_PORT=8080
python3 gradio_app.py

此时已下载config.yaml权重文件,仍需要model.ckpt权重
其查看路径如下:/root/.cache/huggingface/hub/models--stabilityai--TripoSR/snapshots/2ba2f5591f8eb0821784764ab9ab99a12e1abb08/

第二次运行项目时需要下载config.json权重文件
export HF_ENDPOINT=https://hf-mirror.com
export GRADIO_SERVER_NAME=0.0.0.0
export GRADIO_SERVER_PORT=8080
python3 gradio_app.py

其查看路径如下:/root/.cache/huggingface/hub/models--facebook--dino-vitb16/snapshots/f205d5d8e640a89a2b8ef0369670dfc37cc07fc2/

第三次运行项目时需要下载u2net.onnx权重文件
export HF_ENDPOINT=https://hf-mirror.com
export GRADIO_SERVER_NAME=0.0.0.0
export GRADIO_SERVER_PORT=8080
python3 gradio_app.py

使用下列命令运行项目呈现模型的成功界面
export GRADIO_SERVER_NAME=0.0.0.0 export GRADIO_SERVER_PORT=8080 python3 gradio_app.py

点击此处,立即体验TripoSR!
