TRELLIS.2 icon indicating copy to clipboard operation
TRELLIS.2 copied to clipboard

Windows install steps

Open SoftologyPro opened this issue 11 months ago • 71 comments

Can we get a set of steps to install on WIndows? I could copy/paste out the steps in setup.sh, but are there linux only steps like sudo apt install -y libjpeg-dev? Is it possible to run this on Windows like TRELLIS v1?

Also, does An NVIDIA GPU with at least 24GB of memory is necessary. The code has been verified on NVIDIA A100 and H100 GPUs. mean it will work on a 4090 or 5090, or does this mean it needs more than 24 GB?

SoftologyPro avatar Dec 17 '25 01:12 SoftologyPro

We meet again @SoftologyPro :))

I am currently playing around with it, seeing if I can make an easy (working) install for native windows (no guarantee but I will try),

Deathdadev avatar Dec 17 '25 06:12 Deathdadev

Runs on wsl on 5090 , there's no cumesh on windows I think and even on wsl I had issues with blackwell support on cuda 12.8 with these 3 modules https://huggingface.co/siraxe/TRELLIS.2-4B_cuda_12.8.r12.8_wheels/tree/main

siraxe avatar Dec 17 '25 06:12 siraxe

To be honest, I got it working on WSL but it crashes when I try export the glb... probably just my GPU which is a 4070 super.

I am trying to fix that, and find out what exactly makes this linux only, and some work-arounds.

Honestly though, it would help if Microsoft made a compiler to directly translate between linux and windows code so that there is no longer this issue of open source stuff usually only being runnable on linux systems

Edit: Was only crashing when running from vscode

Deathdadev avatar Dec 17 '25 08:12 Deathdadev

Can anyone share tips on how to make it work on windows ? (with 5000 series nVidia card)

Rokazas avatar Dec 17 '25 10:12 Rokazas

Can anyone share tips on how to make it work on windows ? (with 5000 series nVidia card)

Right now, I would suggest Windows Subsystem for Linux (I know it is a pain, I want to just run it on windows natively)

Deathdadev avatar Dec 17 '25 13:12 Deathdadev

Runs on wsl on 5090 , there's no cumesh on windows I think and even on wsl I had issues with blackwell support on cuda 12.8 with these 3 modules https://huggingface.co/siraxe/TRELLIS.2-4B_cuda_12.8.r12.8_wheels/tree/main

Has anyone managed to install the solution on WSL2 Ubuntu 24? Mine fails with the error: cumesh RuntimeError: Error compiling objects for extension? rtx 5090 32gb.

alexmolskiy avatar Dec 17 '25 19:12 alexmolskiy

This is my test installer for Windows that shows as far as I get so far. pillow-simd fails to build. nvdiffrast, nvdiffrec, cumesh, FlexGEMM, and o-voxel all fail to build with no CUDA_HOME error, when you can see I do specifically set a CUDA_HOME variable during the install. Maybe this helps another Windows dev get those building?

@echo off

echo *** %time% *** Deleting TRELLIS.2 directory if it exists
if exist TRELLIS.2\. rd /S /Q TRELLIS.2

echo *** %time% *** Cloning repository
git clone -b main https://github.com/microsoft/TRELLIS.2.git --recursive
cd TRELLIS.2

echo *** %time% *** Creating venv
python -m venv venv

echo *** %time% *** Activating venv
call venv\scripts\activate.bat

echo *** %time% *** Upgrading pip
python -m pip install --upgrade pip
pip install wheel==0.45.1
pip install setuptools==65.5.0
pip install ninja==1.11.1.4

echo *** %time% *** Installing requirements
pip install imageio
pip install imageio-ffmpeg
pip install tqdm
pip install easydict
pip install opencv-python-headless
pip install trimesh
pip install transformers
pip install gradio==6.0.1
pip install tensorboard
pip install pandas
pip install lpips
pip install zstandard
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
rem sudo apt install -y libjpeg-dev

rem fails on Windows?
pip install pillow-simd

pip install kornia
pip install timm
pip install https://huggingface.co/datasets/Softology-Pro/VoC/resolve/main/flash_attn-2.7.4.post1-cp310-cp310-win_amd64.whl

set CUDA_HOME=%CUDA_PATH%
echo CUDA_PATH is %CUDA_HOME%
echo CUDA_HOME is %CUDA_HOME%

echo *** %time% *** Installing nvdiffrast
md tmp
cd tmp
md extensions
cd extensions
git clone -b v0.4.0 https://github.com/NVlabs/nvdiffrast.git
cd nvdiffrast
pip install . --no-build-isolation
cd..
cd..
cd..

echo *** %time% *** Installing nvdiffrec
md tmp
cd tmp
md extensions
cd extensions
git clone -b renderutils https://github.com/JeffreyXiang/nvdiffrec.git
cd nvdiffrec
pip install . --no-build-isolation
cd..
cd..
cd..

echo *** %time% *** Installing cumesh
md tmp
cd tmp
md extensions
cd extensions
git clone https://github.com/JeffreyXiang/CuMesh.git
cd CuMesh
pip install . --no-build-isolation
cd..
cd..
cd..

echo *** %time% *** Installing FlexGEMM
md tmp
cd tmp
md extensions
cd extensions
git clone https://github.com/JeffreyXiang/FlexGEMM.git
cd FlexGEMM
pip install . --no-build-isolation
cd..
cd..
cd..

echo *** %time% *** Installing o-voxel
cd o-voxel
pip install . --no-build-isolation
cd..

echo *** %time% *** Installing GPU torch
pip uninstall -y torch
pip uninstall -y torch
pip install --no-cache-dir --ignore-installed --force-reinstall --no-warn-conflicts torch==2.7.0+cu128 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

call venv\scripts\deactivate.bat
cd ..
echo *** %time% *** Finished TRELLIS.2 install
echo.
echo Check the stats for any errors.  Do not assume it worked.
pause

If anyone can get that working for Windows it would really help.

If it is Linux only, then fine, I will ignore it. I got version 1 of TRELLIS working under Windows and it is supported in Visions of Chaos https://softology.pro/voc.htm but I am getting requests to support v2 too.

SoftologyPro avatar Dec 17 '25 19:12 SoftologyPro

I let you play with the ComfyUI nodes I created for Windows: https://github.com/visualbruno/ComfyUI-Trellis2](https://github.com/visualbruno/ComfyUI-Trellis2)

visualbruno avatar Dec 17 '25 20:12 visualbruno

I let you play with the ComfyUI nodes I created for Windows: [https://github.com/visualbruno/ComfyUI-Trellis2](https://github.com/%5Bvisualbruno/ComfyUI-Trellis2%5D(https://github.com/visualbruno/ComfyUI-Trellis2))

404 Not found Needs to be just https://github.com/visualbruno/ComfyUI-Trellis2

And thanks for the WHLs for easier installs, but I need Python 3.10.x compatible.

A version that did not need to apply for dinov3 access would be great too.

SoftologyPro avatar Dec 17 '25 21:12 SoftologyPro

#include <BaseTsd.h> typedef SSIZE_T ssize_t; #endif in CuMesh\third_party\cubvh\include\cpu was my fix

cd %TEMP% if exist FlexGEMM rmdir /s /q FlexGEMM git clone --recursive https://github.com/JeffreyXiang/FlexGEMM.git cd FlexGEMM

REM IMPORTANT: bypass pip dependency resolution for 'triton>=3.2.0' python -m pip install -v . --no-build-isolation --no-deps

it's a mess plus o-voxel needs alot of changes

o-voxel_windows_fixed.zip

it's alot of changes to make it work , plus it does not help that most sub github links are broken and you need Eigen\Dense not correctly referenced i had to just make my own copy and reference it in cmd mkdir C:\deps 2>nul git clone https://github.com/eigenteam/eigen-git-mirror.git C:\deps\eigen dir C:\deps\eigen\Eigen\Dense set "EIGEN_INCLUDE_DIR=C:\deps\eigen" set "INCLUDE=%EIGEN_INCLUDE_DIR%;%INCLUDE%"

5 hours later it works on windows it's a mess this is made for Linux , lots of syntax and types in script made not for windows , and i'm too suborned to do wsl

so made a script to go thru all the errors like :
conversion from 'unsigned __int64' to '_Ty' requires a narrowing conversion with [ _Ty=int64_t ]

example script for fixing cumesh set "EXT_DIR=%TEMP%\trellis2_ext" set "BB=%EXT_DIR%\CuMesh\third_party\cubvh\include\gpu\bounding_box.cuh"

powershell -NoProfile -Command ^ "$p=$env:BB; $t=Get-Content $p -Raw; " ^ "$old='host device bool is_empty() const\s*{\sreturn\s(max.array()\s*<\smin.array()).any();\s}';" ^ "$new='host device bool is_empty() const { return (max.x() < min.x()) || (max.y() < min.y()) || (max.z() < min.z()); }';" ^ "$t2=[regex]::Replace($t,$old,$new); if($t2 -eq $t){ Write-Host 'PATCH FAILED: pattern not found'; exit 1 } else { Set-Content $p $t2 -Encoding UTF8; Write-Host 'PATCH OK' }"

and there is more . this works with only torch 12.4 so max sm_90 my gpu 5090 sm_120 so set "TORCH_CUDA_ARCH_LIST=9.0+PTX"

i had to go thru every error causing script ... sorry i did not take notes while fixing it , do share your errors and i will try my best .

great job for the team i really mean it , this is made for Linux ... so you have to work for making it work on win .

mr-lab avatar Dec 18 '25 01:12 mr-lab

Just a little update, I am working on creating steps to install on windows without any "dodgy workarounds". I have successfully fixed building for pillow-simd, and made sure that the build script I created packages the .dll required on the users system. Whoever creates this wheel using my script will have to have vcpkg initially to install the required libraries on windows for pillow-simd.

I will create a fork of this repository with the wheels and scripts as I go, for those who are impatient :joy:


Edit: Created the repository, I will release the wheels I have built as pre-release as I am not sure if they will work on others systems lol

I will also include a few extra files in the repository that can help others build wheels for themselves or fix my implementation :D


Edit 2: These are the wheels I compiled on my system. No guarantee they will work, but I will also provide some instructions and code for how I made it run on windows so others may help contribute or build their own.

For now, I suggest using these instructions from @SoftologyPro with my wheels to see if it works: https://github.com/microsoft/TRELLIS.2/issues/4#issuecomment-3666853683

https://github.com/Deathdadev/TRELLIS.2-Windows/releases/tag/test-wheels


Edit 3: I have added an initial release with some instructions to build the wheels for yourself (please only do this if you are tech-savvy): https://github.com/Deathdadev/TRELLIS.2-Windows/releases/tag/initial-windows

Deathdadev avatar Dec 18 '25 08:12 Deathdadev

rtx 5090 py2.7 cu128 python 3.10 all built and running , let me know if you face any problems will be happy to guide anyone on how to run it on windows .

mr-lab avatar Dec 18 '25 13:12 mr-lab

rtx 5090 py2.7 cu128 python 3.10 all built and running , let me know if you face any problems will be happy to guide anyone on how to run it on windows .

please share, it always helps to know how others did it

Deathdadev avatar Dec 18 '25 13:12 Deathdadev

share your errors or where i's stuck be happy to give you step per step solution the issues i fixed are for my case they could be very different , so please do tell

mr-lab avatar Dec 18 '25 16:12 mr-lab

Edit 2: These are the wheels I compiled on my system. No guarantee they will work, but I will also provide some instructions and code for how I made it run on windows so others may help contribute or build their own.

For now, I suggest using these instructions from @SoftologyPro with my wheels to see if it works: #4 (comment)

https://github.com/Deathdadev/TRELLIS.2-Windows/releases/tag/test-wheels

Thanks. I also need the nvdiffrast and nvdiffrec wheels if you (or @mr-lab) can build those too. Then it should be installable for any Windows user with a one click batch file.

SoftologyPro avatar Dec 18 '25 19:12 SoftologyPro

Edit 2: These are the wheels I compiled on my system. No guarantee they will work, but I will also provide some instructions and code for how I made it run on windows so others may help contribute or build their own. For now, I suggest using these instructions from @SoftologyPro with my wheels to see if it works: #4 (comment) https://github.com/Deathdadev/TRELLIS.2-Windows/releases/tag/test-wheels

Thanks. I also need the nvdiffrast and nvdiffrec wheels if you (or @mr-lab) can build those too. Then it should be installable for any Windows user with a one click batch file.

I have provided some updates to the pillow-simd whl, added the nvdiffrast and nvdiffrec whls, and also updated the instructions and code for those who want to compile the wheels themselves:

  • Pre-compiled wheels: https://github.com/Deathdadev/TRELLIS.2-Windows/releases/tag/test-wheels

  • Release notes and instructions to build wheels yourself: https://github.com/Deathdadev/TRELLIS.2-Windows/releases/tag/initial-windows

Deathdadev avatar Dec 19 '25 04:12 Deathdadev

pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/flex_gemm-0.0.1-cp310-cp310-win_amd64.whl

gives

Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting flex-gemm==0.0.1
  Downloading https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/flex_gemm-0.0.1-cp310-cp310-win_amd64.whl (218 kB)
Requirement already satisfied: torch>=2.4.0 in d:\tests\trellis.2\trellis.2\venv\lib\site-packages (from flex-gemm==0.0.1) (2.7.0+cu128)
INFO: pip is looking at multiple versions of flex-gemm to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement triton>=3.2.0 (from flex-gemm) (from versions: none)
ERROR: No matching distribution found for triton>=3.2.0

If it is looking for triton, then that is a problem with Windows as under Windows you (or at least I always do) use the triton-windows package as just pip install triton fails. ie

pip install triton
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
ERROR: Could not find a version that satisfies the requirement triton (from versions: none)
ERROR: No matching distribution found for triton

I did install triton-windows before flex-gemm but that does not help?

SoftologyPro avatar Dec 19 '25 05:12 SoftologyPro

Also when installing o-voxel

pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/o_voxel-0.0.1-cp310-cp310-win_amd64.whl

it gives

Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting o-voxel==0.0.1
  Downloading https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/o_voxel-0.0.1-cp310-cp310-win_amd64.whl (234 kB)
Requirement already satisfied: torch in d:\tests\trellis.2\trellis.2\venv\lib\site-packages (from o-voxel==0.0.1) (2.7.0+cu128)
Requirement already satisfied: numpy in d:\tests\trellis.2\trellis.2\venv\lib\site-packages (from o-voxel==0.0.1) (2.2.6)
Requirement already satisfied: plyfile in d:\tests\trellis.2\trellis.2\venv\lib\site-packages (from o-voxel==0.0.1) (1.1.3)
Requirement already satisfied: trimesh in d:\tests\trellis.2\trellis.2\venv\lib\site-packages (from o-voxel==0.0.1) (4.10.1)
Requirement already satisfied: tqdm in d:\tests\trellis.2\trellis.2\venv\lib\site-packages (from o-voxel==0.0.1) (4.67.1)
Requirement already satisfied: zstandard in d:\tests\trellis.2\trellis.2\venv\lib\site-packages (from o-voxel==0.0.1) (0.25.0)
Requirement already satisfied: easydict in d:\tests\trellis.2\trellis.2\venv\lib\site-packages (from o-voxel==0.0.1) (1.13)
Collecting cumesh@ git+https://github.com/JeffreyXiang/CuMesh.git (from o-voxel==0.0.1)
  Cloning https://github.com/JeffreyXiang/CuMesh.git to c:\users\jason\appdata\local\temp\pip-install-4k6hujao\cumesh_82b453fcd07d43fd87be0e44ed0c4a68
  Running command git clone --filter=blob:none --quiet https://github.com/JeffreyXiang/CuMesh.git 'C:\Users\Jason\AppData\Local\Temp\pip-install-4k6hujao\cumesh_82b453fcd07d43fd87be0e44ed0c4a68'
  Resolved https://github.com/JeffreyXiang/CuMesh.git to commit 1ae554130bf6fee502518565b6aa311191885507
  Running command git submodule update --init --recursive -q
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      C:\Users\Jason\AppData\Local\Temp\pip-build-env-dgc4yopo\overlay\Lib\site-packages\torch\_subclasses\functional_tensor.py:279: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.)
        cpu = _conversion_method_template(device=torch.device("cpu"))
      Traceback (most recent call last):
        File "D:\Tests\TRELLIS.2\TRELLIS.2\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
        File "D:\Tests\TRELLIS.2\TRELLIS.2\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
        File "D:\Tests\TRELLIS.2\TRELLIS.2\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-dgc4yopo\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-dgc4yopo\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
          self.run_setup()
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-dgc4yopo\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
          exec(code, locals())
        File "<string>", line 31, in <module>
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-dgc4yopo\overlay\Lib\site-packages\torch\utils\cpp_extension.py", line 1347, in CUDAExtension
          library_dirs += library_paths(device_type="cuda")
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-dgc4yopo\overlay\Lib\site-packages\torch\utils\cpp_extension.py", line 1566, in library_paths
          paths.append(_join_cuda_home(lib_dir))
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-dgc4yopo\overlay\Lib\site-packages\torch\utils\cpp_extension.py", line 2986, in _join_cuda_home
          raise OSError('CUDA_HOME environment variable is not set. '
      OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'cumesh' when getting requirements to build wheel

I do set CUDA_HOME to match CUDA_PATH before these WHL installs and debug print them as

CUDA_PATH is C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4
CUDA_HOME is C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4

The flex-gemm and o-voxel errors are the last 2 problems now. Everything else seems to build and install fine.

SoftologyPro avatar Dec 19 '25 05:12 SoftologyPro

Here is my latest install.bat. Save into an empty directory and run it.

@echo off

echo *** %time% *** Deleting TRELLIS.2 directory if it exists
if exist TRELLIS.2\. rd /S /Q TRELLIS.2

echo *** %time% *** Cloning repository
git clone -b main https://github.com/microsoft/TRELLIS.2.git --recursive
cd TRELLIS.2

echo *** %time% *** Creating venv
python -m venv venv

echo *** %time% *** Activating venv
call venv\scripts\activate.bat

echo *** %time% *** Upgrading pip
python -m pip install --upgrade pip
pip install wheel==0.45.1
pip install setuptools==65.5.0
pip install ninja==1.11.1.4

echo *** %time% *** Installing requirements
pip install imageio
pip install imageio-ffmpeg
pip install tqdm
pip install easydict
pip install opencv-python-headless
pip install trimesh
pip install transformers
pip install gradio==6.0.1
pip install tensorboard
pip install pandas
pip install lpips
pip install zstandard
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
pip install kornia
pip install timm
pip install https://huggingface.co/datasets/Softology-Pro/VoC/resolve/main/flash_attn-2.7.4.post1-cp310-cp310-win_amd64.whl
pip install triton-windows==3.5.0.post21

rem sudo apt install -y libjpeg-dev

set CUDA_HOME=%CUDA_PATH%
echo CUDA_PATH is %CUDA_HOME%
echo CUDA_HOME is %CUDA_HOME%

echo *** %time% *** Installing GPU torch
pip uninstall -y torch
pip uninstall -y torch
pip install --no-cache-dir --ignore-installed --force-reinstall --no-warn-conflicts torch==2.7.0+cu128 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

echo *** %time% *** Installing nvdiffrast
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/nvdiffrast-0.4.0-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing nvdiffrec
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/nvdiffrec_render-0.0.0-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing pillow-simd
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/pillow_simd-9.5.0.post2-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing cumesh
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/cumesh-0.0.1-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing FlexGEMM
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/flex_gemm-0.0.1-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing o-voxel
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/o_voxel-0.0.1-cp310-cp310-win_amd64.whl

call venv\scripts\deactivate.bat
cd ..
echo *** %time% *** Finished TRELLIS.2 install
echo.
echo Check the stats for any errors.  Do not assume it worked.
pause

That will show the issues with flex-gemm and o-voxel

SoftologyPro avatar Dec 19 '25 05:12 SoftologyPro

Here is my latest install.bat. Save into an empty directory and run it.

@echo off

echo *** %time% *** Deleting TRELLIS.2 directory if it exists
if exist TRELLIS.2\. rd /S /Q TRELLIS.2

echo *** %time% *** Cloning repository
git clone -b main https://github.com/microsoft/TRELLIS.2.git --recursive
cd TRELLIS.2

echo *** %time% *** Creating venv
python -m venv venv

echo *** %time% *** Activating venv
call venv\scripts\activate.bat

echo *** %time% *** Upgrading pip
python -m pip install --upgrade pip
pip install wheel==0.45.1
pip install setuptools==65.5.0
pip install ninja==1.11.1.4

echo *** %time% *** Installing requirements
pip install imageio
pip install imageio-ffmpeg
pip install tqdm
pip install easydict
pip install opencv-python-headless
pip install trimesh
pip install transformers
pip install gradio==6.0.1
pip install tensorboard
pip install pandas
pip install lpips
pip install zstandard
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
pip install kornia
pip install timm
pip install https://huggingface.co/datasets/Softology-Pro/VoC/resolve/main/flash_attn-2.7.4.post1-cp310-cp310-win_amd64.whl
pip install triton-windows==3.5.0.post21

rem sudo apt install -y libjpeg-dev

set CUDA_HOME=%CUDA_PATH%
echo CUDA_PATH is %CUDA_HOME%
echo CUDA_HOME is %CUDA_HOME%

echo *** %time% *** Installing GPU torch
pip uninstall -y torch
pip uninstall -y torch
pip install --no-cache-dir --ignore-installed --force-reinstall --no-warn-conflicts torch==2.7.0+cu128 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

echo *** %time% *** Installing nvdiffrast
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/nvdiffrast-0.4.0-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing nvdiffrec
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/nvdiffrec_render-0.0.0-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing pillow-simd
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/pillow_simd-9.5.0.post2-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing cumesh
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/cumesh-0.0.1-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing FlexGEMM
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/flex_gemm-0.0.1-cp310-cp310-win_amd64.whl

echo *** %time% *** Installing o-voxel
pip install https://github.com/Deathdadev/TRELLIS.2-Windows/releases/download/test-wheels/o_voxel-0.0.1-cp310-cp310-win_amd64.whl

call venv\scripts\deactivate.bat
cd ..
echo *** %time% *** Finished TRELLIS.2 install
echo.
echo Check the stats for any errors.  Do not assume it worked.
pause

That will show the issues with flex-gemm and o-voxel

Try with --no-deps --no-build-isolation. As long as you have windows triton installed it should work.

This is because it is trying to rebuild cumesh. I have no idea why the triton one happens but I have ran into both those issues whilst creating the wheels and thats how I solved it

Deathdadev avatar Dec 19 '25 06:12 Deathdadev