
Step-by-step guide to installing and using Microsoft TRELLIS 2 in ComfyUI. Covers custom node setup, workflow configuration, low VRAM mode, GLB export, and troubleshooting common issues.
Last updated: April 21, 2026
Microsoft TRELLIS 2 is a 4-billion parameter open-source model that generates high-fidelity 3D assets from a single image. Running it inside ComfyUI gives you a visual node-based pipeline where you can chain image generation, 3D reconstruction, texture baking, and format export into one automated workflow.
This guide covers everything you need — from installing the custom nodes to building your first ComfyUI workflow — whether you're on Windows or Linux, with an RTX 3060 or an H100.
If you'd rather skip the setup entirely, you can use TRELLIS 2 online with no installation required.
ComfyUI integration unlocks several advantages over the standalone CLI:
| Feature | Standalone CLI | ComfyUI |
|---|---|---|
| Visual workflow | Command-line only | Node-based drag & drop |
| Batch processing | Script required | Automatic with Queue |
| Pipeline chaining | Manual | Connect nodes visually |
| Community workflows | N/A | Import JSON workflows |
| Live preview | No | Yes |
| Integration with SD/XL | Separate process | Same pipeline |
| Component | Minimum | Recommended |
|---|---|---|
| GPU | NVIDIA 8GB VRAM (RTX 3060) | NVIDIA 16GB+ VRAM (RTX 4070+) |
| RAM | 16 GB | 32 GB |
| Storage | 15 GB free (SSD) | 30 GB free (NVMe SSD) |
| OS | Windows 10/11 or Linux | Windows 11 or Ubuntu 22.04+ |
There are two main ComfyUI custom nodes for TRELLIS 2. This guide covers both options.
This is the most actively maintained node with regular updates.
Step 1: Install ComfyUI (if you haven't)
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txtStep 2: Install the TRELLIS 2 custom node
cd ComfyUI/custom_nodes/
git clone https://github.com/PozzettiAndrea/ComfyUI-TRELLIS.git
cd ComfyUI-TRELLIS
pip install -r requirements.txtStep 3: Download model weights
Download the TRELLIS 2 model weights from HuggingFace and place them in the correct directory:
# Create the models directory
mkdir -p ComfyUI/models/trellis/
# Download from HuggingFace (requires huggingface-cli)
pip install huggingface-hub
huggingface-cli download microsoft/TRELLIS.2-4B --local-dir ComfyUI/models/trellis/Alternatively, download manually from HuggingFace TRELLIS.2-4B and extract to ComfyUI/models/trellis/.
Step 4: Verify installation
cd ComfyUI
python main.pyOpen http://localhost:8188 in your browser. Search for "TRELLIS" in the node browser — you should see the TRELLIS nodes listed.
Microsoft provides a reference integration in the TRELLIS.2 repository:
cd ComfyUI/custom_nodes/
git clone https://github.com/microsoft/TRELLIS.2.git
cd TRELLIS.2
pip install -r requirements.txtWindows users may encounter additional setup steps:
python_embeded\python.exe -m pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu121cuda.dll is in your PATH| Problem | Solution |
|---|---|
CUDA out of memory on startup | Enable Low VRAM mode (see below) |
ModuleNotFoundError: trellis | Reinstall requirements: pip install -r requirements.txt --force-reinstall |
| Node not appearing in browser | Check custom_nodes/ folder structure — ensure no nested directories |
xformers import error | Install matching version: pip install xformers==0.0.23 --index-url https://download.pytorch.org/whl/cu121 |
| Windows path errors | Move ComfyUI to a path without spaces (e.g., C:\ComfyUI) |
Here's the simplest ComfyUI workflow to generate a 3D model from an image.
Load Image → IMAGE output → TRELLIS Image to 3D → image inputTRELLIS Image to 3D → MESH output → TRELLIS Export → mesh inputGLB (recommended for web/game engines)512 for speed, 1024 for quality, 1536 for production| Resolution | Time (H100) | Time (RTX 3060) | Best For |
|---|---|---|---|
| 512³ | ~3s | ~30s | Quick previews |
| 1024³ | ~17s | ~120s | Standard quality |
| 1536³ | ~60s | ~300s+ | Production assets |
For generating 3D models from text prompts with full PBR materials:
| Parameter | Options | Recommendation |
|---|---|---|
| Shape Quality | draft / standard / high | standard for most use cases |
| Texture Resolution | 512 / 1024 / 2048 | 1024 balances quality and speed |
| PBR Channels | color / full | full for game engines |
| Mesh Simplification | none / low / medium / high | low for real-time applications |
| UV Unwrap | auto / smart | smart for better texture packing |
If you have 8GB VRAM or less, enable low VRAM mode to avoid out-of-memory errors:
In the TRELLIS node settings:
5121| Setting | VRAM Usage | Time per Model |
|---|---|---|
| 512³ Low VRAM | ~6.5 GB | ~60s |
| 512³ Normal | ~7.5 GB | ~30s |
| 1024³ Low VRAM | ~7.8 GB | ~180s |
Tip: Close other GPU-consuming applications (browser tabs with WebGL, other AI tools) before running TRELLIS 2 on low VRAM GPUs.
TRELLIS 2 supports multiple export formats through ComfyUI:
| Format | Extension | Best For | Texture Support |
|---|---|---|---|
| GLB | .glb | Web, games, AR/VR | Full PBR |
| OBJ | .obj | 3D printing, Blender | Basic color |
| FBX | .fbx | Unity, Unreal Engine | Full PBR |
| STL | .stl | 3D printing | None |
| 3D Gaussians | .ply | NeRF rendering | Color only |
For game development, GLB is recommended — it's compact, widely supported, and includes PBR textures in a single file.
The ComfyUI community has shared several production-ready workflows:
To import a workflow JSON in ComfyUI:
.json file onto the ComfyUI canvasThis usually means the model weights are not in the correct directory. Verify:
ComfyUI/models/trellis/ should contain the model files from HuggingFacenvidia-smi — if it's low, the model may be running on CPUpython -c "import torch; print(torch.cuda.is_available())"Not officially. TRELLIS 2 requires CUDA. AMD users can try ROCm-based PyTorch, but expect compatibility issues. For AMD GPUs, the online version is recommended.
Minimum 8GB (with low VRAM mode at 512³). Recommended 16GB+ for 1024³ and higher resolutions.
Yes. You can chain TRELLIS 2 with Stable Diffusion XL, ControlNet, or any image generation node. Generate an image first, then feed it into TRELLIS for 3D conversion.
Yes. TRELLIS 2 is open-source under Microsoft's license. You can use it locally at no cost. The HuggingFace model weights are also free to download.
3D technology specialists focused on AI-powered 3D model generation, format conversion, and browser-based 3D rendering. We test and review 3D tools so you don't have to.

Complete guide to using Microsoft TRELLIS 2 online for free. Covers Hugging Face Spaces, Google Colab, and other cloud platforms — no GPU or Python installation needed.

Turn any photo into a 3D-printable model. Covers AI tool selection, mesh repair in Blender, STL export settings, slicer configuration, and troubleshooting common print failures. Works with TRELLIS 2, Meshy AI, and Tripo AI.

How to generate production-quality PBR textures (Base Color, Roughness, Metallic, Normal maps) with TRELLIS 2 in ComfyUI. Covers texture baking nodes, parameter tuning, and export for Unity/Unreal.
Join the community
Subscribe to our newsletter for the latest news and updates