Repository navigation
Manual installation
If you prefer to set up dependencies manually or need to install specific components not covered by the script, follow these instructions. Estimated time for manual setup: 15-30 minutes (excluding model download times, which can be significant).
Prerequisites for manual installation:
- Git: Required for cloning ComfyUI custom nodes. Download from git-scm.com.
- Sufficient Disk Space: AI models are large. Ensure you have adequate free space (10GB to 50GB+).
Manual Installation Steps:
1. Install Required ComfyUI Custom Nodes
StableGen requires specific custom nodes for ComfyUI to function correctly, particularly for IPAdapter support.
-
Open your system's terminal or command prompt.
-
Navigate to your ComfyUI custom nodes directory:
cd <YourComfyUIDirectory>/custom_nodes/
-
Clone the following repository:
-
ComfyUI IPAdapter Plus:
git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus.git
-
ComfyUI IPAdapter Plus:
-
Restart ComfyUI after installing new custom nodes to ensure they are loaded.
(You may find the ComfyUI Manager custom node helpful for managing other custom nodes in the future, though it's not a strict requirement for StableGen's core dependencies listed here.)
2. Download and Place Required AI Models for StableGen
These models are essential for StableGen's core features and presets. Download each file and place it into the specified subdirectory within <YourComfyUIDirectory>/models/. Create directories if they do not exist. Pay close attention to renaming instructions where specified, as they are crucial.
-
a) IPAdapter Model (Core Functionality)
-
Directory:
<YourComfyUIDirectory>/models/ipadapter/ -
Filename:
ip-adapter-plus_sdxl_vit-h.safetensors - Download URL: https://huggingface.co/h94/IP-Adapter/resolve/main/sdxl_models/ip-adapter-plus_sdxl_vit-h.safetensors?download=true
- License: Apache 2.0
- Size: ~850 MB
-
Directory:
-
b) IPAdapter CLIP Vision Models (Dependencies for IPAdapter)
-
Directory:
<YourComfyUIDirectory>/models/clip_vision/ -
File 1:
-
Target Filename:
CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors - Download URL: https://huggingface.co/h94/IP-Adapter/resolve/main/models/image_encoder/model.safetensors
-
Action: Download
model.safetensorsand rename it toCLIP-ViT-H-14-laion2B-s32B-b79K.safetensors.
-
Target Filename:
-
File 2:
-
Target Filename:
CLIP-ViT-bigG-14-laion2B-39B-b160k.safetensors - Download URL: https://huggingface.co/h94/IP-Adapter/resolve/main/sdxl_models/image_encoder/model.safetensors
-
Action: Download
model.safetensorsand rename it toCLIP-ViT-bigG-14-laion2B-39B-b160k.safetensors.
-
Target Filename:
- License (for both): Apache 2.0
- Combined Size: ~6 GB
-
Directory:
-
c) SDXL Lighting LoRA (Necessary for Default Presets & Recommended for Speed)
-
Directory:
<YourComfyUIDirectory>/models/loras/ -
Filename:
sdxl_lightning_8step_lora.safetensors - Download URL: https://huggingface.co/ByteDance/SDXL-Lightning/resolve/main/sdxl_lightning_8step_lora.safetensors?download=true
- License: OpenRAIL++
- Size: ~400 MB
-
Directory:
-
d) ControlNet Model (Depth - Crucial for Presets)
-
Directory:
<YourComfyUIDirectory>/models/controlnet/ -
Target Filename:
controlnet_depth_sdxl.safetensors - Download URL: https://huggingface.co/xinsir/controlnet-depth-sdxl-1.0/resolve/main/diffusion_pytorch_model.safetensors?download=true
-
Action: Download
diffusion_pytorch_model.safetensorsand rename it tocontrolnet_depth_sdxl.safetensors. - License: Apache 2.0
- Size: ~2.5 GB
-
Directory:
3. (Optional but Recommended) Additional AI Models
While the models above are core/hardcoded for some presets, StableGen supports more.
-
Other SDXL Lighting & Hyper-SD LoRAs:
- Place in:
<YourComfyUIDirectory>/models/loras/ - No renaming needed.
- SDXL Lightning 4-step: Download Link (License: OpenRAIL++)
- SDXL Lightning 2-step: Download Link (License: OpenRAIL++)
- Hyper-SDXL 8-steps LoRA: Download Link (License: Unknown)
- Hyper-SDXL 4-steps LoRA: Download Link (License: Unknown)
- Hyper-SDXL 1-step LoRA: Download Link (License: Unknown)
- Place in:
-
Other ControlNet Models:
- Place in:
<YourComfyUIDirectory>/models/controlnet/ -
Depth (alternative variant):
- Filename:
diffusion_pytorch_model.fp16.safetensors(No rename needed) - URL: https://huggingface.co/diffusers/controlnet-depth-sdxl-1.0/resolve/main/diffusion_pytorch_model.fp16.safetensors?download=true
- License: OpenRAIL++
- Size: ~2.5 GB
- Filename:
-
Union (Depth/Normal/Canny):
- Target Filename:
sdxl_promax.safetensors - URL: https://huggingface.co/brad-twinkl/controlnet-union-sdxl-1.0-promax/resolve/main/diffusion_pytorch_model.safetensors?download=true
- Action: Download and rename to
sdxl_promax.safetensors. - License: Apache 2.0
- Size: ~2.5 GB
- Target Filename:
- Place in:
4. Download a Base SDXL Model
You need at least one main SDXL checkpoint. These are large and are user's choice.
-
Recommended Placement:
<YourComfyUIDirectory>/models/checkpoints/ -
Recommended Model (Used throughout development):
-
RealVisXL V5.0 (fp16):
- URL: https://huggingface.co/SG161222/RealVisXL_V5.0/resolve/main/RealVisXL_V5.0_fp16.safetensors?download=true
- License: OpenRAIL++
- Size: ~7 GB
-
RealVisXL V5.0 (fp16):
-
Alternative: Standard SDXL Base:
-
SDXL Base 1.0:
- URL: https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors?download=true
- License: OpenRAIL++
- Size: ~7 GB
-
SDXL Base 1.0:
- Note: StableGen supports any SDXL-based model.
5. (Optional) Qwen Image Edit Setup
Qwen Image Edit 2509 textures and refines models with the Qwen workflows. These components are large and require the ComfyUI GGUF loader.
-
a) Install the ComfyUI GGUF Loader (Custom Node)
- Navigate to your ComfyUI custom nodes directory:
cd <YourComfyUIDirectory>/custom_nodes/
- Clone the GGUF loader repository:
git clone https://github.com/city96/ComfyUI-GGUF.git
- Restart ComfyUI to load the new node.
- Navigate to your ComfyUI custom nodes directory:
-
b) Download the Qwen Image Edit UNet (GGUF)
-
Directory:
<YourComfyUIDirectory>/models/unet/ -
Filename:
Qwen-Image-Edit-2509-Q3_K_M.gguf - Download URL: https://huggingface.co/QuantStack/Qwen-Image-Edit-2509-GGUF/resolve/main/Qwen-Image-Edit-2509-Q3_K_M.gguf?download=true
- License: Apache 2.0
- Size: ~9.5 GB
-
Directory:
-
c) Download the Qwen Image VAE
-
Directory:
<YourComfyUIDirectory>/models/vae/ -
Filename:
qwen_image_vae.safetensors - Download URL: https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors?download=true
- License: Apache 2.0
- Size: ~254 MB
-
Directory:
-
d) Download the Qwen Text Encoder (FP8)
-
Directory:
<YourComfyUIDirectory>/models/clip/ -
Filename:
qwen_2.5_vl_7b_fp8_scaled.safetensors - Download URL: https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors?download=true
- License: Apache 2.0
- Size: ~9.2 GB
-
Directory:
-
e) Install the Core Qwen Lightning LoRA (Required for StableGen Presets)
-
Directory:
<YourComfyUIDirectory>/models/loras/ -
Filename:
Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors - Download URL: https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors?download=true
- License: Apache 2.0
- Size: ~850 MB
-
Directory:
-
f) (Optional) Additional Qwen Lightning LoRAs
-
Directory:
<YourComfyUIDirectory>/models/loras/ - Qwen Image Edit Lightning 8-Step (bf16): https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-8steps-V1.0-bf16.safetensors?download=true
- Qwen Image Lightning 4-Step (bf16): https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0-bf16.safetensors?download=true
- Each LoRA is licensed under Apache 2.0 and is approximately 850 MB.
-
Directory:
6. (Optional) Nunchaku Qwen Setup
For users with NVIDIA GPUs on Linux or Windows (WSL2 recommended for best performance, though native Windows support is improving), Nunchaku offers a highly optimized inference engine for Qwen models.
-
a) Install Required Custom Nodes
- Navigate to your ComfyUI custom nodes directory:
cd <YourComfyUIDirectory>/custom_nodes/
- Clone the Nunchaku repository:
git clone https://github.com/nunchaku-tech/ComfyUI-nunchaku.git
- Clone the Qwen Image LoRA Loader repository:
git clone https://github.com/ussoewwin/ComfyUI-QwenImageLoraLoader.git
- Install the Nunchaku engine. It is not the PyPI package named
nunchaku(an unrelated project): it ships as wheels built for each Python, PyTorch and platform. Run theinstall_wheel.jsonexample workflow from ComfyUI-nunchaku, which picks the matching wheel, or letinstaller.pypackage 7 do it. - Restart ComfyUI.
- Navigate to your ComfyUI custom nodes directory:
-
b) Download the Nunchaku Quantized Model
-
Directory:
<YourComfyUIDirectory>/models/diffusion_models/ -
Filename:
svdq-int4_r128-qwen-image-edit-2509-lightning-4steps-251115.safetensors - Download URL: https://huggingface.co/nunchaku-tech/nunchaku-qwen-image-edit-2509/resolve/main/lightning-251115/svdq-int4_r128-qwen-image-edit-2509-lightning-4steps-251115.safetensors?download=true
- License: Apache 2.0
- Size: ~12.7 GB
-
Directory:
7. (Optional) TRELLIS.2 - Image/Text to 3D Setup
Generate 3D meshes from a single image or text prompt. Models auto-download on first use (~2 GB each for shape and texture stages).
Note: The TRELLIS.2 native textured output pipeline uses NVIDIA non-commercial libraries (nvdiffrast). Shape-only and SDXL/Qwen texture generation does not have this restriction.
Important
Upgrade Action Required: If you are upgrading from a previous version of StableGen, you must manually delete the old ComfyUI-TRELLIS2 and ComfyUI-Geometrypack directories from your ComfyUI custom_nodes/ directory first before cloning the new repository.
-
a) Install the ComfyUI-TRELLIS2 Custom Node
- Navigate to your ComfyUI custom nodes directory:
cd <YourComfyUIDirectory>/custom_nodes/
- Clone the repository at the tested commit:
git clone https://github.com/PozzettiAndrea/ComfyUI-TRELLIS2.git cd ComfyUI-TRELLIS2 git checkout 9b878516f2dc2fd873f4f6cceadba403dd12d83e - Install its dependencies (from inside the cloned folder):
pip install -r requirements.txt
- Install the comfy-env version StableGen was tested with (it replaces the one
requirements.txtasks for):pip install --force-reinstall --no-deps comfy-env==0.4.1
- Restart ComfyUI.
- License: MIT (node code)
- Size: ~0.1 GB (models auto-download on first use)
- Navigate to your ComfyUI custom nodes directory:
-
b) Important: Apply Patches (Recommended)
installer.pyapplies compatibility patches to ComfyUI-TRELLIS2 and comfy-env. If you install manually, it is strongly recommended to run the installer's package 8 for this step afterwards (it keeps your clone). The patches include:- A
Path.is_junctionfallback for Python 3.10 and 3.11. - comfy-env fixes: Linux wheel platform tags, a PyTorch version fallback for CUDA wheels, keeping user site-packages out of the isolated worker, and wheel metadata names that break rebuilds.
- Keeping the isolated environment's packages in step with ComfyUI core's pinned versions, checked again on every ComfyUI start. After updating ComfyUI,
python installer.py <ComfyUI> --repairre-applies everything. - Running BiRefNet background removal in fp32 to avoid a dtype mismatch.
- A
8. (Optional) PBR Decomposition - Marigold IID Setup
Decompose color textures into PBR material maps (roughness, metallic, normal, height, albedo). Models auto-download on first use.
-
a) Install the ComfyUI-Marigold Custom Node
- Navigate to your ComfyUI custom nodes directory:
cd <YourComfyUIDirectory>/custom_nodes/
- Clone the repository:
git clone https://github.com/kijai/ComfyUI-Marigold.git
- Install its dependencies:
cd ComfyUI-Marigold pip install -r requirements.txt pip install "diffusers>=0.28"
-
(Windows only) Install triton:
pip install triton-windows
- Restart ComfyUI.
- License: GPL-3.0
- Size: ~0.01 GB (models auto-download on first use, ~2 GB each)
- Navigate to your ComfyUI custom nodes directory:
9. (Optional) PBR Decomposition - StableDelight Setup
Adds a specular-free albedo extraction option for PBR decomposition. Requires Marigold IID (step 8) to also be installed.
-
a) Install the ComfyUI_StableDelight_ll Custom Node
- Navigate to your ComfyUI custom nodes directory:
cd <YourComfyUIDirectory>/custom_nodes/
- Clone the repository:
git clone https://github.com/lldacing/ComfyUI_StableDelight_ll.git
- Restart ComfyUI.
- License: Apache 2.0
- Navigate to your ComfyUI custom nodes directory:
-
b) Download the StableDelight Model
-
Directory:
<YourComfyUIDirectory>/models/diffusers/Stable-X--yoso-delight-v0-4-base - Source: https://huggingface.co/Stable-X/yoso-delight-v0-4-base
- You can download the full repo or use:
pip install huggingface_hub python -c "from huggingface_hub import snapshot_download; snapshot_download('Stable-X/yoso-delight-v0-4-base', local_dir='<YourComfyUIDirectory>/models/diffusers/Stable-X--yoso-delight-v0-4-base')" - License: Apache 2.0
- Size: ~3.3 GB
-
Directory:
10. (Optional) PBR Decomposition - Marigold V2 Setup
Marigold V2 estimates albedo and normal maps with LoRAs on Qwen Image Edit 2509. It uses ComfyUI core nodes (ComfyUI from September 2026 or newer); roughness and metallic still come from the Marigold IID node (section 8).
- Download from the Comfy-Org/marigold-v2-0 repository, keeping its folder layout under
<YourComfyUIDirectory>/models/:-
diffusion_models/qwen_image_edit_2509_int8_convrot.safetensors(~19.5 GB) -
loras/marigold_v2_albedo.safetensorsandloras/marigold_v2_normals.safetensors(~1.6 GB each) -
vae/marigold_v2_albedo_vae.safetensorsandvae/marigold_v2_normals_vae.safetensors -
embeddings/marigold_v2_albedo_conditioning.safetensorsandembeddings/marigold_v2_normals_conditioning.safetensors
-
- License: Apache 2.0
- Total download size: ~23.3 GB
11. (Optional) Qwen Image 2.1 Setup
Qwen Image 2.1 uses ComfyUI core nodes (ComfyUI from September 2026 or newer). StableGen expects the text encoder and VAE under these exact file names.
-
a) Diffusion model:
qwen_image_2.1_int8_convrot.safetensorsin<YourComfyUIDirectory>/models/diffusion_models/(~7.3 GB) -
b) Text encoder:
qwen3vl_8b_w4a8.safetensorsin<YourComfyUIDirectory>/models/text_encoders/(~6.3 GB) -
c) VAE:
qwen_image_2.1_vae_bf16.safetensorsin<YourComfyUIDirectory>/models/vae/(~0.7 GB) - All three are in the Comfy-Org/Qwen-Image-2.1 repository, in the folders of the same names.
- License: Qwen Research License, non-commercial use only (research or evaluation).
12. (Optional) SkinTokens Auto-Rigging Setup
-
a) Install the custom node
cd <YourComfyUIDirectory>/custom_nodes/ git clone https://github.com/sakalond/ComfyUI-StableGen-SkinTokens.git
-
b) Build the SkinTokens runtime with ComfyUI's Python, from inside the cloned folder. It creates a separate environment (
vendor/skintokens_env) with its own PyTorch and downloads the checkpoints (~1.6 GB), so ComfyUI's Python is not changed:python install_skintokens.py --target managed
python doctor_skintokens.pyreports the runtime's state. - c) Restart ComfyUI.
- License: GPL-3.0 (node); SkinTokens code and weights MIT
- Size: ~9 GB including the environment
13. (Optional) Qwen Image 2.1 Turbo Setup (Experimental)
Qwen Image 2.1 Turbo is the few-step variant of Qwen Image 2.1 and uses the same text encoder and VAE (section 11). It uses ComfyUI core nodes.
-
a) Diffusion model:
qwen_image_2.1_turbo_int8_convrot.safetensorsin<YourComfyUIDirectory>/models/diffusion_models/(~6.9 GB) -
b) Text encoder and VAE:
qwen3vl_8b_w4a8.safetensorsinmodels/text_encoders/andqwen_image_2.1_vae_bf16.safetensorsinmodels/vae/, as for Qwen Image 2.1 (~7.0 GB, skip them if you already have them) - All files are in the Comfy-Org/Qwen-Image-2.1 repository, in the folders of the same names.
- License: Qwen Research License, non-commercial use only (research or evaluation).
- Total download size: ~13.9 GB (~6.9 GB with Qwen Image 2.1 already installed)
14. (Optional) MOSS Image Setup (Experimental)
MOSS Image uses ComfyUI core nodes from ComfyUI 0.42 on; its color/depth control adapter needs ComfyUI 0.42.3 or newer. StableGen expects these file names.
-
a) Diffusion model:
moss_image_sft_int8_convrot.safetensorsin<YourComfyUIDirectory>/models/diffusion_models/(~5.2 GB) -
b) Text encoder:
qwen3.5_9b_int8_convrot.safetensorsin<YourComfyUIDirectory>/models/text_encoders/(~9.3 GB) -
c) VAE:
flux2-vae_small.safetensorsin<YourComfyUIDirectory>/models/vae/(~0.2 GB) -
d) Color/depth control adapter:
moss_image_color_depth_control.safetensorsin<YourComfyUIDirectory>/models/loras/(~0.3 GB) - All four are in the Comfy-Org/MOSS-Image repository, in the folders of the same names.
- License: Apache 2.0
- Total download size: ~15.0 GB
15. (Optional) FIBO 2.0 Edit Setup (Experimental)
Bria FIBO 2.0 Edit uses ComfyUI core nodes and needs a ComfyUI build with native FIBO 2.0 support (the master branch since October 2026). StableGen expects these file names.
-
a) Diffusion model:
fibo2_edit_turbo_int8_convrot.safetensorsin<YourComfyUIDirectory>/models/diffusion_models/(~8.0 GB) -
b) Text encoder:
qwen3vl_4b_int8_convrot.safetensorsin<YourComfyUIDirectory>/models/text_encoders/(~4.6 GB) -
c) VAE:
flux2-vae.safetensorsin<YourComfyUIDirectory>/models/vae/(~0.3 GB) - All three are in the Comfy-Org/Fibo-2.0 repository, in the folders of the same names.
- License: CC BY-NC 4.0, non-commercial use only; commercial use needs an agreement with Bria.
- Total download size: ~13.0 GB
Getting started
Texturing
Mesh generation and rigging
Output and automation