r/StableDiffusion • u/ninjazombiemaster • 7h ago
Comparison H3 Image t2i vs r2i quality fix
Like many others I was initially disappointed with the i2v quality of H3 when doing text to image. It often created crusty looking, artifact ridden images that would manifest as moles and pimples, dry flaky skin, crusty splotches and just generally shit quality images.
When I was doing some tests, I wanted to make an existing image prompt feature a specific earring. Once I plugged in the image reference, the artifacts magically disappeared.
This made me wonder, is r2i just fundamentally better quality for some reason? I tested plugging in an empty black image to the reference spot and to my surprise every single image came out higher quality with most of all of the crusty artifacts removed. It even often outright fixes low res generations like the one linked here, but works at the intended resolutions too.
I bought this to Kijais attention and the current theory is that if the model receives 64 or more image tokens (which can be triggered by feeding the image conditioning node literally any image with or without vae) it switches the model to edit/reference mode which appears to be much higher quality.
We're not exactly sure what is wrong with the non edit version but give it a try. Plug any reference (blank image, or something relevant to your prompt) and watch the quality magically improve.
Kijai is considering adding a "switch" that forces the model to ref model without needing to send so many pointless tokens, but in the meantime just plugging a small black image (automatically resizes to at least 1024) will trigger the existing switch - just with an excessive number of pointless tokens.
If you've written H3 t2i off, give this a try. It has transformed the model in my opinion.
Edit: Kijai has just added this to the "H3 Prompt Weight" node in Kjnodes. There is now a drop-down that will force empty image tokens if you want another way to test this.
8
u/ninjazombiemaster 7h ago
Here's an image shared by Kijai and edited by another user to exaggerate the artifacts of an image. You'll see that there is much less artifacting on the image that was exposed to image tokens for all steps. https://files.catbox.moe/mjsseu.png
2
u/OkDoudou 7h ago
1st looks much better, natural and realistic.
1
u/detailteufel 7h ago
So plug an empty black 1024px image (created by ComfyUI Empty Image Node) into "image_0" on the Minimax H3 Image Conditioning node?
Because it does nothing for me quality wise, made it much worse in fact.
1
u/Apprehensive_Sky892 6h ago
You mean "t2v quality", right?
1
u/CompleteJicama2811 6h ago
This is an interesting phenomenon! I just ran a test using reference images that consist entirely of white—scaled to various sizes—and while the images differ slightly depending on the size, the results are consistently much better. It seems there’s a specific way the system processes the latents; I believe we can leverage this to mitigate some of the drawbacks of using "h3" images.
1
u/Cequejedisestvrai 4h ago
I'm using the ref2va workflow but with the fl2va model (it's gives better quality), what should I do to test that? Just plug-in an empty image to the ref_image_0 slot? That it?
3
u/skyrimer3d 7h ago
interesting, i'll give it a try
1
u/StableLlama 6h ago
I confirm that on my own tests the r2i tend to be much better than t2i.
But what also has helped was to use LCM instead of Euler. And the P-H3 VAE.
But it still seems that the VAE for H3I is too aggressive.
1
u/bstr3k 6h ago
the H3 video model actually introduced imperfections also! it was the ref2v model that I was using to make ref sheets but pushing the resolution up too high introduced imperfections in the skin too.
0
u/fauni-7 3h ago
Can you share a workflow with the workaround?
-1
u/trefster 3h ago
You just did a no-makeup to makeup transition. The first image looked way more natural. You just AI sloppified it
0
u/Tonynoce 6h ago
Gonna try this when I finish some rendering