Qwen-Image 2.1 Direct Pixel Head (v0.3 Haar Wavelet High-Fidelity & v0.1 Fast RGBA)

English | 简体中文 | ComfyUI Node (GitHub) | Comfy Registry

1:1 held-out 4-way comparison: Official 644MB VAE vs v0.1 vs v0.2 vs v0.3 Wavelet

Original Author Attribution & Credits: Substantial parts of this pixel head architecture, ComfyUI tap-and-decode workflow, and training pipeline (no-skip ConvNeXt + PixelShuffle 1x/2x readout, pre-linear CFG-exact feature tap + latent patch fusion, single-step teacher-forced ReplayBuffer distillation against VAE(x̂0), RGBA readout, and 2D Haar wavelet + detached-LL adversarial refinement) are derived from and inspired by Seunghyun Ji (sorryhyun)'s original work in sorryhyun/anima_lora, sorryhyun/anima_pixel_decoder, and sorryhyun/ComfyUI-Anima-PixelDecoder (MIT License, Copyright (c) 2026 Seunghyun Ji), alongside the foundational direct pixel readout formulation in FastFrames: Video Generation at Interactive Latency (arXiv:2611.23226) (Gene Chou et al., Apple & Cornell, 2026).


English

v0.3 Release Notes (2026-11-24 — 2D Haar Wavelet + Latent Spatial Highway + Detached-LL HF-GAN)

v0.3 (qwen_image_2.1_pixel_head_v03_bf16.safetensors, 79.3 MiB) upgrades v0.2 across speed, peak VRAM, and pixel fidelity on 1024×1024 multi-step generations:

  • 3.07× faster than v0.2 (17.9× faster than Official 644.2 MiB VAE) with 44.2% lower activation VRAM (504 MiB vs 904 MiB): Predicts 512×512 exact 2D Haar wavelet subbands (LL, LH, HL, HH) via norm-free WaveletConvBlock2d layers followed by an analytical 0-parameter iDWT to 1024×1024 (37.51 ms vs 115.05 ms on NVIDIA L4).
  • Multi-Scale LatentSpatialHighway: Extracts neighbor-aware 3×3 spatial features directly from the 64-channel denoised latent x0_hat_norm into the 8px, 4px, and 2px grids, sharpening slanted barcode print (36.2 dB) and 1px copperplate cross-hatching (+0.56 dB domain gain over v0.2).
  • Zero-PSNR-Penalty High-Frequency Wavelet PatchGAN (LL.detach()): Hinge adversarial training acts exclusively on (LH, HL, HH) while detaching low-frequency LL, raising overall PSNR to 33.81 dB (+0.79 dB over v0.2, +1.19 dB over v0.1; 39.17 dB on close-up portraits) and lowering LPIPS-VGG to 0.0736 (-42.1% vs v0.1).
  • Node version requirement: Update ComfyUI-QwenImage21-PixelHead to v1.3.0+ (git pull or ComfyUI Manager) before loading v0.3 weights. v0.3, v0.2, and v0.1 (1x / 2x) weights are all loaded by the same node.

Checkpoint Guide

File Size Version / Tier Notes
qwen_image_2.1_pixel_head_v03_bf16.safetensors 79.3 MiB v0.3 Wavelet (1x) Recommended default. 37.51 ms on L4 (17.9×), 33.81 dB PSNR, 0.0736 LPIPS-VGG.
qwen_image_2.1_pixel_head_v03.safetensors 158.1 MiB v0.3 Wavelet (1x FP32) Full FP32 v0.3 checkpoint (41.43M params).
qwen_image_2.1_pixel_head_bf16.safetensors 48.8 MiB v0.1 Fast (1x) 7.77 ms on L4 (3.4 ms A100) for rapid batch seed exploration.
qwen_image_2.1_pixel_head_x2_bf16.safetensors 52.1 MiB v0.1 Fast (1x + 2x) Includes 1x + single-pass 2x (1024 → 2048) branch via output_scale.
qwen_image_2.1_pixel_head_v02_bf16.safetensors 78.5 MiB v0.2 1px Pyramid (1x) Previous full-resolution 1px pyramid checkpoint (115.05 ms on L4).
*_v02.safetensors / *.safetensors / *_x2.safetensors 97.0–156.5 MiB v0.2 / v0.1 FP32 Full FP32 weights for v0.2 and v0.1.
workflows/*.json 18 KB ComfyUI Workflows EN & ZH zero-VAE workflows (defaulting to v0.3).

Benchmark (1024×1024 Held-Out Multi-Step Split on NVIDIA L4: 8s Turbo, 20s CFG=3.5, 24s CFG=4.5)

Decoder BF16 Size 1024² Latency (L4) Speedup Overall PSNR (↑) Overall LPIPS-VGG (↓) Portrait PSNR / LPIPS Small Text PSNR / LPIPS Etching PSNR / LPIPS
Official Qwen-Image 2.1 VAE 644.2 MiB 671.57 ms 1.0× (ref) 0.0000 (ref) (ref) (ref)
PixelHead v0.3 (Haar Wavelet) 79.3 MiB 37.51 ms 17.9× 33.81 dB 0.0736 39.17 / 0.0572 33.61 / 0.0727 27.41 / 0.0987
PixelHead v0.2 (1px Pyramid) 78.5 MiB 115.05 ms 5.8× 33.02 dB 0.0808 38.25 / 0.0630 32.80 / 0.0792 26.85 / 0.1107
PixelHead v0.1 (8×8 Linear) 48.8 MiB 7.77 ms 86.4× 32.62 dB 0.1272 37.29 / 0.1211 32.50 / 0.1235 26.82 / 0.1490

Full 6-row 1:1 4-way comparison board: samples/v03_4way_1to1_comparison.png.

Attribution, Credits & License

  • Original Pixel Decoder & Training Pipeline Author: Seunghyun Ji (sorryhyun) (GitHub @sorryhyun) — author and publisher of sorryhyun/anima_lora (project/pixel_decoder, library/anima/pixel_head.py, scripts/pixel_head/), sorryhyun/anima_pixel_decoder, and sorryhyun/ComfyUI-Anima-PixelDecoder. Key architectural and training recipes adapted here — including the no-skip ConvNeXt + 2× PixelShuffle 1x/2x head layout, pre-linear f_u + g·(f_c - f_u) feature tap + latent patch embedding, single-step teacher-forced ReplayBuffer distillation against VAE(x̂0) across mixed Base/Turbo σ points, 4-channel RGBA readout, and 2D Haar wavelet (LL, LH, HL, HH) + detached-LL adversarial training — build directly upon sorryhyun's work.
  • Foundational Paper: FastFrames: Video Generation at Interactive Latency (arXiv:2611.23226) (Gene Chou, Guandao Yang, Fujun Luan, Lars Mescheder, Wei Dong, Stephan R. Richter, Vladlen Koltun — Apple & Cornell, 2026).
  • License: Released under the MIT License (retaining Copyright (c) 2026 Seunghyun Ji and Copyright (c) 2026 Wither033 / pocis). Usage with Qwen-Image 2.1, Krea-2, or MiniMax-H3 models remains subject to each respective upstream base model's license terms.

简体中文

v0.3 更新说明(2026-11-24 · 2D Haar 小波直出 + 潜空间多尺度桥 + 纯高频对抗精修)

本次发布的 v0.3(qwen_image_2.1_pixel_head_v03_bf16.safetensors,79.3 MiB) 在推理速度、运行显存和微距清晰度三个维度上全面升级了 v0.2:

  • **解码速度比 v0.2 快 3.07×(比官方 644.2 MiB VAE 快 17.9×),激活显存下降 44.2%**:改在 512×512 半分辨率网格预测 2D Haar 小波四子带 (LL, LH, HL, HH) 并通过零参数解析 iDWT 还原 1024×1024(NVIDIA L4 耗时从 115.05 ms 降至 **37.51 ms**,运行期显存从 904 MiB 降至 504 MiB);
  • 多尺度潜空间 3×3 空间桥(LatentSpatialHighway):直接从 64 通道去噪潜变量提取跨 Token 邻域笔画特征注入 8px、4px 与 2px 层,斜排条码小字局部达 36.2 dB,铜版交叉排线子集比 v0.2 提升 +0.56 dB;
  • 锁死 LL.detach() 的纯高频小波 PatchGAN:对抗损失只约束高频边缘 (LH, HL, HH) 不动底色,总体 PSNR 升至 **33.81 dB**(近景人像达 **39.17 dB**,单张局部 41.2 dB),LPIPS-VGG 降至 **0.0736**(比 v0.1 下降 42.1%);
  • 使用前请更新节点插件:请先将 ComfyUI-QwenImage21-PixelHead 更新至 **v1.3.0+**(git pull 或通过 ComfyUI Manager 更新),再将权重放入 ComfyUI/models/pixel_heads/ 或 ComfyUI/models/vae/。

权重选型建议

  • 日常出图默认推荐:下载 qwen_image_2.1_pixel_head_v03_bf16.safetensors(79.3 MiB),37.5 ms 低延迟下兼顾近景肤质、小字与细密排线;
  • 大批量快速抽卡 / 2x 一步预览:可选用 qwen_image_2.1_pixel_head_bf16.safetensors(48.8 MiB,L4 7.77 ms)或 _x2_bf16.safetensors(52.1 MiB)。

相关仓库

适配模型 ComfyUI 节点仓库 Hugging Face 权重 说明
Qwen-Image 2.1 (本仓库) Wither033/ComfyUI-QwenImage21-PixelHead pocis/Qwen-Image-2.1-PixelHead v0.3 小波版 (79.3 MiB, 37.5 ms, LPIPS 0.0736) + v0.1 快速版 (48.8 MiB),4 通道 RGBA
Krea-2 Wither033/ComfyUI-Krea2-PixelHead pocis/Krea-2-PixelHead 52.6 MiB BF16,6144d 降维桥 RGB,59.55 ms (24.7×)
MiniMax-H3 (预览版) Wither033/ComfyUI-MiniMaxH3-PixelHead pocis/MiniMax-H3-Video-PixelHead 实验预览版(复杂运动碎纹理偏软)
训练框架与复盘 Wither033/FastFrames-PixelHead-Trainer HF 合集页 通用训练框架与 01~07 训练脚本(MIT License)

原作者署名、致谢与开源协议(Attribution & License)

  • 原作者与核心管线致谢:本项目的像素头核心结构、ComfyUI Tap + Decode 挂载范式及训练管线(包括无跳连 ConvNeXt + 2× PixelShuffle 1x/2x 解码结构、末层线性映射前 f_u + g·(f_c - f_u) 特征截获与潜变量块融合、基于 VAE(x̂0) 的跨 Base/Turbo 单步 ReplayBuffer 蒸馏、RGBA 四通道读出,以及 v0.3 的 2D Haar 小波子带预测与锁定低频 LL 的高频对抗训练思路)衍生并改编自原作者 **Seunghyun Ji (sorryhyun)**(GitHub @sorryhyun)在 sorryhyun/anima_lora、sorryhyun/anima_pixel_decoder 与 sorryhyun/ComfyUI-Anima-PixelDecoder 中的开创性开源工作(MIT License,Copyright (c) 2026 Seunghyun Ji)。特此向原作者 sorryhyun 致谢!
  • 基础论文参考:直接像素读出(Direct Pixel Readout)理论框架参考 FastFrames: Video Generation at Interactive Latency (arXiv:2611.23226)(Gene Chou et al., Apple & Cornell, 2026)。
  • 开源协议:MIT License(完整保留原作者 Copyright (c) 2026 Seunghyun Ji 版权声明;配合各扩散底座模型使用时请同时遵守对应底模的许可证条款)。
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for pocis/Qwen-Image-2.1-PixelHead

Finetuned
(102)
this model

Collection including pocis/Qwen-Image-2.1-PixelHead

Paper for pocis/Qwen-Image-2.1-PixelHead