Proper Flux Control-Net inpainting and/or outpainting with batch size - ComfyUI (Alimama) or Flux Fill

v7.31C
diogod
4 months ago

I try my best to avoid hiding the workflow flow, while balancing keeping it clean and user-friendly.

It does use a lot of custom nodes to make life easier and workflow cleaner. Use manager to install the missing ones.

This is a proper inpainting with alimama control-net + Flux Fill support on V3.

Supports loading of an external mask (need to match the image size) or doing the inpainting within the right-click "Open MaskEditor" on the image itself.

Supports FILL (use FastBypasser - black node)

Supports area inpaiting x full image inpaiting (use FastBypasser - black node)

Supports variable denoise (Change denoise on the CONTROL ROOM)

Supports Negative (use FastBypasser - black node)

Proper composite so no VAE degradation

I added LoRa support and Daemon Detailer support (both are optional)

Read more...
Download (396 Bytes) Download available on desktop only

Popularity

890 ~10

Info

Base model: Flux.1 D

Version v7.31C: 1 File

To download these files, please visit this page from a desktop computer.

About this version: v7.31C

I Finally got the time to refactor and bring Compact up to speed with the expanded workflow.

I implemented the changes from 7.2 and 7.3 - 17/05/25

Changelog


v7.3
1. ❗ Compact only (for now): I added a slider node where you can set the resolution for the Localized Area inpainting in an easier way.


2. ❗ mask were mismatched when the image was resized. The workflow will now resize mask before cropping (to ensure they are divisible by 8).

-----------------------------------------------------------------------------------------
v7.2 - Bug fixes

1. ❗ New: Option to invert aura direction. Useful when inpainting the whole background leaving a small area to not change, in this cases the aura grows OUT of the not painted area, not inside it. Another way to put it: a black aura grows inside the inpainted area when this is ON.
Use case: if you want to inpaint the BG and leave the charcater, but want the Ksampler to understand the boundaries of said character, using a very fainted "black" aura makes the ksampler to keep the surrounding area in the beggining while slowly painting it over the denoising process since it is a gray area. (turn on ksampler preview so you can see this happening).
Recommended settings: Low visibility (30) with a small grow (5).

2. ❗ Anything Everywhere refactoring:
Change AE to Get and Set:
for Choice:
on "Auto Preprocessor for Canny OR Depth" group
on "control room" group
on "Conditioning Index Switch" after controlnet
on "Get Unet Chechpoint Name for Metadata" group
on Alimama ControlNet Hash "Switch (Any)" on save group

for lora_stacker:
on πŸ’Š CR Apply LoRA Stack (directly connected)
on L"oRA Stack to String converter" on "Get LoRAs names..." group

for ALIMAMA_ControlNet on "ControlNetInpaintingAliMamaApply"

for VAE
on ControlNetInpaintingAliMamaApply and InpaintModelCon FOR Dev FILL
on "InstructPixToPixConditioning"
on VAE encode and 2 decodes

For CLIP on CLIP Text Encode (Prompt pos and neg)

For Model on Detailer Daemon Samples and Normal Ksampler

For EvalNeg
on "Using negative? switch"
on control room group
on "Inpaint with Detail Daemon?" group

For PositiveP on "Text Concatenate" for metadata

For Guidance for Flux Guidance

For Sampler and Sheduler on samplers and on save node

For Steps, Seed, CFG, Denoise...

3. Fixed: "Resize Mask" to "CropMask". Resize would mismatch the mask but would stretch it by some pixels if the image was not devisable by 8.

4. Fixed "clean_lora_names" group nodes that was not working correctly to clean the lora names. Also removed "logic" multiline to "was".

5. Positive and Neg Logic multilne node > Was

27 Versions

πŸ˜₯ There are no Proper Flux Control-Net inpainting and/or outpainting with batch size - ComfyUI (Alimama) or Flux Fill v7.31C prompts yet!

Go ahead and upload yours!

No results

Your query returned no results – please try removing some filters or trying a different term.