By Tripo

TripoSG is an advanced high-fidelity, high-quality and high-generalizability image-to-3D generation foundation model. It leverages large-scale rectified flow transformers, hybrid supervised training, and a high-quality dataset to achieve state-of-the-art performance in 3D shape generation.
Clone the repo:
git clone https://github.com/VAST-AI-Research/TripoSG.git
cd TripoSG
Create a conda environment (optional):
conda create -n tripoSG python=3.10
conda activate tripoSG
Install dependencies:
# pytorch (select correct CUDA version)
pip install torch torchvision --index-url https://download.pytorch.org/whl/{your-cuda-version}
# other dependencies
pip install -r requirements.txt
Generate a 3D mesh from an image:
python -m scripts.inference_triposg --image-input assets/example_data/hjswed.png --output-path ./output.glb
Limiting the number of faces:
python -m scripts.inference_triposg --image-input assets/example_data/hjswed.png --faces 5000 --output-path ./output.glb
or from scribble+prompt:
python -m scripts.inference_triposg_scribble --image-input assets/example_scribble_data/cat_with_wings.png --prompt "a cat with wings" --scribble-conf 0.3 --output-path output.glb
The required model weights will be automatically downloaded:
- TripoSG (image condition) model from VAST-AI/TripoSG → pretrained_weights/TripoSG
= TripoSG-scribble (scribble+prompt condition) model from VAST-AI/TripoSG-scribble → pretrained_weights/TripoSG-scribble
- RMBG model from briaai/RMBG-1.4 → pretrained_weights/RMBG-1.4
triposg/models/autoencoders/autoencoder_kl_triposg.py and install torch-cluster. and run:python -m scripts.inference_vae --surface-input assets/example_data_point/surface_point_demo.npy
@article{li2025triposg,
title={TripoSG: High-Fidelity 3D Shape Synthesis using Large-Scale Rectified Flow Models},
author={Li, Yangguang and Zou, Zi-Xin and Liu, Zexiang and Wang, Dehu and Liang, Yuan and Yu, Zhipeng and Liu, Xingchao and Guo, Yuan-Chen and Liang, Ding and Ouyang, Wanli and others},
journal={arXiv preprint arXiv:2502.06608},
year={2025}
}
We would like to thank the following open-source projects and research works that made TripoSG possible:
We are grateful to the broader research community for their open exploration and contributions to the field of 3D generation.
$ claude mcp add TripoSG \
-- python -m otcore.mcp_server <graph>