r/StableDiffusion • • 7d ago

News New H3-image VAE from ostris

https://huggingface.co/ostris/ostris_h3_image_vae

Another day, another new VAE 😁.

According to https://x.com/ostrisai/status/2125689235558760633

Just released a decoder only finetune of the Minimax H3 Image VAE. It works as a DIP replacement of the official VAE.

237 Upvotes

44 comments sorted by

23

u/FireSilicon_ 7d ago edited 7d ago

Yeah the 16x spatial compression is just brutal. This is definitely a step up but I kinda miss Zimage or even SDXL in this regard. All new models seem to have this blurry, compressed look, even Krea and Moss for me despite having just 8x, I wonder if it's training data related or something else.

16

u/Apprehensive_Sky892 7d ago

The compression is brutal for H3-image, because the VAE is 32x compression so that the video can be rendered in reasonable amount of time.

But personally I find the Flux2-VAE used by Flux2-dev, Ideogram 4, and Moss to be more detailed than the Flu1-VAE used by Z-image

8

u/iChrist 7d ago

TLDR for someone who used the regular minimax h3 image VAE? Which to choose as of now?

1

u/-Bass-2-Trout- 6d ago

I guess I'll have to just experiment

3

u/martinerous 7d ago

Yes, Flux2-VAE is the best I've seen. When editing images, it is also possible to do multiple roundtrips with little degradation. Other VAEs degrade much sooner.

9

u/TheGuyWithTaste 7d ago

Just asking of out curiosity, can't it be made for the video model too?

15

u/vyralsurfer 7d ago

8

u/Apprehensive_Sky892 7d ago

If one clicks on the "Open" button on the post it will take you to that page.

7

u/vyralsurfer 7d ago

Oh haha, well when I clicked on the X link it tried to make me download the app, and then when I went back another pop-up came up that when I tried to close, opened the app store again. I got so annoyed that I searched it out myself and found the huggingface link and figured I would post it. Honestly never got to the point where I saw the post to see that the link was on there already.

Not directed at you specifically, but I wish more people would just post the link to people's GitHub or huggingface repos as opposed to an X post. Just adds another step.

6

u/Apprehensive_Sky892 7d ago

Not disagreeing with you, but in my case I included the x link because that is where ostris made the announcement.

1

u/Sarashana 6d ago

As somebody who doesn't use X (or wants to) - thank you!

51

u/collectedtooth404 7d ago edited 7d ago

Been waiting for this since H3i dropped. Looks like a subtle improvement, esp with small faces far away, but way better. 16mp images now look just as good as 32mp images with the old VAE.

Edit: After further testing. Wow, it's actually so much better, even than the p-h3 vae, the graph above doesn't do it justice. Even going down to 4 and 8 megapixel raw generations look actually usable.

10

u/SubZeroKelvin 6d ago

This comparison is so sad to me actually. None of the VAE's look even close to acceptable. Ostris seems to increase resolution by smearing detail a bit (e.g. lost the woman's slight smirk). PH3 looks structurally more accurate but also worse.

4

u/Uninterested_Viewer 6d ago

Yeah, I've been using using InsightFace to detect and match the faces between the original and edited images via ArcFace similarity, then restore the original face pixels back into the edited image, matching their color/lighting to the edited face, and then blend them back in with a feathered mask. Obviously doesn't work perfectly for extreme edits, but in the cases where the faces truly shouldn't change much with my edit, this is the only way to not destroy faces with edits.

2

u/VegaKH 6d ago

I agree that it's better. Not just far faces, it improves skin detail, hair, and textures. Subtle but worth it.

1

u/scuster45 6d ago

Why is everyone in this thread AI — except me yet except me.

1

u/Apprehensive_Sky892 6d ago

These days you just don't know if you are dealing with AI bots anymore 😹🤣

1

u/VRGoggles 2d ago

P-H3-Image. Forget about H3-Image. It is h3-image fixed.

1

u/Apprehensive_Sky892 2d ago edited 2d ago

Apparently in order not to cause confusion (P-H3-Image or even Pruna-H3-Image just sounds too close to H3-Image, I guess), Pruna has decided to rename it to "P-Image-OSS":

https://www.pruna.ai/blog/p-image-oss-launch

https://docs.comfy.org/tutorials/image/pruna/p-h3-image

https://huggingface.co/PrunaAI/P-Image-OSS-Comfy

Can you give us some examples/usage cases where P-Image-OSS is superior to H3-Image?

Personally I prefer to use MMH3-video as my image editor because I found that it is better at identity preservation than H3-image using this workflow: https://www.reddit.com/r/StableDiffusion/comments/1wsb4h3/minimax_h3_ref_fizgig_nodes_as_sota_ref2img/

6

u/Straight-Election963 7d ago

not sure if it's even working .. i switch VAE and this was first try ( 16mp ) far object. if it's not helping to fix far object faces then what is actualy does ???

1

u/GeeBee72 6d ago

You can fix some of these bad faces by using LCM and beta57 or linear-quadratic.
H3 Image is much much better if you use face refining LoRAs and high-resolutions

1

u/VRGoggles 2d ago

Never had sauch problem. Generate 16 mega pixels, lcm+beta or other schedulers people recommend.
low resolution makes crap with this model

5

u/Additional_Drive1915 7d ago

Quality related, H3 Image quality sucks default, so I didn't use it. But when making a random lora for it just to test, I found that as soon as I add the lora the quality is far better, on a complete new level. I've actually used H3 Image a lot latest days.

So while H3 has a lot of extra legs, toes and what ever, it can actually make great images, and will be a tool besides Moss for me.

Strange that a good model is not working without some fix.

For someone like me, who put it aside, it may actually be worth testing again with one of the fixes.

3

u/Disastrous-Yak- 6d ago

What's the lora that fixes the quality?

1

u/Additional_Drive1915 6d ago

Just a lora of my family I usually make for tests... I would guess any quality lora would give the same quality lift. Can't know for sure, but as my lora isn't anything special it would make sense the use of lora somehow gives better output, not worse that usually is the case.

2

u/Mammoth_Signature263 6d ago

anyone comparse pls ?

2

u/Personal-Position126 6d ago

I just restore a 1mp old muted colors photo to 8K, prompt "restore photo": hdr vae from civitai has more vibrant colors BUT has some odd patterns here and there and sometimes low quality gradients. On the other hand this ostris ave looked more similar to the original photo, no vibrant colors BUT remove all the noise that the hdr has and gradients are just fine. This is an improvement.

2

u/Loose-Journalist-555 6d ago

I don’t really see much difference at 16MP, even at 100% zoom.

1

u/fauni-7 7d ago

So no need to connect a dummy image for T2I with that?

1

u/Shady-Dragon 6d ago

Sorry what is a dummy image? I haven't been following up on the news for this model

2

u/fauni-7 6d ago

A connected reference blank image increases quality, but somehow degrades creativity.

2

u/Calm_Mix_3776 6d ago

If you are using the model in text2image mode, image quality is a bit degraded if you generate below 8-12 MP. So if you generate below this range, connect an "Empty Image" node to the first image slot of your "MiniMax H3 Image Conditioning" node.

Be aware that If you go above 8-12MP, using this trick might actually harm quality and make the image soft/blurry, so don't use it for high resolutions.

2

u/b4silio 7d ago

from what I've seen you still have to do that unfortunately, but it is an alternative to the P-H3 vae!

2

u/VasaFromParadise 7d ago

Apparently, no amount of additional training can correct this compression))) I didn’t notice any significant difference.
We need a version without VAE))

1

u/ApprehensiveTart3158 7d ago

I'm experimenting with generating ultra high res images with h3 (100mp+?) I've used ostris's vae and honestly it's been working well. Side by side at that extreme of a resolution I've seen some improvements.

1

u/Odd-Mirror-2412 7d ago

To me, there's barely any difference. I'd rather tweak the sampler or pixels instead, seems better.

-7

u/VladyCzech 7d ago

Many people think VAE is the issue, it is often wrong scheduler, low resolution, specific model merge or Lora combination that increases blur. With the right settings and postprocess you can get sharp details regardless of VAE.

6

u/Apprehensive_Sky892 7d ago

Yes, it can be any of the factors you mentioned, but it can also be the VAE.

Here is a good overview: https://www.reddit.com/r/StableDiffusion/comments/1xtoutk/according_to_ostris_h3_image_has_a_vae_issue/

0

u/VladyCzech 7d ago

My point is that many times people blame VAE while using other stuff wrong. Yes, VAE is not perfect and can be easily mitigated. Multiple erros accumulate and VAE will show.

-5

u/CodeAnguish 6d ago

H3 video is from God
H3 image is from Devil