---
license: mit
base_model:
- HiDream-ai/HiDream-I1-Full
- MiaoshouAI/Florence-2-large-PromptGen-v2.0
pipeline_tag: image-to-image
---
# 🌟 HiDream Img2Img ComfyUI Workflow
[](https://opensource.org/licenses/MIT)
[](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI)
[](https://replicate.com/goodguy1963/hidream-l1-full-img2img)
#### Advanced image-to-image generation with HiDream model suite and Florence-2 prompt generator
## 📋 Overview
This workflow combines the power of HiDream diffusion models with Florence-2 captioning for enhanced image-to-image generation in ComfyUI:
- ✨ **Image-to-image generation** with the state-of-the-art HiDream diffusion model
- 🔮 **Optional Florence-2** intelligent prompt generation and image captioning
- 🖼️ **VAE encoding/decoding** and advanced CLIP-based text encoding
- 🚫 **Customizable negative prompts** for artifact reduction
- 💻 **Low VRAM mode** available for systems with limited resources
## 🚀 Try It Now!
You can test this workflow directly on Replicate:
[▶️ Run on Replicate](https://replicate.com/goodguy1963/hidream-l1-full-img2img)
## 📥 Required Models & Setup
### 🎨 Diffusion Model
The workflow supports two HiDream model variants:
#### Full Model (Default)
- **`hidream_i1_full_fp16.safetensors`**
📁 Place in: `ComfyUI/models/diffusion_models`
📦 [Download](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/diffusion_models/hidream_i1_full_fp16.safetensors)
#### Dev Model (Alternative)
- **`hidream_i1_dev_bf16.safetensors`**
📁 Place in: `ComfyUI/models/diffusion_models`
📦 [Download](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/diffusion_models/hidream_i1_dev_bf16.safetensors)
> **Credit:** [HiDream.ai](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI)
### 📝 Text Encoders
📁 Place all in: `ComfyUI/models/text_encoders`
- **`clip_g_hidream.safetensors`**
📦 [Download](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/text_encoders/clip_g_hidream.safetensors)
- **`clip_l_hidream.safetensors`**
📦 [Download](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/text_encoders/clip_l_hidream.safetensors)
- **`llama_3.1_8b_instruct_fp8_scaled.safetensors`**
📦 [Download](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/text_encoders/llama_3.1_8b_instruct_fp8_scaled.safetensors)
- **`t5xxl_fp8_e4m3fn_scaled.safetensors`**
📦 [Download](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/text_encoders/t5xxl_fp8_e4m3fn_scaled.safetensors)
### 🖼️ VAE
- **`ae.safetensors`**
📁 Place in: `ComfyUI/models/vae`
📦 [Download](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/vae/ae.safetensors)
### 🔍 Florence-2 Prompt Generator
- **Florence-2-large**
⚡ Automatic download at runtime
📦 [Microsoft Florence-2](https://huggingface.co/microsoft/Florence-2-large)
> **Credit:** [MiaoshouAI](https://huggingface.co/MiaoshouAI/Florence-2-large-PromptGen-v2.0) for the optimized implementation
## 💡 Usage Guide
1. Download all required models and place them in the correct directories as listed above
2. Import the workflow into ComfyUI
3. Load your input image, adjust settings as needed
4. Choose whether to use Florence-2 automatic captioning:
- **With Florence-2**: Provide a brief prefix that will be combined with the AI-generated caption
- **Without Florence-2**: Enter your complete custom prompt directly
5. Customize the negative prompt to avoid unwanted elements
6. Generate new images with enhanced quality
## 💻 Low VRAM Mode (< 24GB VRAM)
For systems with limited VRAM, use this alternative setup:
1. Install [city96/ComfyUI-GGUF](https://github.com/city96/ComfyUI-GGUF) custom node
2. Replace the standard Diffusion Model Loader with the **Unet LOADER** node
3. Download the optimized HiDream-I1 Full or DEV GGUF model:
- 📦 [HiDream-I1-Full-gguf](https://huggingface.co/city96/HiDream-I1-Full-gguf/tree/main)
- 📦 [HiDream-I1-DEV-gguf](https://huggingface.co/city96/HiDream-I1-Dev-gguf)
- 📁 Place in: `ComfyUI/models/unet`
## 📊 Workflow Diagram
## 🙏 Acknowledgements
- **HiDream.ai** for the remarkable diffusion model and encoders
- **Microsoft** for the Florence-2 vision-language model
- **MiaoshouAI** for the Florence-2 prompt generator implementation
- **ComfyUI** team for the intuitive workflow engine
- **city96** for the GGUF optimization for low VRAM systems
---
⭐ If you find this workflow useful, please consider starring the repository! ⭐