Official 🤗 Gradio demo for KV-Edit: Training-Free Image Editing for Precise Background Preservation.
💫💫 Here is editing steps: (We highly recommend you run our code locally!😘 Only one inversion before multiple editing, very productive!)
1️⃣ Upload your image that needs to be edited (The resolution will be scaled to less than 1360*768)
2️⃣ Fill in your source prompt and use the brush tool to cover the area you want to edit (❗️required).
3️⃣ Fill in your target prompt, then adjust the hyperparameters.
4️⃣ Click the "Edit" button to generate your edited image!
🔔🔔 [Important] We suggest trying less skip steps, "re_init" and "attn_mask" only when the result is too similar to the original content (e.g. removing objects or changing color).