<aside> 🛠

Edit One Region, Leave the Rest Untouched


Paint a mask over the part of an image you want to change, describe the change in words, and the model only edits that region — everything outside the mask stays pixel-identical to the original. It is the same idea as Photoshop's "Generative Fill" or Adobe Firefly's inpaint tool, but powered by Qwen-Image-ControlNet-Inpainting — a purpose-built inpainting ControlNet from the InstantX Team, layered on top of Alibaba's Qwen-Image base model. Supports object replacement, text modification, background replacement, and outpainting.

</aside>


What it does

QWEN-Inpaint is a mask-based image editing node built on Qwen-Image-ControlNet-Inpainting, a ControlNet released by the InstantX Team specifically for mask-based inpainting and outpainting on top of Alibaba's Qwen-Image base model. The workflow: supply a mask (a black-and-white image showing which region to edit — white = "change this", black = "leave alone") together with a text prompt, and the model only modifies inside the mask. With the "Keep everything outside the mask pixel-identical to the input" option on, the rest of the image is preserved exactly. This is the classic inpainting workflow — the same pattern as Photoshop's "Generative Fill" or Adobe Firefly's inpaint tool. Because this is a ControlNet purpose-built for inpainting (rather than a general image-editing model given a mask afterwards), the model has been trained end-to-end to respect the mask boundary — which is why the four core use cases it advertises are object replacement, text modification, background replacement, and outpainting.

Problem it solves

Input/Output

<aside>

<aside>

<aside>

***** Prompting Tips**

Positive prompts do most of the work. Negative prompts have very limited effect on this model.

<aside>

How to Use

<aside>

Typical inpainting flow:

  1. Input - Image Loader — the source image to edit
  2. (Mask source) — a mask image showing which region to change (white/opaque = edit, black/transparent = keep)
  3. Input - Text Input — an instruction describing what to put in the masked area ("replace with a red sneaker", "translate to English: 'Grand Opening'")
  4. QWEN-Inpaint — runs the masked edit
  5. Output - Image Viewer — the recomposed image </aside>

Accuracy & Speed

Model InstantX/Qwen-Image-ControlNet-Inpainting — a ControlNet on top of Qwen/Qwen-Image
Advertised use cases Object replacement, text modification, background replacement, outpainting
Training Trained from scratch for 65K steps on 10M high-quality general and human images; 1328 × 1328 resolution, BFloat16, batch size 128, learning rate 4e-5, text drop ratio 0.10
Architecture note The ControlNet consists of 6 double blocks copied from the pretrained Qwen-Image transformer layers
Recommended prompting Use descriptive prompts that describe the whole image (both the inpainted area and the background), not just an instruction for the masked region — the model is sensitive to this
Precision bfloat16 recommended
Ecosystem Native ComfyUI support (>= 0.3.59); community support on Liblib AI