TRELLIS微软的图生3D
TRELLIS
教程目录:
Youtube:https://www.youtube.com/watch?v=JqFHZ-dRMhI
官网地址:https://trellis3d.github.io/
GitHub:https://github.com/Microsoft/TRELLIS
部署目录:
克隆项目
git clone --recurse-submodules https://github.com/microsoft/TRELLIS.git
进入项目地址
cd TRELLIS
创建Conda环境
conda create -n trellis python=3.10
切换Conda
conda activate trellis
下载需要的环境目录
pip install torch==2.5.1 torchvision --index-url=https://download.pytorch.org/whl/cu124
pip install xformers==0.0.28.post3 --index-url=https://download.pytorch.org/whl/cu124
pip install pillow imageio imageio-ffmpeg tqdm easydict opencv-python-headless scipy ninja rembg onnxruntime trimesh xatlas pyvista pymeshfix igraph transformers
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
pip install https://github.com/bdashore3/flash-attention/releases/download/v2.7.1.post1/flash_attn-2.7.1.post1+cu124torch2.5.1cxx11abiFALSE-cp310-cp310-win_amd64.whl
pip install kaolin -f https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.5.1_cu124.html
git clone https://github.com/NVlabs/nvdiffrast.git ./tmp/extensions/nvdiffrast
pip install ./tmp/extensions/nvdiffrast
git clone --recurse-submodules https://github.com/JeffreyXiang/diffoctreerast.git ./tmp/extensions/diffoctreerast
pip install ./tmp/extensions/diffoctreerast(失败后检查cuda和pytorch版本,检查方法同高斯)
git clone https://github.com/autonomousvision/mip-splatting.git ./tmp/extensions/mip-splatting
pip install ./tmp/extensions/mip-splatting/submodules/diff-gaussian-rasterization/(失败后检查cuda和pytorch版本,检查方法同高斯)
xcopy /E /I .\extensions\vox2seq .\tmp\extensions\vox2seq
pip install ./tmp/extensions/vox2seq
pip install spconv-cu120
pip install gradio4.44.1 gradio_litmodel3d0.0.1
启动TRELLIS的WebUI
set ATTN_BACKEND=flash-attn
set SPCONV_ALGO=native
python ./app.py
会在终端出现一个IP地址在浏览器中输入即可