Skip to main content
Back

Microsoft's TRELLIS.2-4B Turns a Single Photo Into a 3D Mesh in Seconds

Microsoft's new 4B image-to-3D model swaps SDF-based iso-surfaces for a field-free O-Voxel representation, generating PBR meshes up to 1536³ in seconds.

Pro

  • Microsoft released TRELLIS.2-4B, a 4B parameter image-to-3D flow-matching model under MIT license.
  • Novel O-Voxel representation replaces SDF and Flexicubes, handling open surfaces, hair, and non-manifold geometry natively.
  • Generates up to 1536³ resolution meshes with full PBR materials including base color, roughness, metallic, and opacity.
  • Inference speed on H100: 3 seconds at 512³, 17 seconds at 1024³, 60 seconds at 1536³.
  • Requires Linux, 24GB VRAM NVIDIA GPU, CUDA 12.4; GitHub repo includes training code.
  • Paper on arXiv 2512.14692; 1.6M+ downloads on Hugging Face already.

Microsoft Research and Tsinghua released TRELLIS.2-4B, a 4 billion parameter image-to-3D generator that turns a single photo into a fully textured mesh in seconds. It ships under the MIT license with weights, code, and a 500K asset dataset, and it has already crossed 1.6 million downloads on Hugging Face. Scale is only half the story. The model abandons the signed distance field pipeline that most recent 3D generators rely on, and the results show why that matters.

Killing the iso-surface

Recent image-to-3D systems like the original TRELLIS, Hunyuan3D, and TripoSG all encode geometry as an implicit field, typically a signed distance function or a Flexicubes grid, then run marching cubes to extract a mesh. That approach works for closed, watertight blobs. It falls apart on hair, cloth, plants, glass, or anything with holes and thin sheets.

TRELLIS.2 replaces the field with a sparse voxel structure called O-Voxel, driven by a large flow-matching transformer. An O-Voxel (omni-voxel) stores geometry and appearance together in the same sparse grid, so the model never has to fit a smooth function to a surface that is not smooth in the first place. The upshot: arbitrary topology, sharp features, non-manifold geometry, and full PBR materials including transparency and translucency.

The numbers that matter

The 4B-parameter transformer produces up to 1536³ PBR textured assets, built on native 3D VAEs with 16× spatial compression. The VAE is doing serious work: a 1024³ asset compresses to roughly 9.6K latent tokens with negligible perceptual loss, which is what makes the transformer tractable at these resolutions.

Speed on an H100 breaks down as follows:

ResolutionTime
512³~3 seconds
1024³~17 seconds
1536³~60 seconds

The conversion pipeline is free of rendering and per-asset optimization. Textured mesh to O-Voxel takes under 10 seconds on a single CPU, and O-Voxel to textured mesh takes under 100 milliseconds with CUDA acceleration. No differentiable renderer in the inner loop, no per-asset optimization pass. That accounts for much of the wall-clock advantage.

What you actually get in the output

The mesh comes with full PBR channels, going well beyond diffuse color. TRELLIS.2 models base color, roughness, metallic, and opacity, so generated assets render photorealistically with proper transparency. The opacity channel is the interesting one because glass bottles, leaves, and hair strands actually render correctly in Unity or Unreal instead of showing up as opaque approximations.

Supported export formats include GLB, GLTF, OBJ, and PLY, with PBR material information preserved where applicable. There is also a shape-conditioned texture mode that takes an existing mesh plus a reference image and paints materials onto it, useful if you already have geometry and just need art.

How you run it

You need Linux, an NVIDIA GPU with at least 24GB of VRAM (verified on A100 and H100), CUDA 12.4, and Python 3.8+. The Hugging Face pipeline is straightforward once dependencies compile:

from trellis2.pipelines import Trellis2ImageTo3DPipeline
from PIL import Image
import o_voxel
pipeline = Trellis2ImageTo3DPipeline.from_pretrained("microsoft/TRELLIS.2-4B")
pipeline.cuda()
image = Image.open("input.png")
mesh = pipeline.run(image)[0]
mesh.simplify(16777216)
glb = o_voxel.postprocess.to_glb(
    vertices=mesh.vertices, faces=mesh.faces,
    attr_volume=mesh.attrs, coords=mesh.coords,
    voxel_size=mesh.voxel_size, texture_size=4096,
    remesh=True,
)
glb.export("out.glb", extension_webp=True)

If you would rather skip the local stack, there is an official Gradio Space and around 100 community Spaces already running the model. The GitHub repo ships three supporting libraries worth knowing about:

  • O-Voxel: the core library that handles mesh to sparse voxel conversion in both directions
  • FlexGEMM: a Triton-based sparse convolution kernel that powers the VAE
  • CuMesh: CUDA-accelerated remeshing, simplification, and UV unwrapping utilities for post-processing

Where it breaks

Two limitations are called out directly. O-Voxels handle complex topology well, but generated raw meshes occasionally contain small holes or minor topological discontinuities. For applications requiring strictly watertight geometry such as 3D printing, the repo includes post-processing scripts with hole-filling algorithms. If you are targeting a slicer, budget time for cleanup.

The other caveat: this is a pre-trained foundation model with no RLHF or aesthetic fine-tuning. Outputs reflect the training distribution, style consistency across a batch is not guaranteed, and you will iterate on prompts and reference images to land on a look.

What it unlocks

The practical use cases fall out of the speed and topology story:

  • Game asset prototyping: concept art to a rigged-ready GLB in under a minute, with PBR materials Unity and Unreal can consume directly
  • AR and VR content: 512³ generation in ~3 seconds is fast enough for near-interactive pipelines
  • E-commerce: single product photo to a rotatable 3D viewer, including transparent packaging or glass
  • VFX and previz: complex topology like foliage, cables, and cloth without manual retopology
  • Reconstruction research: the O-Voxel format is a drop-in target for sparse convolution and diffusion research on 3D data

The bigger picture

The original TRELLIS was a CVPR 2025 spotlight that introduced Structured LATent (SLAT) representations, letting one model output radiance fields, Gaussians, or meshes from a shared latent. TRELLIS.2 tightens that idea into a single native representation the transformer operates on directly, without lossy conversion through an implicit field. The paper frames this as pushing reconstruction accuracy and latent compactness together, historically a tradeoff you had to pick a side on.

For anyone tracking the open 3D generation space, this is now the reference point for image-to-3D quality that is fully open source. Hunyuan3D-2 and TripoSG were the models to beat coming into this release. TRELLIS.2 raises the ceiling on resolution to 1536³, keeps inference in the seconds-not-minutes range, and does it under MIT rather than a research-only license. The assumption that iso-surface fields are required to get clean meshes out of a diffusion or flow-matching model is the one worth updating.