MICE: Multi-Instance Controlled Editing

Edit multiple regions of an image independently using FLUX.2-klein-4B with spatially-controlled attention — no fine-tuning required.

How to use

  1. Upload a source image.
  2. Write a global description of the scene.
  3. For each region you want to edit:
    • Write an edit instruction (e.g. "Replace the cat with a tiger").
    • Paint the region on the canvas with the brush tool (white = edit area).
  4. Hit Generate.

💻 Code & paper

Regions

Paint each region on the canvas (white brush). Leave a region empty to skip it.

Generation takes ~30–60 s on an A100. Brush the regions white to mark what should be edited.