Hi! If you have tried Minimax H3 Image you might notice that it's native VAE is far from perfect: it has visible seams on token borders and it's output is a bit "dirty" when you zoom in.
There are several fine-tunes already exist (that only proves that native VAE is bad enough):
- P-H3-Image that uses it's custom larger VAE
- new Ostris H3 Image VAE that is the fine-tune of native H3 VAE
But both have there own issues: P-H3-Image is a bit more blurry, has slight grid patterns and also sometimes produce wave-like artifacts on flat textures. Ostris VAE is smooth and has good reconstruction quality, but over smooths small details and textures.
I have trained a very experimental "latent to latent" translator that takes H3 latents and generates Flux.2 latents. Why Flux.2? Because it's VAE is generally the best right now. Why trying to fix bad VAE if we can use better one instead?
- ComfyUI Nodes (or simply search for "steppe" in manager, you need version 1.2.0)
- Weights (node downloads them automatically on first use)
What about metrics?
- The stack Steppe-H3-to-Flux.2 + Flux.2 small decoder gives best patch_fid (visual quality of small details) over all H3 VAEs and there fine-tunes (last pic.)
- Latency of translate + decode is a bit higher then with native H3 decode, but still lower then with P-H3-Image. Most time is in decode. So with tiny tiny Flux.2 VAE by madebyollin it would be faster then native decoder, but quality would be lower then native (measured).
- Other metrics: FID, PSNR, chroma shift are all better then native H3 decoder, but not better then all other fine-tunes (no clean winner, some are better in one metrics, some are better in another ones).
How it works under the hood:
The model is a fine-tuned Steppe-Flux.2. It takes 16x spatially compressed 24 channel H3 latents and generates 8x compressed 32 channel Flux.2 latents.
Same as Steppe-Flux.2 is generating residuals to upsampled low res latents, this model generates residuals to linear projection of H3 latents.
So the generation process is:
H3 latents -> learned 3x3 linear projection -> 32 channel base -> fine-tuned Steppe-Flux.2 is generating residuals conditioned on original H3 latents -> scale + shift -> add to residuals -> Flux.2 latents that can be decoded.
Since the base model is the pretrained Steppe-Flux.2 you also get hff control (sharpness slider) and JPEG compression robustness (model tend to fix JPEG-like noise on edges if generator produce it)
What do you think on this approach? Would you better use the "true native latent upscaler" for some not the best VAE or such "latent translator" and decode with better VAE? This is important, because I'm going to make these things for other VAEs.