本地CUDA主版本必须与PyTorch自带的CUDA主版本一致,否则torchmcubes会退化为CPU版本或报mcubes_cuda缺失;需setuptools>=49.6.0,否则需先升级再重装torchmcubes;首次运行会下载预训练模型权重。
TripoSR
VAST-AI-ResearchMIT更新放缓单张图片就能快速重建出 3D 物体模型的前馈生成模型,适合需要批量产出 3D 资产的场景。
TripoSR: Fast 3D Object Reconstruction from a Single Image
pip install --upgrade setuptools
pip install -r requirements.txt
python run.py examples/chair.png --output-dir output/单张图片推理默认约需6GB显存;README以NVIDIA A100为例说明速度,未列出其他GPU型号;未说明可纯CPU运行。
单张图片快速前馈重建高质量3D模型的开源方案,由Tripo AI与Stability AI联合发布
单张图片就能快速重建出 3D 物体模型的前馈生成模型,适合需要批量产出 3D 资产的场景。
核心能力
- 基于LRM思路做前馈式单图3D重建
- A100上单图重建耗时不到0.5秒
- 支持一次传入多张图片批量推理
- 可用--bake-texture输出纹理而非顶点色
- 提供本地Gradio交互式演示界面
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
TripoSR
This is the official codebase for TripoSR, a state-of-the-art open-source model for fast feedforward 3D reconstruction from a single image, collaboratively developed by Tripo AI and Stability AI. Leveraging the principles of the Large Reconstruction Model (LRM), TripoSR brings to the table key advancements that significantly boost both the speed and quality of 3D reconstruction. Our model is distinguished by its ability to rapidly process inputs, generating high-quality 3D models in less than 0.5 seconds on an NVIDIA A100 GPU. TripoSR has exhibited superior performance in both qualitative and quantitative evaluations, outperforming other open-source alternatives across multiple public datasets. The figures below illustrate visual comparisons and metrics showcasing TripoSR's performance relative to other leading models. Details about the model architecture, training process, and comparisons can be found in this technical report.
The model is released under the MIT license, which includes the source code, pretrained models, and an interactive online demo. Our goal is to empower researchers, developers, and creatives to push the boundaries of what's possible in 3D generative AI and 3D content creation.
Getting Started
Installation
- Python >= 3.8
- Install CUDA if available
- Install PyTorch according to your platform: https://pytorch.org/get-started/locally/ [Please make sure that the locally-installed CUDA major version matches the PyTorch-shipped CUDA major version. For example if you have CUDA 11.x installed, make sure to install PyTorch compiled with CUDA 11.x.]
- Update setuptools by
pip install --upgrade setuptools - Install other dependencies by
pip install -r requirements.txt
Manual Inference
python run.py examples/chair.png --output-dir output/
This will save the reconstructed 3D model to output/. You can also specify more than one image path separated by spaces. The default options takes about 6GB VRAM for a single image input.
If you would like to output a texture instead of vertex colors, use the --bake-texture option. You may also use --texture-resolution to specify the resolution in pixels of the output texture.
For detailed usage of this script, use python run.py --help.
Local Gradio App
python gradio_app.py
Troubleshooting
AttributeError: module 'torchmcubes_module' has no attribute 'mcubes_cuda'
or
torchmcubes was not compiled with CUDA support, use CPU version instead.
This is because torchmcubes is compiled without CUDA support. Please make sure that
- The locally-installed CUDA major version matches the PyTorch-shipped CUDA major version. For example if you have CUDA 11.x installed, make sure to install PyTorch compiled with CUDA 11.x.
setuptools>=49.6.0. If not, upgrade bypip install --upgrade setuptools.
Then re-install torchmcubes by:
pip uninstall torchmcubes
pip install git+https://github.com/tatsy/torchmcubes.git
Citation
@article{TripoSR2024,
title={TripoSR: Fast 3D Object Reconstruction from a Single Image},
author={Tochilkin, Dmitry and Pankratz, David and Liu, Zexiang and Huang, Zixuan and and Letts, Adam and Li, Yangguang and Liang, Ding and Laforte, Christian and Jampani, Varun and Cao, Yan-Pei},
journal={arXiv preprint arXiv:2403.02151},
year={2024}
}