Detailed Tutorial on Flux Redux Workflow
Flux Redux is an adapter model specifically designed for generating image variants. It can generate variants in a similar style based on the input image without the need for text prompts. This tutorial will guide you through the complete process from installation to usage.
This tutorial is a detailed guide based on the official ComfyUI workflow. The original official tutorial can be found at: https://comfyanonymous.github.io/ComfyUI_examples/flux/
Introduction to the Flux Redux Model
The Flux Redux model is mainly used for:
- Generating image variants: Creating new images in a similar style based on the input image
- No need for prompts: Extracting style features directly from the image
- Compatible with Flux.1 [Dev] and [Schnell] versions
- Supports multi-image blending: Can blend styles from multiple input images
Flux Redux model repository: Flux Redux
Preparation
1. Update ComfyUI
First, ensure your ComfyUI is updated to the latest version. If you are unsure how to update and upgrade ComfyUI, please refer to How to Update and Upgrade ComfyUI
2. Download Necessary Models
You need to download the following model files:
Model Name | File Name | Installation Location | Download Link |
---|---|---|---|
CLIP Vision Model | sigclip_vision_patch14_384.safetensors | ComfyUI/models/clip_vision | Download |
Redux Model | flux1-redux-dev.safetensors | ComfyUI/models/style_models | Download |
CLIP Model | clip_l.safetensors | ComfyUI/models/clip | Download |
T5 Model | t5xxl_fp16.safetensors | ComfyUI/models/clip | Download |
Flux Dev Model | flux1-dev.safetensors | ComfyUI/models/unet | Download |
VAE Model | ae.safetensors | ComfyUI/models/vae | Download |
3. Download Workflow File
Workflow Usage Guide
Workflow Node Description
The workflow mainly includes the following key nodes:
- Model Loading Nodes
CLIPVisionLoader
: Load the CLIP Vision modelStyleModelLoader
: Load the Redux modelUNETLoader
: Load the Flux Dev/Schnell modelDualCLIPLoader
: Load the CLIP text encoding modelVAELoader
: Load the VAE model
- Image Processing Nodes
LoadImage
: Load the reference imageCLIPVisionEncode
: Encode the reference imageStyleModelApply
: Apply the Redux modelFluxGuidance
: Control the generation intensityBasicGuider
: Basic guider
- Sampling Nodes
KSamplerSelect
: Select the samplerBasicScheduler
: Set the sampling scheduleSamplerCustomAdvanced
: Advanced sampling settings
Usage Steps
-
Load Models
- Select
sigclip_vision_patch14_384.safetensors
inCLIPVisionLoader
- Load
flux1-redux-dev.safetensors
inStyleModelLoader
- Load
flux1-dev.safetensors
inUNETLoader
- Load the CLIP model in
DualCLIPLoader
- Load the VAE model in
VAELoader
- Select
-
Prepare Reference Image
- Load the image you want to create variants of in the
LoadImage
node - The image will be automatically processed and encoded
- Load the image you want to create variants of in the
-
Adjust Generation Parameters
- Adjust the generation intensity through the
FluxGuidance
node (default value 3.5) - Set the sampling steps in
BasicScheduler
(recommended 20 steps) - Choose an appropriate sampler (recommended euler)
- Adjust the generation intensity through the
-
Set Image Size
- Use
PrimitiveNode
to set the width and height of the output image - Default setting is 1024x1024
- Use
Parameter Tuning Suggestions
Here are some practical parameter tuning suggestions:
-
Generation Intensity (FluxGuidance):
- The larger the value, the greater the change
- The smaller the value, the closer to the original image
- Recommended range: 2.0-5.0
-
Sampling Steps:
- The more steps, the richer the details
- Recommended range: 20-30 steps
Advanced Techniques
-
Multi-Image Blending
- You can add multiple
StyleModelApply
nodes - Each node uses a different reference image
- Adjust the influence weight of each image
- You can add multiple
-
Size Optimization
- Larger sizes can obtain more details
- It is recommended to maintain the aspect ratio of the original image
- Adjust the resolution according to the size of the video memory
-
Batch Generation
- You can set multiple random seeds
- Use batch processing to generate multiple variants
- Compare and select the best result
Common Problem Solutions
-
Unsatisfactory Generation Effect
- Adjust the value of FluxGuidance
- Increase the sampling steps
- Try different reference images
-
Insufficient Video Memory
- Reduce the image resolution
- Reduce the sampling steps
- Use the Flux Schnell version
-
Model Loading Failure
- Check if the model file location is correct
- Confirm if the model file name matches
- Verify if the model file is completely downloaded
Example Display
You can try the following examples to familiarize yourself with the use of Flux Redux:
- Basic Variant Generation
- FluxGuidance: 3.5
- Steps: 20
- Resolution: 1024x1024
- Multi-Image Blending
- Use two reference images
- Set FluxGuidance to 2.5 and 3.0 respectively
- Steps: 25
Remember to save your satisfactory parameter combinations for future use.