English | 简体中文 | ComfyUI Node (GitHub) | Comfy Registry
Original Author Attribution & Credits: Substantial parts of this pixel head architecture, ComfyUI tap-and-decode workflow, and training pipeline (no-skip ConvNeXt +
PixelShuffle1x/2xreadout, pre-linear CFG-exact feature tap + latent patch fusion, single-step teacher-forcedReplayBufferdistillation againstVAE(x̂0), RGBA readout, and 2D Haar wavelet + detached-LLadversarial refinement) are derived from and inspired by Seunghyun Ji (sorryhyun)'s original work insorryhyun/anima_lora,sorryhyun/anima_pixel_decoder, andsorryhyun/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).
| Model | ComfyUI Node | Weights | Notes |
|---|---|---|---|
| Krea-2 (this repo) | Wither033/ComfyUI-Krea2-PixelHead | pocis/Krea-2-PixelHead | 52.6 MiB BF16, 6144d bridged RGB, 59.55 ms (24.7×), 33.33 dB |
| Qwen-Image 2.1 | Wither033/ComfyUI-QwenImage21-PixelHead | pocis/Qwen-Image-2.1-PixelHead | v0.3 Wavelet (79.3 MiB, 37.5 ms, 33.81 dB, LPIPS 0.0736) + v0.1 (48.8 MiB, 7.8 ms), 4-ch RGBA |
| MiniMax-H3 (preview) | Wither033/ComfyUI-MiniMaxH3-PixelHead | pocis/MiniMax-H3-Video-PixelHead | Experimental preview (not recommended for production yet; high-frequency textures are soft) |
| Training Code & Notes | Wither033/FastFrames-PixelHead-Trainer | HF Collection | Training toolkit, DiT hook notes, and Colab L4 scripts |
Krea-2-PixelHead is a 27.49M-parameter (52.6 MiB BF16) bridged direct pixel readout head for Krea-2 (Comfy-Org/Krea-2, krea/Krea-2-Turbo, krea/Krea-2-Raw, FP8/INT8/GGUF quantizations, and fine-tunes).
Following FastFrames (arXiv:2611.23226), it reads SingleStreamDiT's 6144-dim modulated target-image tokens right before last.linear (stripping text and style-reference tokens) together with the denoised 2×2 latent patches (d_lat = 64), decoding to RGB in 59.55 ms vs 1468.9 ms for the 242.0 MiB 3D-causal qwen_image_vae.safetensors (24.7× faster).
| File | Size | Notes |
|---|---|---|
krea2_pixel_head_bf16.safetensors |
52.6 MiB |
Recommended (BF16 trunk + FP32 output projection). |
krea2_pixel_head.safetensors |
104.9 MiB |
Full FP32 checkpoint (27.49M params). |
workflows/01_Krea2_PixelHead_ZeroVAE_EN.json |
8 KB |
Zero-VAE workflow + optional stock VAE comparison (English). |
workflows/01_Krea2_PixelHead_ZeroVAE_ZH.json |
8 KB |
免 VAE 直出与官方 VAE 对比工作流(简体中文)。 |
768×768 Held-Out Fine-Art Split, NVIDIA L4)| Decoder | Size | Median Latency | Speedup | PSNR (↑) | LPIPS-VGG (↓) | Extra VRAM |
|---|---|---|---|---|---|---|
Official qwen_image_vae |
242.0 MiB |
1468.90 ms |
1.0× |
(ref) | 0.0000 |
~1.8–5.5 GB |
Krea2PixelHead |
52.6 MiB |
59.55 ms |
24.7× |
33.33 dB |
0.2300 |
< 0.2 GB |
Lace Collar Portrait (37.1 dB) |
Oil Portrait Hands (39.1 dB) |
|---|---|
Color Illustration (32.9 dB) |
Copperplate Etching (30.8 dB) |
comfyui-krea2-pixelhead) or git clone.krea2_pixel_head_bf16.safetensors into ComfyUI/models/pixel_heads/ (or ComfyUI/models/vae/).Krea-2 Pixel Head Tap on the MODEL wire before KSampler, and replace VAEDecode with Krea-2 Pixel Decode (Zero VAE).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.arXiv:2611.23226) (Gene Chou, Guandao Yang, Fujun Luan, Lars Mescheder, Wei Dong, Stephan R. Richter, Vladlen Koltun — Apple & Cornell, 2026).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.Krea-2-PixelHead 是适配 Krea-2(含 Comfy-Org/Krea-2、8 步 krea2_turbo、krea2_raw 原版、FP8/INT8/GGUF 量化版及微调版)的免 VAE 像素直出头,BF16 权重体积 52.6 MiB。
模型在采样最后一步读取 SingleStreamDiT 进入 last.linear 前的 6144 维图像特征与 2×2 去噪潜块:
768×768 中位耗时从官方 qwen_image_vae 的 1468.9 ms 降至 59.55 ms(约 24.7×),文生图无需加载 VAE;33.33 dB PSNR(肖像类样本 37.1~41.6 dB);CFG = 1.0)、20~35 步多步采样(CFG > 1.0)以及风格参考图输入。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 致谢!arXiv:2611.23226)(Gene Chou et al., Apple & Cornell, 2026)。Copyright (c) 2026 Seunghyun Ji 版权声明;配合各扩散底座模型使用时请同时遵守对应底模的许可证条款)。krea2_pixel_head.safetensors 105 MiBkrea2_pixel_head_bf16.safetensors 53 MiB