SAVRN
Search Contact SAVRN

Open-weight model · Image to 3d

TRELLIS.2-4B

by Microsoft microsoft/TRELLIS.2-4B

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).

Parameters
Context
Weights16.2 GB
Licensemit
AccessOpen weights
Monthly Downloads2M

Model Card

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…

Read Microsoft's full model card

TRELLIS.2: Native and Compact Structured Latents for 3D Generation

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

Introduction

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.

Model Details

  • Developed by: Jianfeng Xiang, Xiaoxue Chen, Sicheng Xu, Ruicheng Wang, Zelong Lv, Yu Deng, Hongyuan Zhu, Yue Dong, Hao Zhao, Nicholas Jing Yuan, Jiaolong Yang
  • Model Type: Flow-Matching Transformers with Sparse Voxel based 3D VAE
  • Parameters: 4 Billion
  • Input: Single Image
  • Output: 3D Asset (Mesh with PBR Materials)
  • Resolution: Varies from 512³ to 1536³ (Voxel Grid Resolution)

Key Features

  • O-Voxel Representation: An omni-voxel structure that encodes both geometry and appearance. It supports:
    • Arbitrary Topology: Handles open surfaces, non-manifold geometry, and fully-enclosed structures without lossy conversion.
    • Rich Appearance: Captures PBR attributes (including opacity for translucent surfaces) aligned with geometry.
    • Efficiency: Instant optimization-free bidirectional conversion between meshes and O-Voxels (ms to seconds).
  • High-Resolution Generation: The model is trained to generate fully textured assets at up to 1536³ resolution.
  • High-Fidelity while Compact Latent Space: Utilizes a Sparse 3D VAE with 16× spatial downsampling, encoding a 1024³ asset into only ~9.6K latent tokens with negligible perceptual degradation.
  • Shape-conditioned Texture Generation: Generates textures for input 3D meshes and reference images.
  • State-of-the-Art Speed: Inference is highly efficient; see table below.

Inference Speed (NVIDIA H100 GPU)

Resolution Time
512³ ~3 seconds
1024³ ~17 seconds
1536³ ~60 seconds

Requirements

  • System: The model is currently tested only on Linux.
  • Hardware: An NVIDIA GPU with at least 24GB of memory is necessary. The code has been verified on NVIDIA A100 and H100 GPUs.
  • Software:
  • The CUDA Toolkit is needed to compile certain packages. Recommended version is 12.4.
  • Conda is recommended for managing dependencies.
  • Python version 3.8 or higher is required.

Known Limitations

  • Geometric Artifacts (Small Holes): While O-Voxels handle complex topology well, the generated raw meshes may occasionally contain small holes or minor topological discontinuities. For applications requiring strictly watertight geometry (e.g., 3D printing), we provide accompanying mesh post-processing scripts, such as hole-filling algorithms.
  • Base Model w/o Alignment: TRELLIS.2-4B is a pre-trained foundation model. It has not been aligned with human preferences (e.g., via RLHF) or fine-tuned for specific aesthetic standards. Consequently, the outputs reflect the distribution of the training data and may vary in style; users may need to experiment with inputs to achieve the desired artistic result.

We are actively working on improving the model and addressing these limitations.

Usage

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)

Citation

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}
}

License

This model is released under the MIT License. The code and dataset are publicly released to facilitate reproduction and further research.

Identity and Version

Repository
microsoft/TRELLIS.2-4B
Publisher
Microsoft
Task
Image to 3d
Modality
Other
Library
trellis2
Parameters
Not stated by the source
Languages
en
Revision
af44b45f2e35a493886929c6d786e563ec68364d
First published
2025-12-01
Last updated
2025-12-27

Files and Weights

22 files, 16.2 GB in total. The weights are 9 files totalling 16.2 GB in safetensors.

Weights9 files · 16.2 GB
Configuration11 files · 12.2 KB
Documentation1 file · 6.4 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
ckpts/shape_dec_next_dc_f16c32_fp16.safetensorsWeights948.5 MB e3b718d3e43e
ckpts/shape_enc_next_dc_f16c32_fp16.safetensorsWeights708.8 MB f37c5ff5b983
ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.safetensorsWeights2.6 GB 07cd0596f634
ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.safetensorsWeights2.6 GB ec5e0917ef9b
ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.safetensorsWeights2.6 GB 580401269059
ckpts/slat_flow_imgshape2tex_dit_1_3B_512_bf16.safetensorsWeights2.6 GB 8371aa1c5d13
ckpts/ss_flow_img_dit_1_3B_64_bf16.safetensorsWeights2.6 GB ca01377c485b
ckpts/tex_dec_next_dc_f16c32_fp16.safetensorsWeights948.5 MB 97ea69addea2
ckpts/tex_enc_next_dc_f16c32_fp16.safetensorsWeights708.8 MB dd109f75f84b
ckpts/shape_dec_next_dc_f16c32_fp16.jsonConfiguration678 B
ckpts/shape_enc_next_dc_f16c32_fp16.jsonConfiguration653 B
ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.jsonConfiguration458 B
ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.jsonConfiguration458 B
ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.jsonConfiguration458 B
ckpts/slat_flow_imgshape2tex_dit_1_3B_512_bf16.jsonConfiguration458 B
ckpts/ss_flow_img_dit_1_3B_64_bf16.jsonConfiguration467 B
ckpts/tex_dec_next_dc_f16c32_fp16.jsonConfiguration705 B
ckpts/tex_enc_next_dc_f16c32_fp16.jsonConfiguration676 B
pipeline.jsonConfiguration4.2 KB
texturing_pipeline.jsonConfiguration3.0 KB
README.mdDocumentation6.4 KB
.gitattributesRepository1.5 KB

License and Download

License
mit
Access
Open weights, no gate
Download size
16.2 GB
Download from Microsoft

Released by Microsoft through its official repository on Hugging Face. Read the license.

Built From

  • Described by arXiv:2512.14692

Memory Requirements

PrecisionWeights in memory
As published16.2 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About TRELLIS.2-4B

Can I use TRELLIS.2-4B commercially?

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.

Similar Models

Model · Image to 3d

TRELLIS-image-large

Microsoft

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.

Open weights mit trellis

Model · Image to 3d

matchanu-1.5

PYGRASSREAL

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…

Open weights other