File size: 1,071 Bytes
b0a6339
3f17887
66f36d3
3f17887
 
b0a6339
 
 
3f17887
 
 
66f36d3
b0a6339
 
66f36d3
3f17887
66f36d3
 
 
 
 
 
 
3f17887
66f36d3
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
title: RePlan Image Editing
emoji: 🎯
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 6.20.0
app_file: app.py
short_description: Reasoning-guided region planning for image editing
python_version: "3.12"
startup_duration_timeout: 1h
pinned: false
---

# RePlan: Reasoning-guided Region Planning for Complex Instruction-based Image Editing

RePlan couples a reasoning VLM planner with a diffusion editor to handle
**complex, instruction-based image editing**. The planner
([`TainU/RePlan-Qwen2.5-VL-7B`](https://huggingface.co/TainU/RePlan-Qwen2.5-VL-7B))
performs chain-of-thought reasoning to decompose an instruction into
region-specific bounding boxes + local hints and a global prompt. The editor
then executes the edit using training-free **region-constrained attention
injection**, keeping edits localized without spillover.

- Editor backbone: [`FLUX.2-klein-4B`](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B) (Apache-2.0, distilled 4-step)
- Paper: https://huggingface.co/papers/2512.16864
- Code: https://github.com/dvlab-research/RePlan