This README consolidates and updates all features in this project, including the latest DiffSynth integration, Distill behavior, VRAM strategies, and Blockwise ControlNet Inpaint support.
Notes
There are two recommended ways:
A) Minimal wiring (recommended)
B) Custom preprocessing path
Advanced Sampler will construct ControlNetInput(image=..., inpaint_mask=...) and handle size/mode normalization for the mask.
Apache 2.0. See LICENSE.
🎨 A comprehensive ComfyUI plugin for Qwen-Image model integration using ComfyUI's standard separated model loading architecture. Features exceptional Chinese text rendering, advanced image generation capabilities, and the new Advanced Diffusion Loader with comprehensive optimization options.
Place these models in the corresponding ComfyUI directories:
Diffusion Models (ComfyUI/models/diffusion_models/):
qwen_image_bf16.safetensorsqwen_image_fp8_e4m3fn.safetensorsText Encoders (ComfyUI/models/text_encoders/):
qwen_2.5_vl_7b.safetensorsqwen_2.5_vl_7b_fp8_scaled.safetensorsVAE (ComfyUI/models/vae/):
qwen_image_vae.safetensorsControlNet Models (ComfyUI/models/controlnet/) - For DiffSynth features:
qwen_image_blockwise_controlnet_canny.safetensorsqwen_image_blockwise_controlnet_depth.safetensorsLoRA Models (ComfyUI/models/loras/) - For DiffSynth features:
qwen_image_distill.safetensorsqwen_image_lightning.safetensorsNavigate to your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes
Clone this repository:
git clone https://github.com/your-repo/ComfyUI_Qwen-Image.git
Install dependencies:
cd ComfyUI_Qwen-Image
pip install -r requirements.txt
Restart ComfyUI
qwen_diffsynth_controlnet_workflow.json - 使用 DiffSynth 管线,已支持 base_model(auto/Qwen-Image/Qwen-Image-EliGen/Qwen-Image-Distill-Full)05_qwen_eligen_entities.json - EliGen 实体控制示例(将 base_model 切到 Qwen-Image-EliGen)dual_clip_workflow.json - Dual CLIP text encoding with enhanced understandingadvanced_diffusion_loader_workflow.json - Advanced loader with optimizationsqwen_image_standard_workflow.json - Basic text-to-image generationchinese_text_rendering_workflow.json - Optimized for Chinese calligraphy一只可爱的小猫咪坐在樱花树下,春天的阳光洒在它的毛发上,背景是传统的中式庭院
A beautiful landscape with Chinese text '你好世界' written in elegant calligraphy
All-in-one model loader with advanced optimization options.
ADVANCED_DIFFUSION_LOADER_GUIDE.md for detailed usageLoads the Qwen-Image diffusion model.
Loads Qwen text encoder model(s) with dual CLIP support.
load_dual_clip: Enable dual CLIP loadingLoads the Qwen VAE model.
Encodes text prompts with Chinese optimization.
Advanced text encoder supporting dual CLIP models.
DUAL_CLIP_GUIDE.md for detailed usageCreates empty latent images with optimized dimensions.
Samples images using ComfyUI's standard sampling system.
| Ratio | Dimensions | Use Case |
|---|---|---|
| 1:1 | 1328×1328 | Square images, social media |
| 16:9 | 1664×928 | Landscape, wallpapers |
| 9:16 | 928×1664 | Portrait, mobile screens |
| 4:3 | 1472×1104 | Traditional photos |
| 3:4 | 1104×1472 | Portrait photos |
| 3:2 | 1584×1056 | Photography standard |
| 2:3 | 1056×1584 | Book covers, posters |
The plugin automatically enhances prompts with quality improvements:
Automatic language detection based on Unicode character ranges:
QwenImageModelLoader and QwenImageGenerate nodes are deprecatedLegacy nodes are still available for backward compatibility:
QwenImageEdit (Legacy)QwenImageTextRender (Legacy)QwenImageUnderstand (Legacy)For advanced ControlNet and LoRA features, see the DiffSynth Guide.
Key DiffSynth Features:
DiffSynth Nodes:
QwenImageDiffSynthLoRALoader: Load LoRA modelsQwenImageDiffSynthControlNetLoader: Load ControlNet modelsQwenImageDiffSynthPipelineLoader: Main pipeline with memory management(新增 base_model:auto / Qwen-Image / Qwen-Image-EliGen / Qwen-Image-Distill-Full)QwenImageDiffSynthDistillPipelineLoader: 专用 Distill-Full 管线加载器(保持不变)QwenImageDiffSynthSampler: Generate images with ControlNet/LoRAQwenImageDiffSynthMemoryManager: Advanced memory optimizationApache 2.0 License - see LICENSE file for details.
Contributions welcome! Please read our contributing guidelines and submit pull requests.
This README consolidates and updates all features in this project, including the latest DiffSynth integration, Distill behavior, VRAM strategies, and Blockwise ControlNet Inpaint support.
Notes
There are two recommended ways:
A) Minimal wiring (recommended)
B) Custom preprocessing path
Advanced Sampler will construct ControlNetInput(image=..., inpaint_mask=...) and handle size/mode normalization for the mask.
Apache 2.0. See LICENSE.
🎨 A comprehensive ComfyUI plugin for Qwen-Image model integration using ComfyUI's standard separated model loading architecture. Features exceptional Chinese text rendering, advanced image generation capabilities, and the new Advanced Diffusion Loader with comprehensive optimization options.
Place these models in the corresponding ComfyUI directories:
Diffusion Models (ComfyUI/models/diffusion_models/):
qwen_image_bf16.safetensorsqwen_image_fp8_e4m3fn.safetensorsText Encoders (ComfyUI/models/text_encoders/):
qwen_2.5_vl_7b.safetensorsqwen_2.5_vl_7b_fp8_scaled.safetensorsVAE (ComfyUI/models/vae/):
qwen_image_vae.safetensorsControlNet Models (ComfyUI/models/controlnet/) - For DiffSynth features:
qwen_image_blockwise_controlnet_canny.safetensorsqwen_image_blockwise_controlnet_depth.safetensorsLoRA Models (ComfyUI/models/loras/) - For DiffSynth features:
qwen_image_distill.safetensorsqwen_image_lightning.safetensorsNavigate to your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes
Clone this repository:
git clone https://github.com/your-repo/ComfyUI_Qwen-Image.git
Install dependencies:
cd ComfyUI_Qwen-Image
pip install -r requirements.txt
Restart ComfyUI
qwen_diffsynth_controlnet_workflow.json - 使用 DiffSynth 管线,已支持 base_model(auto/Qwen-Image/Qwen-Image-EliGen/Qwen-Image-Distill-Full)05_qwen_eligen_entities.json - EliGen 实体控制示例(将 base_model 切到 Qwen-Image-EliGen)dual_clip_workflow.json - Dual CLIP text encoding with enhanced understandingadvanced_diffusion_loader_workflow.json - Advanced loader with optimizationsqwen_image_standard_workflow.json - Basic text-to-image generationchinese_text_rendering_workflow.json - Optimized for Chinese calligraphy一只可爱的小猫咪坐在樱花树下,春天的阳光洒在它的毛发上,背景是传统的中式庭院
A beautiful landscape with Chinese text '你好世界' written in elegant calligraphy
All-in-one model loader with advanced optimization options.
ADVANCED_DIFFUSION_LOADER_GUIDE.md for detailed usageLoads the Qwen-Image diffusion model.
Loads Qwen text encoder model(s) with dual CLIP support.
load_dual_clip: Enable dual CLIP loadingLoads the Qwen VAE model.
Encodes text prompts with Chinese optimization.
Advanced text encoder supporting dual CLIP models.
DUAL_CLIP_GUIDE.md for detailed usageCreates empty latent images with optimized dimensions.
Samples images using ComfyUI's standard sampling system.
| Ratio | Dimensions | Use Case |
|---|---|---|
| 1:1 | 1328×1328 | Square images, social media |
| 16:9 | 1664×928 | Landscape, wallpapers |
| 9:16 | 928×1664 | Portrait, mobile screens |
| 4:3 | 1472×1104 | Traditional photos |
| 3:4 | 1104×1472 | Portrait photos |
| 3:2 | 1584×1056 | Photography standard |
| 2:3 | 1056×1584 | Book covers, posters |
The plugin automatically enhances prompts with quality improvements:
Automatic language detection based on Unicode character ranges:
QwenImageModelLoader and QwenImageGenerate nodes are deprecatedLegacy nodes are still available for backward compatibility:
QwenImageEdit (Legacy)QwenImageTextRender (Legacy)QwenImageUnderstand (Legacy)For advanced ControlNet and LoRA features, see the DiffSynth Guide.
Key DiffSynth Features:
DiffSynth Nodes:
QwenImageDiffSynthLoRALoader: Load LoRA modelsQwenImageDiffSynthControlNetLoader: Load ControlNet modelsQwenImageDiffSynthPipelineLoader: Main pipeline with memory management(新增 base_model:auto / Qwen-Image / Qwen-Image-EliGen / Qwen-Image-Distill-Full)QwenImageDiffSynthDistillPipelineLoader: 专用 Distill-Full 管线加载器(保持不变)QwenImageDiffSynthSampler: Generate images with ControlNet/LoRAQwenImageDiffSynthMemoryManager: Advanced memory optimizationApache 2.0 License - see LICENSE file for details.
Contributions welcome! Please read our contributing guidelines and submit pull requests.