Views
No views yet
| Model | Mean PSNR (dB) | Std (dB) | Median (dB) | P5 (dB) | P95 (dB) |
|---|---|---|---|---|---|
| FLUX.2 VAE | 36.28 | 4.53 | 36.07 | 28.90 | 43.63 |
| full_capacitor | 36.62 | 4.63 | 36.55 | 29.14 | 44.05 |
| Delta | +0.34 | 0.68 | 0.41 | -0.85 | 1.31 |
2000 validation images.NVIDIA GeForce RTX 5090 in bfloat16, averaging 20
repeated batches per resolution.| Resolution | Batch Size | FLUX.2 encode (ms/batch) | full_capacitor encode (ms/batch) | Speedup vs FLUX.2 | Peak VRAM Reduction |
|---|---|---|---|---|---|
256x256 | 128 | 383.41 | 42.56 | 9.01x | 91.9% |
512x512 | 32 | 353.58 | 44.97 | 7.86x | 92.0% |
95%;
see Technical report),
but latent PCA is very close (see
Results viewer).encode() returns the model's own whitened latent space.decode() expects that same whitened latent space and dewhitens internally.whiten() and dewhiten() are also exposed for explicit control.encode_posterior() returns the raw exported posterior (mean, logsnr) before whitening.float32. The recommended runtime path is
bfloat16 for the main encoder and decoder, while whitening, dewhitening, and
other numerically sensitive inference steps remain in float32.1import torch
2
3from full_capacitor import FullCapacitor, FullCapacitorInferenceConfig
4
5
6device = "cuda"
7model = FullCapacitor.from_pretrained(
8 "data-archetype/full_capacitor",
9 device=device,
10 dtype=torch.bfloat16,
11)
12
13image = ... # [1, 3, H, W] in [-1, 1], H and W divisible by 32
14
15with torch.inference_mode():
16 latents = model.encode(image.to(device=device, dtype=torch.bfloat16))
17 recon = model.decode(
18 latents,
19 height=int(image.shape[-2]),
20 width=int(image.shape[-1]),
21 inference_config=FullCapacitorInferenceConfig(num_steps=1),
22 )full_capacitor uses an 8-block encoder and an 8-block decoder.1@misc{full_capacitor,
2 title = {Full capacitor: a Flux.2 VAE latent space distillation diffusion autoencoder},
3 author = {data-archetype},
4 email = {data-archetype@proton.me},
5 year = {2026},
6 month = apr,
7 url = {https://huggingface.co/data-archetype/full_capacitor},
8}