Qwen Image 2.1 Inpainting in ComfyUI | No-Offset Edits - v1.0 Showcase
Qwen 2.1 local edits add or replace details with precision.
Who it's for: creators who want this pipeline in ComfyUI without assembling nodes from scratch. Not for: one-click results with zero tuning - you still choose inputs, prompts, and settings.
Open preloaded workflow on RunComfy
Open preloaded workflow on RunComfy (browser)
Why RunComfy first
- Fewer missing-node surprises - run the graph in a managed environment before you mirror it locally.
- Quick GPU tryout - useful if your local VRAM or install time is the bottleneck.
- Matches the published JSON - the zip follows the same runnable workflow you can open on RunComfy.
When downloading for local ComfyUI makes sense - you want full control over models on disk, batch scripting, or offline runs.
How to use (local ComfyUI)
1. Load inputs (images/video/audio) in the marked loader nodes.
2. Set prompts, resolution, and seeds; start with a short test run.
3. Export from the Save / Write nodes shown in the graph.
Expectations - First run may pull large weights; cloud runs may require a free RunComfy account.
Overview
Edit selected image areas with Qwen 2.1 local editing. You guide each change with a mask and plain English. Add people or objects, or replace specific details. No-offset alignment keeps masks matched to the image. Reference-based latent masking helps retain the surrounding scene.
Important nodes:
Key nodes in Comfyui Qwen Image 2.1 Inpainting workflow
TextEncodeQwenImage21 (#191)
Encodes English instructions together with up to three scene images into conditioning for Qwen Image 2.1 Inpainting. Use the prompt field for what to add or change and negative_prompt for traits to avoid. The resolution control sets the model’s internal working scale; values divisible by 32 are recommended. Higher values can increase global detail but may require more VRAM and time.
SetLatentNoiseMask (#126)
Applies a noise mask so new signal is introduced primarily inside the region you painted, enabling local edits with strong background preservation. Pair this with a softly feathered mask for seamless transitions. Unmasked areas are respected but not frozen at the pixel level, so tiny incidental changes near edges are possible.
GrowMaskWithBlur (#128)
Preprocesses your mask for clean boundaries. Expanding slightly can ensure the entire new object is within the editable zone, and adding blur feathers edges to minimize seams. If precision is paramount, reduce expansion and blur; if blending is the priority, increase them modestly.
KSamplerAdvanced (#193)
Runs the denoising process that realizes your instruction within the masked region. Adjust steps and sampler to balance speed and fidelity, and set a seed to reproduce results during iteration. Lower guidance often blends inserts more naturally, while higher guidance can enforce stronger adherence to text.
ImageScaleToMaxDimension (#138)
Sets the long edge of the working image for a good tradeoff between detail and compute cost. Larger values yield crisper inserts but increase memory usage and render time. Start moderately, then scale up only if you need more fine detail.
ResizeMask (#148)
Resizes the inpaint mask to exactly match the model’s working dimensions determined earlier. This no‑offset alignment prevents “mask shift” artifacts and keeps your painted region perfectly registered with the image pixels.
Notes
Qwen Image 2.1 Inpainting in ComfyUI | No-Offset Edits - see RunComfy page for the latest node requirements.
