Describe the Qwen 2.1 examples for readers, not for nodes

The two example sections were written from the inside of the graph: node class
names, the `<image1>` / `<image2>` notation, which loader to point where, and an
aside about which of the two 2.1 encoders keeps alpha. None of that helps
someone deciding whether to try the example.

Both sections now say what a user does and what comes back, in two sentences
each, and the news lines and the Updates entry follow. Example 31 also gains the
Workflow JSON link it was missing.

The MarkdownNote embedded in the Example 32 workflow gets the same treatment:
it keeps `<image1>` / `<image2>` (the instruction needs those) and drops the
`Join Image With Alpha` / `Load Image` MASK-output explanation.

The result image is byte-identical to the committed one; only the embedded
workflow metadata changed, which is why nothing was re-run.
This commit is contained in:
scraed
2026-09-28 15:16:49 +08:00
parent 93b90fad99
commit 2d7912f9a5
3 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -58,11 +58,11 @@ If your inpainting results have wierd (glowing / broken) mask boundary, check th
![Qwen 2.1 image edit: the canvas, the mask, the second reference and the result](https://github.com/scraed/LanPaint/blob/master/examples/Example_32/Comparison.png)
Qwen 2.1's **image edit** model runs under a LanPaint mask: hand `Text Encode Qwen Image 2.1` your canvas as `<image1>` plus any extra reference images, mask the part you want changed, and only that part follows the instruction. Check our latest [Qwen Image 2.1 Image Edit Example](#example-qwen-image-21-image-edit-masked-inpaintlanpaint-k-sampler-5-steps-of-thinking).
Qwen 2.1's **image edit** model now works under a LanPaint mask: tell it what to change, paint over the part you want it to touch, and only that part changes. Hand it a second picture to borrow from if you want one. Check our latest [Qwen Image 2.1 Image Edit Example](#example-qwen-image-21-image-edit-masked-inpaintlanpaint-k-sampler-5-steps-of-thinking).
![Qwen 2.1 before / masked / after](https://github.com/scraed/LanPaint/blob/master/examples/Example_31/Comparison.png)
And if your picture carries an alpha channel, it gets inpainted too - the masked region comes back with a new silhouette, not just new pixels. Check our latest [Qwen Image 2.1 Example](#example-qwen-image-21-inpaint-with-transparencylanpaint-k-sampler-5-steps-of-thinking).
And if your picture carries transparency, it gets inpainted too - the rebuilt part comes back with a new outline, not just new colours. Check our latest [Qwen Image 2.1 Example](#example-qwen-image-21-inpaint-with-transparencylanpaint-k-sampler-5-steps-of-thinking).
**🎬 NEW: LanPaint now supports MiniMax H3 video + audio inpainting!**
@@ -462,17 +462,17 @@ Check [Mased Qwen Edit Workflow](https://github.com/scraed/LanPaint/tree/master/
### Example Qwen Image 2.1 Image Edit: Masked InPaint(LanPaint K Sampler, 5 steps of thinking)
Qwen-Image 2.1's image edit model works under a mask. `Text Encode Qwen Image 2.1` takes your canvas as `<image1>` plus any extra references, and it is the only 2.1 text encoder that feeds the VAE all four channels (the older `Text Encode Qwen Image Edit Plus` trims a reference to RGB). Add `LanPaint_ImageEncode` with a mask and the instruction only lands inside that mask - here a second reference supplies the material, the earcups are rebuilt as oversized iridescent turbines that flare out over what used to be transparent background, and the headband, stitching and hinges come back pixel-identical. Grab the workflow and images from `examples/Example_32` (or drag `InPainted_Drag_Me_to_ComfyUI.png` into ComfyUI); use your own pictures from the official [Qwen Image 2.1 Image Edit template](https://docs.comfy.org/tutorials/image/qwen/qwen-image-2-1).
Qwen-Image 2.1's image edit model now works under a LanPaint mask: write what you want changed, paint over the part it should touch, and only that part changes - everything else, transparency included, comes back exactly as it was. In this example a second picture supplies the material for the earcups, and the headband and stitching stay as they are. Workflow and images are in `examples/Example_32`; drag `InPainted_Drag_Me_to_ComfyUI.png` into ComfyUI to load it. Use your own pictures with the official [Qwen Image 2.1 Image Edit template](https://docs.comfy.org/tutorials/image/qwen/qwen-image-2-1).
![Qwen 2.1 image edit: canvas, mask, material, result](https://github.com/scraed/LanPaint/blob/master/examples/Example_32/Comparison.png)
[View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_32) · [Workflow JSON](https://github.com/scraed/LanPaint/blob/master/example_workflows/Qwen_Image_2.1_Edit_Masked_Inpaint.json)
### Example Qwen Image 2.1: InPaint with Transparency(LanPaint K Sampler, 5 steps of thinking)
Qwen-Image 2.1 works with LanPaint, and pictures that carry transparency are inpainted along with their alpha channel - the mask region gets a new silhouette, not just new pixels. Grab the workflow and images from `examples/Example_31` (or drag `InPainted_Drag_Me_to_ComfyUI.png` into ComfyUI), point `Load Image` at your RGBA picture, `Load Image (as Mask)` at your mask in greyscale (white = repaint), and write your prompt. Compared to any other LanPaint workflow the only addition is one `Join Image With Alpha` node, which re-attaches the picture's alpha - `Load Image` hands it out on its `MASK` output rather than keeping it on the image - and `LanPaint_ImageDecode` then returns RGBA if that is what it received.
Qwen-Image 2.1 inpaints a picture's transparency along with its pixels, so the rebuilt part can come back with a new outline instead of merely new colours - here the boot's sole is replaced and the silhouette grows with it. Workflow and images are in `examples/Example_31`; drag `InPainted_Drag_Me_to_ComfyUI.png` into ComfyUI to load it.
![Qwen 2.1 before / masked / after](https://github.com/scraed/LanPaint/blob/master/examples/Example_31/Comparison.png)
[View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_31)
![Qwen 2.1: original, mask, result](https://github.com/scraed/LanPaint/blob/master/examples/Example_31/Comparison.png)
[View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_31) · [Workflow JSON](https://github.com/scraed/LanPaint/blob/master/example_workflows/Transparent_Edit_EncodeDecode_Inpaint.json)
### Example Qwen Image: InPaint(LanPaint K Sampler, 5 steps of thinking)
@@ -659,7 +659,7 @@ Submit a PR to add your tutorial/video here, or open an [Issue](https://github.c
## Updates
- 2026/09/28
- Add Qwen-Image 2.1 image edit support: masked, instruction-driven editing with `Text Encode Qwen Image 2.1` (Example_32).
- Add Qwen-Image 2.1 image edit support: masked, instruction-driven editing (Example_32).
- Add Qwen-Image 2.1 inpainting support with LanPaint KSampler (Example_31).
- Inpainting a picture that carries transparency now works end to end: the 2.1 VAE is 4-in/4-out, so the alpha travels through the latent and is edited alongside the pixels. Keep the inpainting mask in its own greyscale file, since 2.1's alpha channel means image transparency.
- `LanPaint_ImageDecode` now matches the decoded channel count to the source image, so an RGBA source comes back RGBA and an RGB source still comes back RGB.
@@ -775,7 +775,7 @@
"cnr_id": "comfy-core"
},
"widgets_values": [
"## Qwen-Image 2.1 Image Edit + LanPaint, with a mask and with transparency\n\nThis is the official `Qwen Image 2.1 Image Edit` template with a mask bolted on. The edit\ninstruction names the references as `<image1>` / `<image2>`; `image_1` is the canvas,\n`image_2` is the material being borrowed.\n\nAlpha is a real channel here, not a mask bolted on at the end. `Text Encode Qwen Image 2.1`\nfeeds the vision tower the alpha composited over white, but hands the VAE all four channels,\nand `LanPaint_ImageEncode` encodes the picture as it arrives - so the alpha is denoised\nalongside the pixels and the rebuilt region can grow a new silhouette. `Join Image With\nAlpha` is what puts the alpha back on the image: `Load Image` hands alpha out on its `MASK`\noutput, and that mask is `1 - alpha`, which is exactly what this node wants, so there is no\ninvert. `LanPaint_ImageDecode` then returns RGBA.\n\nThe mask is a separate greyscale file, white = edit here, and it is deliberately larger than\nthe earcups so the new shape has room to flare out over what used to be transparent\nbackground. Everything outside it is anchored to the original on every step, so the headband,\nthe stitching and the hinges come back untouched rather than merely similar."
"## Qwen-Image 2.1 Image Edit + LanPaint, with a mask and with transparency\n\nThe official `Qwen Image 2.1 Image Edit` template with a mask bolted on. The instruction\nrefers to the two pictures as `<image1>` (the one being edited) and `<image2>` (the material\nbeing borrowed).\n\nOnly what you paint over changes - everything outside the mask is anchored to the original on\nevery step, so the headband, the stitching and the hinges come back untouched rather than\nmerely similar.\n\nThe picture's transparency is edited along with its colours, so the rebuilt part can grow a\nnew outline over what used to be empty background. The mask is a separate greyscale file,\nwhite = edit here, and it is deliberately larger than the earcups so the new shape has room\nto flare out."
],
"title": "How this works",
"color": "#432",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1018 KiB

After

Width:  |  Height:  |  Size: 1018 KiB