git404hub

what is comfyui-qwenimageedit-lockpixel fr?

tori29umai0123/comfyui-qwenimageedit-lockpixel — explained in plain English

Analysis updated 2026-05-18

18PythonAudience · vibe coderComplexity · 3/5LicenseSetup · moderate

tl;dr

A ComfyUI node pack that fixes pixel drift and misalignment when editing images with the Qwen-Image-Edit AI model.

vibe map

mindmap
  root((repo))
    What it does
      Pads images to grid
      Aligns reference latents
      Crops padding after edit
    Tech stack
      Python
      ComfyUI
      Qwen-Image-Edit
    Use cases
      Line art extraction
      Manga panel editing
    Audience
      AI art creators
      ComfyUI users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Edit an image with Qwen-Image-Edit without introducing pixel drift or zoom-like misalignment.

VIBE 2

Extract line art or retouch part of an image while keeping the rest perfectly in place.

VIBE 3

Edit individual manga panels where layout alignment with the original matters.

what's the stack?

PythonComfyUIQwen-Image-Edit

how it stacks up fr

tori29umai0123/comfyui-qwenimageedit-lockpixel1038lab/comfyui-agnes-aiadityaarsharma/wordpress-malware-removal
Stars181818
LanguagePythonPythonPython
Setup difficultymoderateeasymoderate
Complexity3/52/53/5
Audiencevibe coderdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires an existing ComfyUI installation with Qwen-Image-Edit set up, drop the folder into custom_nodes and restart.

MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.

in plain english

LockPixel is a small add-on pack of custom nodes for ComfyUI, a visual tool for building AI image generation workflows. It targets a specific problem with Qwen-Image-Edit, an AI model that edits images: small pixel shifts, drift, or a subtle zoom-like distortion that can appear between the original image and the edited output. The cause, as the README explains, is that the internal representation used for the reference image and the one used for generating the edited output are sometimes built at different sizes, which throws off alignment. LockPixel fixes this by padding the input image out to a size divisible by 32 pixels, converting that padded image into its internal representation only once, and reusing that same representation for both the reference and the generation step, instead of letting them drift apart. The pack adds four nodes: one that pads an image without resizing it, one that creates the Qwen conditioning and generation input from that padded image together, one that lets an existing result be reused as a reference, and one that crops the padding back off after the image is generated. The README includes a diagram of the intended node connections and an example workflow file to import directly into ComfyUI. This is useful for tasks where keeping the rest of the image exactly in place matters, such as line art extraction, retouching, partial edits, or editing individual manga panels. The README is honest that this fix does not guarantee pixel perfect results in untouched areas, since the encoding and decoding process itself is not perfectly reversible, and suggests compositing the edited region back over the original image with a mask for strict preservation. Installation means placing the folder into ComfyUI's custom_nodes directory and restarting. The project is released under the MIT license.

prompts (copy fr)

prompt 1
Help me install this ComfyUI node pack and wire up the basic LockPixel workflow.
prompt 2
Explain why Qwen-Image-Edit causes pixel drift and how padding to a 32 pixel grid fixes it.
prompt 3
Show me how to composite an edited region back over the original image using a mask for strict preservation.
prompt 4
Walk me through the four LockPixel nodes and what each one does in the pipeline.

Frequently asked questions

what is comfyui-qwenimageedit-lockpixel fr?

A ComfyUI node pack that fixes pixel drift and misalignment when editing images with the Qwen-Image-Edit AI model.

What language is comfyui-qwenimageedit-lockpixel written in?

Mainly Python. The stack also includes Python, ComfyUI, Qwen-Image-Edit.

What license does comfyui-qwenimageedit-lockpixel use?

MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is comfyui-qwenimageedit-lockpixel to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is comfyui-qwenimageedit-lockpixel for?

Mainly vibe coder.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.