TripoSG需要本地安装,以下是具体步骤:
Preparation for installation
- 确保Python3.10+环境:
python --version
- Cloning Warehouse:
git clone https://github.com/VAST-AI-Research/TripoSG.git
Environment Configuration
- 安装PyTorch:根据是否支持CUDA选择对应版本
- Install the dependencies:
pip install -r requirements.txt
Model Generation
- 将输入图像(PNG/JPG)放入项目目录
- Execute the command:
python run.py --image 图像路径 --output-dir 输出目录
- 等待处理完成,生成OBJ格式模型
高级用户可以通过参数调整生成效果:
--mc-resolution
:控制网格精度(默认256)--bake-texture
:生成纹理贴图而非顶点颜色
This answer comes from the articleTripoSG: Generating high-resolution 3D modeled digital assets from a single imageThe