Anima Pixel Decoder
Anima DiT VAE decoder replacement
2 min readupdated
The model is a 25M-parameter decoder that reads features from the final layer of the Anima diffusion transformer (DiT) on the last sampling step and writes RGB pixels directly. This replaces the standard VAE decoder, reducing VRAM usage and speeding up the workflow. The architecture is based on the FastFrames approach using ConvNeXt blocks. The development is useful for ComfyUI and anima_lora users for faster image generation.
Key features
- Decoding acceleration: decoding time is reduced from 141–151 ms to 7 ms.
- VRAM savings: peak decoder memory drops from 1.22–1.38 GB to 0.21–0.24 GB.
- Compatibility: works with the base DiT (Euler, 20–50 steps) and the 4-step turbo mode (anima-turbo-42step).
- High quality: the PSNR (peak signal-to-noise ratio) compared to a standard VAE is 36.9 dB.
What you can do
- Speed up generation in ComfyUI: install the Anima Pixel Decoder node, connect the pixel tap to the model before the KSampler, and use pixel decoding instead of VAE.
- Run via anima_lora: use the
--decoder pixel_headargument in theinference.pyscript. - Generate artwork faster: comfortably create 1024×1024 resolution images on graphics cards like the RTX 5070 Ti with lower memory load.
Example
Example of usage in ComfyUI: add the Anima Pixel Head Tap node to the model before the KSampler, and then decode the latent using the Anima Pixel Decode node.
Read more
DetailsThe file weighs 95 MB (fp32, safetensors format).
Input: 2048-dim features per token.
Output: 16×16 RGB patch per token in the [-1, 1] range.
Limitations: screentone dots and dense hatching may be smoothed into soft gray shades (1–2.5 levels darker than VAE).
License: CircleStone Labs Non-Commercial License (commercial use of generated images is permitted).






Comments