If you want to setup ComfyUI (with 3D-Pack) from the ground up, the key steps are:
-
Setup OS environment: Git, CUDA Toolkit, C++ build tools.
-
Setup Python venv, or embeded. Then setup PIP, or conda.
-
Install PyTorch + xFormers. Each version of xFormers is paired with specific PyTorch version, so you could choose the PyTorch version by choosing xFormers' version.
-
Git clone ComfyUI and custom nodes.
-
Install
requirements.txt
from ComfyUI. When done, a basic environment for running SD image generation is ready. -
Install
requirements.txt
from custom nodes. Which is overwhelmingly full of details. And you should look into them one by one.-
numpy
needs 1.x version. -
onnxruntime-gpu
needs a specific repo to download wheels from. -
cupy-cuda12x
needs manual installation. -
ninja
needs binary from its official, or just OS install and configure thePATH
. -
dlib
andinsightface
needs to compile on site, or download binary wheel files from 3rd party. -
CLIP
needs to install from source. -
gradio
is incompatible with ComfyUI-Manager as they depends on different versions ofurllib3
.
-
-
Comfy3D’s dependency is complicated and needs special attention. You can use its installer, but manual installation gives you more control. You should examine the scripts from top to bottom, pick the proper wheels to install, and copy the includes and libs for later C++ compiling.
-
Finally, put models in and let Python run the
main.py
.
For details, check the source code of this repository.