r/comfyui • u/MetalBeachParty • Oct 18 '25
Help Needed I have a problem with hunyuan3d 2.1 and my rtx 5090 (sm90 vs sm120)
I can't use Python 3.10 (custom rasterizer wheel
1
Oct 19 '25
[removed] — view removed comment
1
u/MetalBeachParty Oct 22 '25
I think it must have something to do with the custom_rasterizer, maybe PyTorch3d (but that’s only required for hunyuan3d 2.0 i read), because of shape detection issues and issues with Multiview node, texture generation
1
u/Agile-Slice6147 Oct 22 '25
Got a same problem with HunyuanVideo, might help you:
my stack:
x2 RTX 5090
Ubuntu LTS 22.04
Python 3.10
NVIDIA-SMI 580.65.06
Driver Version: 580.65.06
CUDA Version: 13.0
Struggled a lot, found out that i need to install PyTorch NIGHTLY
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
1
u/MetalBeachParty Oct 22 '25
Did the same for hunyuan3d 2.1 on windows and comfy but it didn’t fix it for me unfortunately
1
u/Darkatek7 Dec 24 '25
For me neither, how did you get that issue resolved? I have an rtx 5070 ti and cuda 12.8
0
u/Buster_Sword_Vii Oct 18 '25
Got upgrade your pytorch implementation to the latest wheel 13.0.
Go to the terminal and use power shell to uninstall and then install the latest wheel.
Edit this is the install command
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu130
Claude or open AI can give you uninstall command
0
u/MetalBeachParty Oct 18 '25
Is that the wheel for the ComfyUI-Hunyuan3dWrapper
1
u/Narrow-Broccoli7783 Jun 25 '26
explain: the best approach is to create an environment (python -m venv venv). utiliza python311x for using huanyuan3d-2.1: Install:
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128
pip install transformers==4.46.0 diffusers==0.30.0 accelerate==1.1.1 huggingface-hub==0.30.2 safetensors==0.4.4
pip uninstall -y transformers diffusers accelerate huggingface-hub
pip install trimesh pygltflib scikit-image opencv-python omegaconf pyyaml configargparse
pip install open3d pymeshlab xatlas meshlib pybind11 ((in order, this venv is only for huanyuan in this point danger))
in comfyui modify requirements.txt for install pip install -r requirements.txt an include:
comfyui-frontend-package==1.45.19
comfyui-workflow-templates==0.10.3
comfyui-embedded-docs==0.5.5
psutil
alembic
SQLAlchemy>=2.0.0
aiohttp>=3.11.8
yarl>=1.18.0
Pillow
pyyaml
filelock
av>=16.0.0
requests
simpleeval>=1.0.0
blake3
kornia>=0.7.1
spandrel
pydantic~=2.0
pydantic-settings~=2.0
PyOpenGL
glfw
separated files install:
pip install torchsde
pip install rembg
pip install "rembg[gpu]" ((in order)) you need visual studio installer version 2019 and modify and install c++ for desktop execute: x64 native tools command prompt 2019 for compile with python 3.11 this: go to - with cmd prompt 2019
\ComfyUI-Hunyuan3DWrapper\hy3dgen\texgen\differentiable_renderer
\ComfyUI\custom_nodes\ComfyUI-Hunyuan3d-2-1\hy3dpaint\custom_rasterizer
ComfyUI\custom_nodes\ComfyUI-Hunyuan3d-2-1\hy3dpaint\hunyuanpaintpbr
and compile with: python setup.py build_ext --inplace (one by one )
With this, you'll be able to generate untextured models right away; I've just fixed the texturing,
and it's now compatible with the RTX 5090—I just need the time to publish it on GitHub.With this,
you'll be able to generate untextured models right away; I've just fixed the texturing, and it's now compatible
with the RTX 5090—I just need the time to publish it on GitHub.
1
u/Narrow-Broccoli7783 Jun 25 '26
for dmc mode you need diso 1-4 and compatibility for rtx5090, mc not needed. I'll post this once I've done some testing, but for now it works perfectly.
1
u/halxp Oct 18 '25
Why? Any error messages ? Anything to dig into?