r/StableDiffusion • u/TensorForger • 1d ago
Resource - Update Generate with H3 Image, decode with Flux.2 VAE. Steppe-H3-to-Flux.2: latent to latent translator allows to avoid bad H3 decoder entirely. (ComfyUI nodes)
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.






11
u/Enshitification 1d ago
It's like you read my Christmas wish list. Thank you!
6
u/Still_Lengthiness994 1d ago
can you do this with qwen for krea 2?
4
u/__MichaelBluth__ 1d ago
Very interesting! Is there a H3 image example workflow?
3
u/Silonom3724 1d ago edited 1d ago
So this is a Latent-Bridge for H3-Image > Flux.2-Klein? Is Flux.2 even a model? Sorry for asking. I only know Flux.2-Klein.
2
u/luciferianism666 1d ago
Not quite sure what I missing, I am on the right commit https://github.com/tensorforger/ComfyUI-Steppe/commit/4139a16135cb7e4845c666db58ef25c991be171f and I did manually download the upscale models for H3 but it just won't show up on the list.
2
u/frankenbourg 1d ago
Super interesting approach! Beyond the
patch_fidmetrics, how does the final rendered image look in practice on complex details like hands, text, or fine skin textures compared to Ostris's VAE? Does the latent translation ever introduce slight color shifts or hallucinations?2
u/ninjazombiemaster 13h ago
Overall this looks good, generally better details, I especially like what it does for foliage... but there seems to be a bug along the bottom edge of images. Some kind of smearing or bleeding. Its very slight, maybe related to the tiling / patchification. Its roughly the bottom ~8-16 pixels that are significantly worse even though the rest of the image is generally better to my eyes. I can't see the same issue on the other borders.
1
u/collectedtooth404 1d ago
Super awesome. Does this method add to the generation time or vram required?
3
u/No-Sandwich1809 1d ago
Having the sharpness slider and extra JPEG robustness is just icing. This kinda control is what comfyUI needed tbh.
1
u/DiffusionSingularity 19h ago
please consider packaging new code as tags/releases so its easier to track changes. thanks
1
u/SkirtSpare4175 1d ago
Fire
1
u/thevegit0 1d ago
okay this sounds interesting
0
u/gago_gaamdhani 1d ago
Can you provide the prompt for the tiger and building image
0
u/amgasanov 1d ago
Really clever idea! Translating latents directly into Flux.2 space to leverage its VAE instead of retraining another custom VAE from scratch makes a lot of sense—you immediately get clean skin textures without the grid/wave artifacts. Have you noticed any color or contrast drift on complex lighting scenes when going through the H3 -> Flux.2 latent translator compared to the native H3 VAE?
-5
u/Suitable-League-4447 1d ago
hun? ph3 is the best are ppl blind or wot?
-14
u/rukiann 1d ago
Do you really need to do all that extra shit? Just make the random image and go. How much more hd does some randomly generated chick have to be for you to goon on? LoL.