Skip to content

Microsoft TRELLIS: Image-to-3D, Versions, Setup and Limits

AINewss Editorial

Microsoft TRELLIS is an open-source image-to-3D model built on structured latents. This guide compares the original 2B-parameter release with TRELLIS.2 (4B, 1536 cubed, PBR materials), gives the actual installation commands and hardware caveats, walks through the image-to-GLB workflow, and explains which parts are MIT-licensed and which are research-only.

View 2 references
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

A rendered three-dimensional asset emerging from a single reference image, representing Microsoft TRELLIS image-to-3D generation.

What Is Microsoft TRELLIS and What Does It Do?

Microsoft TRELLIS is an open-source 3D asset generation model that turns a text or image prompt into a 3D object. Its Structured LATent (SLAT) representation decodes into radiance fields, 3D Gaussians or meshes, and it supports local editing. Pretrained checkpoints reach up to 2 billion parameters.

The model comes from Microsoft Research and was described in "Structured 3D Latents for Scalable and Versatile 3D Generation," a CVPR 2025 Spotlight paper. Its training set contains 500,000 diverse objects, and the official code is at github.com/microsoft/TRELLIS. One latent can be decoded to several output types rather than a single fixed mesh.

How Does SLAT Let One Model Produce Several 3D Formats?

SLAT is a unified latent representation at the core of TRELLIS. A Rectified Flow Transformer generates the latent, and a decoder can convert the same latent into radiance fields, 3D Gaussians or a mesh. That is why one checkpoint can export several formats, and why local edits are possible.

The practical effect is that a single generation run returns three representations. A GLB textured mesh can then be extracted from the Gaussian and mesh outputs, while the raw Gaussians can be saved as PLY. This differs from pipelines that commit to one representation before generation.

What Changed Between TRELLIS and TRELLIS.2?

TRELLIS.2 is a newer 4B-parameter image-to-3D model focused on compact native 3D latents, full PBR materials and resolutions up to 1536³. The original TRELLIS reaches up to 2B parameters and outputs Gaussians, radiance fields or meshes. TRELLIS.2 targets higher fidelity and arbitrary topology.

Aspect TRELLIS (original) TRELLIS.2
Parameters Up to 2B 4B
Core representation Structured Latent (SLAT) O-Voxel + Sparse Compression VAE
Max resolution stated Not fixed in the repo 1536³
Materials Textured mesh export Base color, roughness, metallic, opacity (PBR)
Topology Mesh export Open surfaces, non-manifold and interior structures
License signal MIT for models and most code Materials stated as research-only

The figures come from the official TRELLIS.2 project page. Generation times are totals for shape plus material, measured on an NVIDIA H100: 3 seconds at 512³, 17 seconds at 1024³ and 60 seconds at 1536³.

What Hardware and Setup Does TRELLIS Require?

TRELLIS installs into a conda environment with PyTorch 2.4.0 and CUDA 11.8 by default. Its setup script compiles CUDA extensions including flash-attn, spconv and nvdiffrast. GPUs without flash-attn support, such as the V100, should use the xformers backend. Expect a lengthy first install.

git clone --recurse-submodules https://github.com/microsoft/TRELLIS.git
cd TRELLIS
. ./setup.sh --new-env --basic --xformers --flash-attn --diffoctreerast --spconv --mipgaussian --kaolin --nvdiffrast

Set ATTN_BACKEND=xformers when running on a card without flash-attn. If several CUDA toolkits are installed, put the intended one first on PATH before running the setup script. The repository documents these choices explicitly, so check its installation section before troubleshooting dependency failures.

How Do You Generate a 3D Asset From an Image?

You load the TrellisImageTo3DPipeline from a Hugging Face checkpoint, move it to CUDA, open a source image and call run with a seed. The result is a dictionary of Gaussians, radiance fields and meshes; a postprocessing helper exports a textured GLB.

import imageio
from PIL import Image
from trellis.pipelines import TrellisImageTo3DPipeline
from trellis.utils import render_utils, postprocessing_utils

pipeline = TrellisImageTo3DPipeline.from_pretrained("microsoft/TRELLIS-image-large")
pipeline.cuda()
image = Image.open("assets/example_image/T.png")
outputs = pipeline.run(image, seed=1)

glb = postprocessing_utils.to_glb(outputs['gaussian'][0], outputs['mesh'][0],
                                  simplify=0.95, texture_size=1024)
glb.export("sample.glb")
outputs['gaussian'][0].save_ply("sample.ply")

The official example also renders MP4 previews of each representation. Export options in the repository include GLB for the textured mesh and PLY for Gaussians.

Can Microsoft TRELLIS Turn Text Into 3D Directly?

Yes, TRELLIS-text models were released in March 2025, but the authors recommend a two-step route: generate an image with a text-to-image model first, then pass that image to TRELLIS-image. Text-conditioned 3D is described as less creative and detailed because of dataset limits.

The same update added training code and asset-variant generation. A tuning-free multi-image conditioning option for TRELLIS-image landed in December 2024; the repository notes it is a generic algorithm and may not give the best result for every input set.

Is TRELLIS Free for Commercial Use?

The original TRELLIS models and most code are MIT-licensed, with a few CUDA submodules under separate licenses. TRELLIS.2 materials are stated to be for academic and research purposes only and not for commercial exploitation. Check the specific release before using either in a product.

The project page for TRELLIS.2 calls it a research project and points to a takedown contact for intellectual-property concerns. That distinction matters: a permissive license on one release does not carry over to a later model with a research-only materials disclaimer.

What Are the Limits of Microsoft TRELLIS?

TRELLIS improves format flexibility and local editing, but output quality still depends on the reference image and the chosen representation. Installation is heavy, and the text-to-3D route is explicitly weaker than a text-to-image followed by image-to-3D workflow, and hardware setup is not trivial.

Treat the model as an asset-generation aid rather than a finished production pipeline. Plan for cleanup of topology and textures, and verify licensing for the exact checkpoint you download. For the rigging step that follows generation, see UniRig automatic 3D rigging.

Frequently Asked Questions

These questions cover the practical details readers ask most often about Microsoft TRELLIS: hardware requirements, export formats and the public dataset. Each answer stands on its own, so you can use it without reading the setup sections above. Check the linked repository for changes after this article's date.

How much VRAM does TRELLIS need?

The official TRELLIS repository does not publish a formal minimum VRAM number. It discusses CUDA toolkits and attention backends instead, and notes that V100-class cards should switch from flash-attn to xformers. A community TRELLIS.2 demo on Hugging Face states that model needs a dedicated GPU with at least 24GB VRAM because several CUDA extensions compile at startup. Confirm against your own checkpoint and resolution before budgeting hardware.

What file formats can I export?

The repository's minimal example exports a textured GLB from the Gaussian and mesh outputs, and saves the Gaussian representation as a PLY file. It also renders MP4 previews for Gaussian, radiance-field and mesh views. These are generated files, not source asset edits.

Is there a public TRELLIS dataset?

Yes. The TRELLIS-500K dataset and data-preparation toolkits were released on 26 December 2024. The paper describes 500,000 diverse training objects. The dataset is separate from the model weights, so check its own terms before redistribution.

References

  1. microsoft/TRELLIS - Official GitHub repositorygithub.com
  2. TRELLIS.2: Native and Compact Structured Latents for 3D Generation - Official project pagemicrosoft.github.io