anima
decoder
sorryhyun commited on
Commit
e426b4c
·
verified ·
1 Parent(s): c1b761b

Card: turbo end-to-end in ComfyUI (VAE Decode 1.13 s vs pixel head 1.00 s), ComfyUI node usage

Browse files
Files changed (1) hide show
  1. README.md +24 -3
README.md CHANGED
@@ -62,6 +62,23 @@ The move row is the moved-VAE path (176 ms) minus a decode with the VAE already
62
  total 1.82 s); keeping it on the card saves the move (total 1.11 s, 1.30 GB). Text encoding
63
  (~0.3 s per prompt) is outside the totals.
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  Held-out reads during training (dB, colour / mono):
66
 
67
  | decode point | colour | mono |
@@ -82,9 +99,13 @@ Held-out reads during training (dB, colour / mono):
82
 
83
  ## Use
84
 
85
- The loader, the feature tap and the decode call live in
86
- [anima_lora](https://github.com/sorryhyun/anima_lora) (`bench/pixel_readout/`; moving to
87
- `library/anima/pixel_head.py`). A ComfyUI node is planned.
 
 
 
 
88
 
89
  ## License
90
 
 
62
  total 1.82 s); keeping it on the card saves the move (total 1.11 s, 1.30 GB). Text encoding
63
  (~0.3 s per prompt) is outside the totals.
64
 
65
+ ### In ComfyUI
66
+
67
+ The same turbo setting and 16 prompts in ComfyUI 0.43.0 (dynamic VRAM, PyTorch attention), same
68
+ card, medians. Workflow: Load Diffusion Model → Anima Adapter Loader (turbo LoRA, fp32 stream) →
69
+ Anima Block Compile → KSampler (euler, simple, 4 steps, CFG 1) → VAE Decode; the head column adds
70
+ Anima Pixel Head Tap before the KSampler and uses Anima Pixel Decode in place of VAE Decode.
71
+
72
+ | | KSampler + VAE Decode | KSampler + Anima Pixel Decode |
73
+ |---|---|---|
74
+ | KSampler | 0.976 s | 0.998 s (with the tap) |
75
+ | decode | 151 ms | 7 ms |
76
+ | decode peak VRAM above the loaded models | 1.22 GB | 0.21 GB |
77
+ | PSNR against VAE Decode | — | 36.9 dB |
78
+ | **total per image** | **1.13 s** | **1.00 s (1.12×)** |
79
+
80
+ ComfyUI keeps the VAE on the card after its first decode, so the VAE column has no move cost.
81
+
82
  Held-out reads during training (dB, colour / mono):
83
 
84
  | decode point | colour | mono |
 
99
 
100
  ## Use
101
 
102
+ - ComfyUI: the ComfyUI-Anima-PixelDecoder node pack. Put this file in `models/pixel_heads/`,
103
+ add **Anima Pixel Head Tap** on the MODEL before the KSampler (stock or Spectrum) and decode
104
+ the sampler's LATENT with **Anima Pixel Decode** instead of VAE Decode. Run the DiT on the
105
+ fp32 stream (Anima Adapter Loader, `stream = fp32`).
106
+ - [anima_lora](https://github.com/sorryhyun/anima_lora): `inference.py --decoder pixel_head`
107
+ (`make test PIXEL=1`, `make test-turbo PIXEL=1`); the module, loader and feature tap are in
108
+ `library/anima/pixel_head.py`.
109
 
110
  ## License
111