The image conditioned version of TRELLIS, a large 3D genetive model. It was introduced in the paper Structured 3D Latents for Scalable and Versatile 3D Generation.
Search public pages, research tools, and SAVRN solutions.
TRELLIS.2 is a state-of-the-art large 3D generative model designed for high-fidelity image-to-3D generation. It leverages a novel "field-free" sparse voxel structure termed O-Voxel and a large-scale flow-matching transformer (4 Billion parameters).
By Microsoft, published under mit, revision af44b45f2e35.
TRELLIS.2 is a state-of-the-art large 3D generative model designed for high-fidelity image-to-3D generation. It leverages a novel "field-free" sparse voxel structure termed O-Voxel and a large-scale flow-matching transformer (4 Billion parameters). Unlike previous methods that rely on iso-surface fields (e.g., SDF, Flexicubes) which struggle with open surfaces or non-manifold geometry, TRELLIS can reconstruct and generate arbitrary 3D assets with complex topologies, sharp features, and full Physical-Based Rendering (PBR) materials—including transparency/translucency. - The CUDA Toolkit is needed to compile certain packages. Recommended version is 12.4. - Conda is recommended for managing…
Model Name: TRELLIS.2-4B
Paper: https://arxiv.org/abs/2512.14692
Repository: https://github.com/microsoft/TRELLIS.2
Project Page: https://microsoft.github.io/trellis.2
TRELLIS.2 is a state-of-the-art large 3D generative model designed for high-fidelity image-to-3D generation. It leverages a novel "field-free" sparse voxel structure termed O-Voxel and a large-scale flow-matching transformer (4 Billion parameters).
Unlike previous methods that rely on iso-surface fields (e.g., SDF, Flexicubes) which struggle with open surfaces or non-manifold geometry, TRELLIS can reconstruct and generate arbitrary 3D assets with complex topologies, sharp features, and full Physical-Based Rendering (PBR) materials—including transparency/translucency.
| Resolution | Time |
|---|---|
| 512³ | ~3 seconds |
| 1024³ | ~17 seconds |
| 1536³ | ~60 seconds |
We are actively working on improving the model and addressing these limitations.
Note: Please refer to the official GitHub Repository for installation instructions and dependencies.
import os
os.environ['OPENCV_IO_ENABLE_OPENEXR'] = '1'
os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True" # Can save GPU memory
import cv2
import imageio
from PIL import Image
import torch
from trellis2.pipelines import Trellis2ImageTo3DPipeline
from trellis2.utils import render_utils
from trellis2.renderers import EnvMap
import o_voxel
# 1. Setup Environment Map
envmap = EnvMap(torch.tensor(
cv2.cvtColor(cv2.imread('assets/hdri/forest.exr', cv2.IMREAD_UNCHANGED), cv2.COLOR_BGR2RGB),
dtype=torch.float32, device='cuda'
))
# 2. Load Pipeline
pipeline = Trellis2ImageTo3DPipeline.from_pretrained("microsoft/TRELLIS.2-4B")
pipeline.cuda()
# 3. Load Image & Run
image = Image.open("assets/example_image/T.png")
mesh = pipeline.run(image)[0]
mesh.simplify(16777216) # nvdiffrast limit
# 4. Render Video
video = render_utils.make_pbr_vis_frames(render_utils.render_video(mesh, envmap=envmap))
imageio.mimsave("sample.mp4", video, fps=15)
# 5. Export to GLB
glb = o_voxel.postprocess.to_glb(
vertices = mesh.vertices,
faces = mesh.faces,
attr_volume = mesh.attrs,
coords = mesh.coords,
attr_layout = mesh.layout,
voxel_size = mesh.voxel_size,
aabb = [[-0.5, -0.5, -0.5], [0.5, 0.5, 0.5]],
decimation_target = 1000000,
texture_size = 4096,
remesh = True,
remesh_band = 1,
remesh_project = 0,
verbose = True
)
glb.export("sample.glb", extension_webp=True)
If you find this model useful for your research, please cite our work:
@article{
xiang2025trellis2,
title={Native and Compact Structured Latents for 3D Generation},
author={Xiang, Jianfeng and Chen, Xiaoxue and Xu, Sicheng and Wang, Ruicheng and Lv, Zelong and Deng, Yu and Zhu, Hongyuan and Dong, Yue and Zhao, Hao and Yuan, Nicholas Jing and Yang, Jiaolong},
journal={Tech report},
year={2025}
}
This model is released under the MIT License. The code and dataset are publicly released to facilitate reproduction and further research.
22 files, 16.2 GB in total. The weights are 9 files totalling 16.2 GB in safetensors.
| File | Type | Size | SHA-256 |
|---|---|---|---|
| ckpts/shape_dec_next_dc_f16c32_fp16.safetensors | Weights | 948.5 MB | e3b718d3e43e |
| ckpts/shape_enc_next_dc_f16c32_fp16.safetensors | Weights | 708.8 MB | f37c5ff5b983 |
| ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.safetensors | Weights | 2.6 GB | 07cd0596f634 |
| ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.safetensors | Weights | 2.6 GB | ec5e0917ef9b |
| ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.safetensors | Weights | 2.6 GB | 580401269059 |
| ckpts/slat_flow_imgshape2tex_dit_1_3B_512_bf16.safetensors | Weights | 2.6 GB | 8371aa1c5d13 |
| ckpts/ss_flow_img_dit_1_3B_64_bf16.safetensors | Weights | 2.6 GB | ca01377c485b |
| ckpts/tex_dec_next_dc_f16c32_fp16.safetensors | Weights | 948.5 MB | 97ea69addea2 |
| ckpts/tex_enc_next_dc_f16c32_fp16.safetensors | Weights | 708.8 MB | dd109f75f84b |
| ckpts/shape_dec_next_dc_f16c32_fp16.json | Configuration | 678 B | — |
| ckpts/shape_enc_next_dc_f16c32_fp16.json | Configuration | 653 B | — |
| ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.json | Configuration | 458 B | — |
| ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.json | Configuration | 458 B | — |
| ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.json | Configuration | 458 B | — |
| ckpts/slat_flow_imgshape2tex_dit_1_3B_512_bf16.json | Configuration | 458 B | — |
| ckpts/ss_flow_img_dit_1_3B_64_bf16.json | Configuration | 467 B | — |
| ckpts/tex_dec_next_dc_f16c32_fp16.json | Configuration | 705 B | — |
| ckpts/tex_enc_next_dc_f16c32_fp16.json | Configuration | 676 B | — |
| pipeline.json | Configuration | 4.2 KB | — |
| texturing_pipeline.json | Configuration | 3.0 KB | — |
| README.md | Documentation | 6.4 KB | — |
| .gitattributes | Repository | 1.5 KB | — |
Released by Microsoft through its official repository on Hugging Face. Read the license.
| Precision | Weights in memory |
|---|---|
| As published | 16.2 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Yes. TRELLIS.2-4B is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.
The image conditioned version of TRELLIS, a large 3D genetive model. It was introduced in the paper Structured 3D Latents for Scalable and Versatile 3D Generation.
Matchanu 1.5 is PyGrassReal's generative 3D asset engine capable of synthesizing production-ready watertight 3D meshes (STL, OBJ, PLY) and real-time 3D Gaussian Splats from text descriptions or single 2D concept images. Designed for Industrial Prototyping (3D Printing), Game & AR/VR Assets, and Architectural Elements, Matchanu 1.5 generates clean topology, UV unwrappings, and volume-accurate meshes without the point cloud artifacts common to open-source prototypes. 1. Prompt & Image-to-3D Mesh: - Converts single-view product photos or text prompts into clean, manifold 3D meshes ready for Blender, Rhino, Maya, or Unreal Engine. 2. 3D Printing Ready (Watertight Topology): - Automatically…