PixelHead v0.3 Decodes Qwen-Image 2.1 at 17.9x the VAE Speed
PixelHead swaps Qwen-Image 2.1's 644 MB VAE for a 79 MB pixel decoder that runs 1024px latents 17.9x faster on an L4, with a ComfyUI node and zero-VAE workflows.
v1.3.0 or newer.
Held-out 1024px comparison: official VAE, then PixelHead v0.1, v0.2 and v0.3. From the project repo.
What it does
Sampling is untouched: PixelHead only replaces the decode step, where the latent becomes a picture. On an L4 at 1024 x 1024 the author measured 37.5 ms per image against 671.6 ms for the stock VAE, and peak activation memory of 504 MiB instead of 1.9 to 3.2 GB.
Quality is judged against the official VAE as reference, not against ground truth: PSNR 33.81 dB and LPIPS-VGG 0.0736 over 36 held-out generations. Older versions were faster but softer. v0.1 decodes in 7.8 ms and lands at 32.62 dB, so 0.3 is the one to run unless you are only scrubbing seeds.
| Decoder | Size | 1024px latency (L4) | PSNR vs VAE |
|---|---|---|---|
| Official VAE | 644 MB | 671.6 ms | reference |
| PixelHead v0.3 | 79 MB | 37.5 ms | 33.81 dB |
| PixelHead v0.2 | 78.5 MB | 115.1 ms | 33.02 dB |
| PixelHead v0.1 | 48.8 MB | 7.8 ms | 32.62 dB |
Expect the wall-clock gain to be smaller than 17.9x, since the denoising loop still takes the same time.
Install
ComfyUI-QwenImage21-PixelHead to v1.3.0+, through ComfyUI Manager or comfy node install comfyui-qwenimage21-pixelhead.
2. Put qwen_image_2.1_pixel_head_v03_bf16.safetensors (79.3 MB) in ComfyUI/models/pixel_heads/ or ComfyUI/models/vae/.
3. Drop in one of the zero-VAE workflows from the Hugging Face repo and select the head in the PixelHead loader.
One loader reads all three versions, so the older 48.8 MB draft head can sit next to the 0.3 file.
What you get
- RGBA output:
image_rgb,alpha_maskandimage_rgba, same as the stock decode path. - 8-step Turbo LoRA at CFG 1.0, and 20 to 35 step base sampling at CFG 3.5 to 4.5.
<image1>multi-image reference editing, plus compatibility withQwenImage21Cache.- Optional cosine-blended tiling for 2K and 4K, and a 2x one-pass branch in the v0.1
x2file (1024 to 2048).
Six-row comparison board covering portraits, small print and fine-art hatching.
Portrait crop: stock VAE next to PixelHead v0.3.
Comments
Sign in with GitHub to join the discussion.