ComfyUI Hunyuan3D-1-wrapper is a custom node that allows you to run a/Tencent/Hunyuan3D-1 in ComfyUI as a wrapper.
ComfyUI Hunyuan3D-1-wrapper is a custom node that allows you to run Tencent/Hunyuan3D-1 in ComfyUI as a wrapper. !!To avoid breaking your existing environment, it is strongly recommended to use a fresh ComfyUI installation for this node
Please note that this plugin currently doesn't have an easy way to install in ComfyUI. I'll provide several scenarios for reference.
Additionally, the following environments are all based on Windows 10 + CUDA 12.4 + Python 3.12.
If you downloaded ComfyUI from the ComfyUI Release page (current latest version 0.2.7, bundled with Python 3.12) and have successfully installed 3D Pack, congratulations, you dont need this repo, 3d-pack has its implement already.
If you downloaded ComfyUI from the ComfyUI Release page (current latest version 0.2.7, bundled with Python 3.12) but haven't installed 3D Pack, you'll need some additional steps to package related dependencies.
It should be noted that if you plan to use ComfyUI's built-in Python, texture mapping and gif output will not be available in this node.
Pytorch3D is a major challenge during installation, whether for 3D Pack or this node. Reference steps:
conda create -n comfy-hunyuan3d-py312-build python=3.12
conda activate comfy-hunyuan3d-py312-build
pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/cu124
pip wheel git+https://github.com/facebookresearch/pytorch3d
If everything goes smoothly, you'll see the pytorch3d wheel file in your current directory{comfyUI_python_embeded}\python -m pip install pytorch3d-0.7.8-cp312-cp312-win_amd64.whl
Currently, Open3D hasn't released packages for Python 3.12, but you can download the Python 3.12 dev version from their github:
https://github.com/isl-org/Open3D/releases/tag/main-devel
{comfyUI_python_embeded}\python -m pip install open3d-0.18.0+fcc396e-cp312-cp312-win_amd64.whl
git clone
this repository in ComfyUI's custom nodes folder{comfyUI_python_embeded}\python -m pip install -r requirements.txt
{comfyUI_python_embeded}\python -m pip install git+https://github.com/NVlabs/nvdiffrast
{comfyUI_python_embeded}\python -m pip install Ninja
Again, reminder that in this scenario, texture mapping and gif output are not available.
From my personal perspective, this is my most recommended approach, as texture mapping and gif output can be used in this environment. Specific steps:
conda create -n hunyuan3d-comfyui-py312 python=3.12
conda activate hunyuan3d-comfyui-py312
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu124
pip install -r .\requirements.txt
pip install git+https://github.com/facebookresearch/pytorch3d
pip install git+https://github.com/NVlabs/nvdiffrast
pip install open3d-0.18.0+fcc396e-cp312-cp312-win_amd64.whl
git clone
this repository in ComfyUI's custom nodes folderpip install -r requirements.txt
pip install Ninja
Run the following command in ComfyUI's root directory to start:
python -s main.py --windows-standalone-build
I apologize, but I personally don't have the habit of using these launchers. Since different launchers bind to different environments, due to time constraints, I haven't done any testing on them. However, theoretically, they should all work - please research on your own.
Regardless of which scenario you use, after installing the above dependencies, we still need to manually download related checkpoints. Specific steps:
pip install "huggingface_hub[cli]"
huggingface-cli download tencent/Hunyuan3D-1 --local-dir ./weights
huggingface-cli download Tencent-Hunyuan/HunyuanDiT-v1.1-Diffusers-Distilled --local-dir ./weights/hunyuanDiT
Here I provide three workflows:
Please understand the node usage in conjunction with the workflows.
Sometimes, ComfyUI will throw the error of torch.OutOfMemoryError: Allocation on device randomly while generating mesh. However, if I run it again several times, then it could generate successfully. You can fix the seed to save time.