开源项目解析
TRELLIS
文字或图片进,3D 资产出,可以导成辐射场、3D 高斯或网格。用一种统一的结构化隐表示撑起三种输出格式,最大 20 亿参数。
一份表示出三种格式微软出品50 万物体训出来
许可证附加条件:主体 MIT,但 README 明说部分子模块(可微八叉树渲染器、改版 Flexicubes)另有许可证 —— 整包分发前要逐个核。
读懂层
2 张 · 架构图 / 时序图
DeepWiki · 抓取 2026-08-17 · 核验 2026-08-17
DeepWiki · 抓取 2026-08-17 · 核验 2026-08-17
它管哪几个决定
3D 模型图生 3D / 文生 3D
0/10 家有官方说法材质与贴图PBR 贴图
0/10 家有官方说法自持能力
动手层
文档代码结构踩过的坑实测 未做
装它要过哪几关
- 1Linux 加 CondaREADME 明写只在 Linux 上测过。Windows 见 issue #3(53 条回复,全站最热),作者说未完全验证
- 2CUDA 工具链,编译子模块这一步最容易失败,CUDA 版本要和显卡驱动对上(在 11.8 与 12.2 上验过)
- 3NVIDIA 显卡 16GB 显存以上在 A100 / A6000 上验过。消费级显卡见 issue #31(41 条回复)「12G 能不能跑」
改哪个文件能改什么
导出格式同一次生成可导 GLB(约 5MB)或 PLY(约 50MB),按下游选坑在哪一处
带 issue 编号的来自:github issues 按回复数排序 · 核验 2026-08-17
面数issue #58(34 条回复):怎么生成面数更多的资产 —— 默认输出对游戏来说可能过简
商用issue #41(30 条回复)问的就是能不能商用。主体 MIT,但子模块另有许可证,整包分发前要逐个核
显存16GB 是门槛不是建议。低于这个数的路子都在 issue 里,没有官方支持
教程
官方文档、作者本人的视频,以及 ComfyUI 官方给的原生工作流示例。每条都验过还打得开。
项目自述
以下是仓库 README 的开头部分(原文引用,抓取 2026-08-17)。读全文 ↗
Structured 3D Latentsfor Scalable and Versatile 3D Generation
TRELLIS is a large 3D asset generation model. It takes in text or image prompts and generates high-quality 3D assets in various formats, such as Radiance Fields, 3D Gaussians, and meshes. The cornerstone of TRELLIS is a unified Structured LATent (SLAT) representation that allows decoding to different output formats and Rectified Flow Transformers tailored for SLAT as the powerful backbones. We provide large-scale pre-trained models with up to 2 billion parameters on a large 3D asset dataset of 500K diverse objects. TRELLIS significantly surpasses existing methods, including recent ones at similar scales, and showcases flexible output format selection and local 3D editing capabilities which were not offered by previous models.
*Check out our Project Page for more videos and interactive demos!*
🌟 Features
- High Quality: It produces diverse 3D assets at high quality with intricate shape and texture details.
- Versatility: It takes text or image prompts and can generate various final 3D representations including but not limited to *Radiance Fields*, *3D Gaussians*, and *meshes*, accommodating diverse downstream requirements.
- Flexible Editing: It allows for easy editings of generated 3D assets, such as generating variants of the same object or local editing of the 3D asset.
⏩ Updates
03/25/2025
- Release training code.
- Release TRELLIS-text models and asset variants generation.
- Examples are provided as example_text.py and example_variant.py.
- Gradio demo is provided as app_text.py.
- *Note: It is always recommended to do text to 3D generation by first generating images using text-to-image models and then using TRELLIS-image models for 3D generation. Text-conditioned models are less creative and detailed due to data limitations.*
12/26/2024
- Release TRELLIS-500K dataset and toolkits for data preparation.
12/18/2024
- Implementation of multi-image conditioning for TRELLIS-image model. (#7). This is based on tuning-free algorithm without training a specialized model, so it may not give the best results for all input images.
- Add Gaussian export in app.py and example.py. (#40)
📦 Installation
Prerequisites
- System: The code is currently tested only on Linux. For windows setup, you may refer to #3 (not fully tested).
- Hardware: An NVIDIA GPU with at least 16GB of memory is necessary. The code has been verified on NVIDIA A100 and A6000 GPUs.
- Software:
- The CUDA Toolkit is needed to compile certain submodules. The code has been tested with CUDA versions 11.8 and 12.2.
- Conda is recommended for managing dependencies.
- Python version 3.8 or higher is required.
Installation Steps
1. Clone the repo:
sh
git clone --recurse-submodules https://github.com/microsoft/TRELLIS.git
cd TRELLIS
2. Install the dependencies:
Before running the following command there are somethings to note:
- By adding --new-env, a new conda environment named trellis will be created. If you want to use an existing conda environment, please remove this flag.
- By default the trellis environment will use pytorch 2.4.0 with CUDA 11.8. If you want to use a
……(后略,见原文)判断
优势
- 同一份表示能出三种格式,下游想怎么用都行
- 训练数据规模大,泛化比同类好
- 还在维护,微软背书
局限
- 16GB 显存起步,消费级显卡多数进不来
- 只在 Linux 上测过,Windows 要自己趟
- 子模块许可证与主体不同,商用分发要逐个核
不适用
没有 A 卡以上级别显卡的个人开发者 —— 门槛在硬件不在软件。
同管这些决定的其它项目
UltraGameStudio一个照着游戏引擎的实际工作量重写的编码 Agent:代码只是一小块,其余是材质、蓝图…VibeUE虚幻 5.8+ 的 MCP 扩展与编辑器工具集:蓝图、材质、地形、植被、动画、Nia…Blender MCP把 Blender 接到任意大模型:用对话做建模、搭场景、改物件。…混元 3D 2.1腾讯混元的 3D 生成:图生 3D 与文生 3D,2.1 这一支带 PBR 材质生成…PartCrafter从一张图一次生成**多个零件**和多个物体,而不是一整块网格。…TripoSG图生 3D 的基础模型,主打几何保真与泛化:照片、卡通、草图都能进。…3DTopia-XL高质量 PBR 3D 资产生成,用一种带原语的表示同时承载几何与材质。…Godogen生成游戏工程与 Agent 工作流:覆盖 Godot 4(C# 或 GDScript…AI Game Art Pipeline Skill把 AI 出的图片与视频洗成能进游戏的素材:规划、生成、清理、打包、质检 —— 覆盖…
github README + DeepWiki · 核验 2026-10-19 | 判断栏可报错。