Run this workflow on InstaSD
Get started in minutes! Run this ComfyUI workflow online - no setup required.
Description
Create powerful inpaint transformations using Flux Dev Q8 in combination with LoRA models. This workflow excels at reconstructing masked areas while applying detailed stylistic changesβperfect for enhancing portraits, editing outfits, or transforming facial features with ease and precision.
π― Features
- Flux Dev Q8 Model β Optimized UNet for enhanced inpainting results.
- LoRA Integration β Uses Power Lora Loader to inject multiple LoRA styles (like
moonal1saa). - Mask-Based Editing β Inpaint specific regions using precise mask control.
- Custom Prompts Support β Combine trigger words and stylistic prompts dynamically.
- Stitching & Decoding β Maintains image resolution and coherence through
InpaintCrop,InpaintStitch, andVAEDecode. - FluxGuidance Node β Fine control over the guidance strength for improved prompt responsiveness.
π‘ Use Cases
- Portrait Reworks β Change facial features, hairstyles, or accessories while keeping base structure.
- Fantasy/Character Edits β Inject stylistic LoRA characters into selected image regions.
- Fixing Images β Repair damaged or unwanted parts using guided inpainting.
- Fashion Retouches β Swap clothing or accessories on models selectively.
- Creative Concept Art β Use LoRA-enhanced prompts to generate imaginative alterations on existing images.
βοΈ How It Works
- Load an Image & Mask β Use the
LoadImagenode to input both the source image and its mask. - Set Up LoRA β In
Power Lora Loader, load your desired LoRAs (e.g. Mona Lisa Flux, Turbo Alpha) and set their strengths. - Define Prompts β Use trigger words and stylistic descriptions (
easy positive,CLIPTextEncode,Text Concatenate) to influence generation. - Enable FluxGuidance β Connect encoded text through
FluxGuidanceto refine prompt control. - Condition the Inpainting β Use
InpaintModelConditioningwith your image, mask, and VAE. - Sample & Decode β Process through
KSamplerandVAEDecodeto reconstruct the image. - Stitch & Preview β Combine inpainted parts with
InpaintStitch, preview the results, and save viaSaveImage.
Credits: pixaroma
Models
| File | Destination | Source |
|---|---|---|
| flux1-dev-Q8_0.gguf | /ComfyUI/models/unet | Download |
| clip_l.safetensors | /ComfyUI/models/clip | Download |
| t5-v1_1-xxl-encoder-Q8_0.gguf | /ComfyUI/models/clip | Download |
| ae.safetensors | /ComfyUI/models/vae | Download |
| sigclip_vision_patch14_384.safetensors | /ComfyUI/models/clip_vision | Download |
| flux1-redux-dev.safetensors | /ComfyUI/models/style_models | Download |
Nodes
CLIPTextEncodeUnetLoaderGGUFDualCLIPLoaderGGUFEmptySD3LatentImageFluxGuidanceeasy showAnythingKSamplerVAEDecodeSaveImageFluxResolutionNodeVAELoaderCLIPVisionEncodeCLIPVisionLoaderStyleModelLoaderStyleModelApplySimpleLoadImage