PixelHead v0.3 Decodes Qwen-Image 2.1 at 17.9x the VAE Speed

ComfyUI Wikinews

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.

PixelHead (Hugging Face | ComfyUI node | Comfy Registry) replaces the 644 MB VAE decoder at the end of Qwen-Image 2.1 sampling with a 79 MB pixel head. Version 0.3 shipped on November 24 and needs node v1.3.0 or newer.
PixelHead v0.3 comparison against the official Qwen-Image 2.1 VAE

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.

DecoderSize1024px latency (L4)PSNR vs VAE
Official VAE644 MB671.6 msreference
PixelHead v0.379 MB37.5 ms33.81 dB
PixelHead v0.278.5 MB115.1 ms33.02 dB
PixelHead v0.148.8 MB7.8 ms32.62 dB

Expect the wall-clock gain to be smaller than 17.9x, since the denoising loop still takes the same time.

Install

1. Install or update 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_mask and image_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 with QwenImage21Cache.
  • Optional cosine-blended tiling for 2K and 4K, and a 2x one-pass branch in the v0.1 x2 file (1024 to 2048).
PixelHead v0.3 four-way comparison board

Six-row comparison board covering portraits, small print and fine-art hatching.

PixelHead portrait crop comparison

Portrait crop: stock VAE next to PixelHead v0.3.

Comments

Sign in with GitHub to join the discussion.

Loading comments…
PixelHead v0.3 Decodes Qwen-Image 2.1 at 17.9x the VAE Speed | ComfyUI Wiki