--extra-index-url https://download.pytorch.org/whl/cu121 --find-links https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.4.0_cu121.html torch==2.4.0 torchvision==0.19.0 pillow==10.4.0 imageio==2.36.1 imageio-ffmpeg==0.5.1 tqdm==4.67.1 easydict==1.13 opencv-python-headless==4.10.0.84 scipy==1.14.1 rembg==2.0.60 onnxruntime==1.20.1 trimesh==4.5.3 xatlas==0.0.9 pyvista==0.44.2 pymeshfix==0.17.0 igraph==0.11.8 git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8 xformers==0.0.27.post2 kaolin==0.17.0 spconv-cu120==2.3.6 transformers==4.46.3 gradio_litmodel3d==0.0.1 https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.0.post2/flash_attn-2.7.0.post2+cu12torch2.4cxx11abiFALSE-cp310-cp310-linux_x86_64.whl https://huggingface.co/spaces/JeffreyXiang/TRELLIS/resolve/main/wheels/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl?download=true https://huggingface.co/spaces/JeffreyXiang/TRELLIS/resolve/main/wheels/nvdiffrast-0.3.3-cp310-cp310-linux_x86_64.whl?download=true SageAttention




ComfyUI TRELLIS is a large 3D asset generation in various formats, such as Radiance Fields, 3D Gaussians, and meshes. The cornerstone of TRELLIS is a unified Structured LATent (SLAT) representation that allows decoding to different output formats and Rectified Flow Transformers tailored for SLAT as the powerful backbones.
Give unrestricted script access to powershell so venv can work:
Set-ExecutionPolicy Unrestricted and answer A“`
cd ComfyUI/Custom_nodes
git clone –recurse-submodules https://github.com/if-ai/ComfyUI-IF_Trellis.git
“`
--recurse-submodulesONLY tested on windows but it should work easier in Linux without any issues or needing such specific stuffs.
*NOT tested or compatible with PORTABLE comfy embeded python env*
watch quick overview of setting the env if needed
[](https://www.youtube.com/watch?v=-vEpuYL9I3g)
You need to set up the environment first
follow this guide for the first part
Set the VSCode Cpp Envirronment as in the guide
Installing Triton and Sage Attention Flash Attention
Setting up ComfyUI with the Xformers, flash attention, Sage-attention(Optional Recommended for Hunyuan and other Video models)
* You can Also Try This Other Guide *
[](https://www.youtube.com/watch?v=FjNfDsX-jR0)
Activate youur comfy environment
(gen) PS D:\ComfyUI\custom_nodes\ComfyUI-IF_Trellis> micromamba activate gen
If you haven’t set your vars or for some reason it can’t compile some of this specially nvdiffrast
it doesn’t hurt if you do it again now.
cmd.exe /c "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64 "&&" powershell
You will see some message like this:
** Visual Studio 2019 Developer Command Prompt v16.11.41
** Copyright (c) 2021 Microsoft Corporation
[vcvarsall.bat] Environment initialized for: ‘x64’
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
pip install -r win_requirements.txt
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
New-Item -ItemType Directory -Force -Path C:\tmp\extensions
git clone --recurse-submodules https://github.com/JeffreyXiang/diffoctreerast.git C:\tmp\extensions\diffoctreerast
pip install C:\tmp\extensions\diffoctreerast
git clone https://github.com/autonomousvision/mip-splatting.git C:\tmp\extensions\mip-splatting
pip install C:\tmp\extensions\mip-splatting\submodules\diff-gaussian-rasterization\
pip install kaolin -f https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.4.0_cu121.html
git clone https://github.com/NVlabs/nvdiffrast.git C:\tmp\extensions\nvdiffrast
pip install C:\tmp\extensions\nvdiffrast