AI SeedbankHelp preserve open and free AI for humanity's future

← All models

microsoft_TRELLIS.2-4B

microsoft · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: mit pipeline_tag: image-to-3d library_name: trellis2 language:

  • en

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.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:f089ba72baadbdada6e361a702be2d329c6004a7&dn=microsoft_TRELLIS.2-4B

Open magnet in torrent client · infohash f089ba72baadbdada6e361a702be2d329c6004a7

Files & hashes

PathSizesha1sha256
README.md6.3 KB (6,417 B)b1b0675bfca0ae82856ab3f7770b135d35be902cab08bd7f555372317d166220dbd2c17c73b5a238d45da018ef301c1e32aec8a8
ckpts/shape_dec_next_dc_f16c32_fp16.json678 B (678 B)e46164e905de0e68328f5f4b1f128b8dac608d975f1b856dffce79466fb18f5f0eefc08f08c673b24b3c05b20359c0b6d318a209
ckpts/shape_dec_next_dc_f16c32_fp16.safetensors904.6 MB (948,490,494 B)fcd7f4877f42df566822c2cd8800738b7b793603e3b718d3e43e4f8780e9a24ac6fff231811a67e3b058e336e10fe654c911d581
ckpts/shape_enc_next_dc_f16c32_fp16.json653 B (653 B)4f2aed3c7057a7c7155058c9ccdcbd5fb2445e645a960a5c419d70f8d4a7a6b6e52ae689cd948c88bd7ed92346adfbf82cd12007
ckpts/shape_enc_next_dc_f16c32_fp16.safetensors676.0 MB (708,797,208 B)b5e1a617b7f5cb2b3667398d0ae6adf7d6c465b9f37c5ff5b983b68e9946060000f09bc131f3e84318a2c8b7430a81e4b4636c41
ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.json458 B (458 B)cfd8d761e89aad595e97ec0cfe4b8469c90535837ebd6d367393f52fee9e92c2b3d727a9026a338549c6a6fa84c7ea122140ffdd
ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.safetensors2.41 GB (2,584,574,424 B)d992b9f3407d9bcf3e064e2870f1bdcc526a642c07cd0596f634c5adc1890023d16023afc5eed02fb84b22bb23aff5bf0030fbbd
ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.json458 B (458 B)6e39aacbf7bd43d16d3dad35c95d43c0b17d6a4fddbd7a1d34ce9a8e7af2f6ef9ae686d9ab49f69e62dacb98d8409b511cdbd5e2
ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.safetensors2.41 GB (2,584,574,424 B)cb60715c3687b56682f69abe144cf88ebecf273bec5e0917ef9b7e25ad51dffc7d19687a42019871f94239f2fa7f86264c55b70f
ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.json458 B (458 B)d949ce887c62645f6a927ee66bba2a0df56e383e31f4fdad9974930e5e9324ac9dfb6ef7de6b30cea51854ba515ef827a8d353b2
ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.safetensors2.41 GB (2,584,672,728 B)dbcdb6b9d275cc556ff9e8cf0a89526d6b6e9778580401269059a339b8318ab9ced459a13ba63391721c83a6c383198c29e77686
ckpts/slat_flow_imgshape2tex_dit_1_3B_512_bf16.json458 B (458 B)b260bbc6cce80ccd7b61e32a40474225522b20433093796257a62f838d2e5578ac4580ca3b7d88d10b87d348065d3fdfcc4c2077
ckpts/slat_flow_imgshape2tex_dit_1_3B_512_bf16.safetensors2.41 GB (2,584,672,728 B)d36fa6a92b2fbbc40438165399014e4f0bb1d1e58371aa1c5d13be79dcd5ddfd2cf3835e902e204dc34427169a1c702828e1a94d
ckpts/ss_flow_img_dit_1_3B_64_bf16.json467 B (467 B)f71c87cda44a9a940fa3a2d250a0944d606d22456cdfb636854f60ffcadd8c49244169cd449f34c5ccdb55b5ff7c04678f9c399e
ckpts/ss_flow_img_dit_1_3B_64_bf16.safetensors2.41 GB (2,584,426,920 B)ae0c30b5a4e48d614174648b7bfbbab553919bc4ca01377c485bec418076d38ee80166d32dc776d744f2553b835cba1e97a7abf6
ckpts/tex_dec_next_dc_f16c32_fp16.json705 B (705 B)e17107bef522e2aded7b3bc22ef421b57e16e77922074e4ab5b28e2b72d33a3fe61bf416134b89e12d0fc5c729f37da75da0c4d1
ckpts/tex_dec_next_dc_f16c32_fp16.safetensors904.5 MB (948,458,812 B)7cf1e9bcc901e497574737c0c39a7bd486f4cd5c97ea69addea2ecd9312910f5f548234665eef51c088386180b7cd5b258645e3c
ckpts/tex_enc_next_dc_f16c32_fp16.json676 B (676 B)8d25691b034a51fc4bbbf8add93acbee46fbff9322d78e219c9df19b00f7f97db5889bafdf18ee57fedf853cd888e5afbfa0ad6c
ckpts/tex_enc_next_dc_f16c32_fp16.safetensors676.0 MB (708,797,208 B)e91ede697f9578b646c00716448ce5351df07fd3dd109f75f84b90fa411554ed6b0e4a87f430841163156fc0ebda2ebdc4752493
pipeline.json4.1 KB (4,186 B)f5ec14c7f71b3d7f2cb0221c5f568a6871dc5e90222c359ab1ed9bc6735a640a34f95d47f8681b9bc4aaa101bfb80274676253c6
texturing_pipeline.json2.9 KB (2,965 B)f01be47debdfbb3183e8259e5c31e17d975abdd764009974a391fe9c948b2943fd2846dc4526bc569c1d56dafb8f9e5c181fcac3

Cite this release

Canonical URL
https://aiseedbank.org/models/microsoft_TRELLIS.2-4B/
Slug
microsoft_TRELLIS.2-4B
Infohash
f089ba72baadbdada6e361a702be2d329c6004a7
License
mit
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: microsoft_TRELLIS.2-4B.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorymicrosoft/TRELLIS.2-4B
Revision (pinned)af44b45f2e35a493886929c6d786e563ec68364d
Fetched at2026-09-04T02:27:40Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T02:30:35Z

mit15.12 GB (16,237,483,525 bytes)trellis2image-to-3d1 language (en)paper: 2512.14692