Update for 4/14/25
My thoughts on HiDream and censorship, and the reason why I've renamed the field "Load_alternate_LLM"
🖼️🤖🖼️
New capability Unlocked, image2image for both UniPC and flash_flow_euler
HiDream Sampler node
HiDream Sampler (Advanced) node
Added Many improvements!
I will continue to add more improvements as I go, this has been fascinating to explore this model. I think there is still a lot of room for improvement (and optimizing).
Forked from original https://github.com/lum3on/comfyui_HiDream-Sampler
Many thanks to the folks who created this and set it up for Comfy, I just spent a few hours adding better support for consumer GPUs.
A custom ComfyUI node for generating images using the HiDream AI model.
full, dev, and fast model types.nf4-full, nf4-dev, and nf4-fast model types.Recommended to install Flash Attention, but not required. Falls back to SDPA and eager attention
ComfyUI/custom_nodes/ directory:
git clone https://github.com/SanDiegoDude/ComfyUI-HiDream-Sampler.git
pip install -r requirements.txt
ComfyUI Nodes HiDream Sampler provides three nodes for different workflows:
Simple text-to-image generation with a single prompt.
Inputs: model_type: Choose model variant (fast, dev, full or their NF4 counterparts) prompt: Text description of your desired image negative_prompt: Elements to avoid in the image aspect_ratio: Select from preset aspect ratios (1:1, 16:9, etc.) seed: Random seed for reproducible results scheduler: Sampling method (Default, UniPC, Euler, etc.) override_steps: Custom number of sampling steps (-1 to use model default) override_cfg: Custom guidance scale (-1.0 to use model default) use_uncensored_llm: Toggle for less filtered language model responses
Fine-grained control over every encoder and generation parameter.
Inputs: All inputs from basic sampler, plus: Encoder-specific prompts: clip_l_prompt: Text for CLIP-L encoder openclip_prompt: Text for OpenCLIP encoder t5_prompt: Text for T5 encoder llama_prompt: Text for Llama encoder llm_system_prompt: System instruction for Llama LLM Encoder weights: Control influence of each encoder (clip_l_weight, openclip_weight, t5_weight, llama_weight) Resolution controls: square_resolution or custom_width/height Sequence length controls: max_length parameters for each encoder
Transform existing images using HiDream models.
Inputs: All inputs from basic sampler, plus: image: Input image to transform denoising_strength: How much to change from input (0.0=no change, 1.0=complete change) Encoder weights: Available to control influence (like in Advanced sampler) Example Workflow Add the appropriate HiDream node to your workflow Configure inputs based on your needs: For text-to-image: Enter a detailed prompt For image-to-image: Connect an image and set denoising_strength (recommended: 0.7-0.8) Connect the output to a PreviewImage or SaveImage node Execute and enjoy your results!
NF4 models run better on lower VRAM but require specific dependencies Best results come from detailed, descriptive prompts For Windows users: Requires PyTorch 2.1.0+ for NF4 models Experiment with encoder weights in Advanced mode to emphasize different aspects
Python
98.7%
Batchfile
1.3%
Update for 4/14/25
My thoughts on HiDream and censorship, and the reason why I've renamed the field "Load_alternate_LLM"
🖼️🤖🖼️
New capability Unlocked, image2image for both UniPC and flash_flow_euler
HiDream Sampler node
HiDream Sampler (Advanced) node
Added Many improvements!
I will continue to add more improvements as I go, this has been fascinating to explore this model. I think there is still a lot of room for improvement (and optimizing).
Forked from original https://github.com/lum3on/comfyui_HiDream-Sampler
Many thanks to the folks who created this and set it up for Comfy, I just spent a few hours adding better support for consumer GPUs.
A custom ComfyUI node for generating images using the HiDream AI model.
full, dev, and fast model types.nf4-full, nf4-dev, and nf4-fast model types.Recommended to install Flash Attention, but not required. Falls back to SDPA and eager attention
ComfyUI/custom_nodes/ directory:
git clone https://github.com/SanDiegoDude/ComfyUI-HiDream-Sampler.git
pip install -r requirements.txt
ComfyUI Nodes HiDream Sampler provides three nodes for different workflows:
Simple text-to-image generation with a single prompt.
Inputs: model_type: Choose model variant (fast, dev, full or their NF4 counterparts) prompt: Text description of your desired image negative_prompt: Elements to avoid in the image aspect_ratio: Select from preset aspect ratios (1:1, 16:9, etc.) seed: Random seed for reproducible results scheduler: Sampling method (Default, UniPC, Euler, etc.) override_steps: Custom number of sampling steps (-1 to use model default) override_cfg: Custom guidance scale (-1.0 to use model default) use_uncensored_llm: Toggle for less filtered language model responses
Fine-grained control over every encoder and generation parameter.
Inputs: All inputs from basic sampler, plus: Encoder-specific prompts: clip_l_prompt: Text for CLIP-L encoder openclip_prompt: Text for OpenCLIP encoder t5_prompt: Text for T5 encoder llama_prompt: Text for Llama encoder llm_system_prompt: System instruction for Llama LLM Encoder weights: Control influence of each encoder (clip_l_weight, openclip_weight, t5_weight, llama_weight) Resolution controls: square_resolution or custom_width/height Sequence length controls: max_length parameters for each encoder
Transform existing images using HiDream models.
Inputs: All inputs from basic sampler, plus: image: Input image to transform denoising_strength: How much to change from input (0.0=no change, 1.0=complete change) Encoder weights: Available to control influence (like in Advanced sampler) Example Workflow Add the appropriate HiDream node to your workflow Configure inputs based on your needs: For text-to-image: Enter a detailed prompt For image-to-image: Connect an image and set denoising_strength (recommended: 0.7-0.8) Connect the output to a PreviewImage or SaveImage node Execute and enjoy your results!
NF4 models run better on lower VRAM but require specific dependencies Best results come from detailed, descriptive prompts For Windows users: Requires PyTorch 2.1.0+ for NF4 models Experiment with encoder weights in Advanced mode to emphasize different aspects
Python
98.7%
Batchfile
1.3%