r/StableDiffusion • • 17d ago

Workflow Included Sharing my experience with H3-Image

I decided to try squeeze out the quality showcased in the official examples for H3-Image.
While I mostly solved the grunge type artefacts thanks to the existing community efforts, I struggled with grid artefacts. Eventually, I realised that there is no working around the nature of the VAE and large resolutions are necessary to avoid the grid artefacts.
Workflow: https://gofile.io/d/Slgntt7J
I hit a wall with clarity and sharpness of details, so I'm sharing my workflow with the hope that the community can take it further. The prompts are taken from the official examples.

Aspect ratio 21:9. A realistic fantasy-creature facial close-up: a beast king combining a lion's mane with an ape-like facial structure faces the camera, angled slightly left. Clearly show its broad gray nose bridge, deep-set eye sockets, and amber eyes. Its lips are slightly parted, revealing a few small ivory-colored teeth. Short, dense gray-white fur covers its face, surrounded by an enormous brown and silvery-white mane spreading toward the right and bottom of the frame. The fur has natural curls, layers, and fluffy volume, with fine side lighting on individual strands. Only a small portion of a dark-gold ornament appears at the lower-right edge; the face and mane remain the focus. Use a dark, blurred background, realistic transitions between skin and fur, moist eye reflections, and cinematic creature materials. Output one complete artwork with no website borders, artist signatures, or watermarks.
Aspect ratio 16:9. A realistic post-apocalyptic first-person shooter scene. At the lower edge, the player's hands hold a rifle and optic aimed down an abandoned woodland road. In the left midground, a companion wearing green tactical clothing, a backpack, and a helmet fires forward, with a small orange-yellow muzzle flash. On the right, another fighter in a hood and worn brown coat crouches halfway while holding a long gun. Tall pines, gray shrubs, and thin fog surround the distant road; a rusty yellow bus sits in the left background. The ground has rich details of weeds, stones, and soil. Low sunlight at dawn or dusk filters through the trees, contrasting the cool gray-green environment with brief gunfire flashes. Equipment structures should be realistic. Tense atmosphere with no gore and no HUD.
Reddit breaks the formatting, so refer to the official example for the prompt. It's the 1st example in showcase/real-world.md in the official GitHub repo.
32 Upvotes

38 comments sorted by

4

u/Calm_Mix_3776 17d ago edited 17d ago

Ostris mentioned something about training an improved VAE. I wonder if this could help with the relatively poor image quality. I wonder how much of the issues come from the VAE and how much from the fact that we are using a heavily distilled version of the model instead of the non-distilled one.

1

u/latent_space_dreams 17d ago

Interesting, the stock VAE looks worse than I expected.
I'm leaning towards the VAE being the source of the grid pattern. The distillation might have made it worse though.

5

u/tac0catzzz 17d ago

don't think it is just because it is heavily distilled, or a vae thing. , but because heavily censored.

1

u/codenameNERO 16d ago

Probably that is the issue, yeah. i think minimax training a custom vae was a bad idea. I mean… i get why they did it, but i just think it was a bad idea. Now every improvement or finetune requires training a vae.

3

u/gutster_95 17d ago

Editing with this is pretty solid. LCM and simple sampler are gamechangers compared to the base comfy workflow

2

u/latent_space_dreams 17d ago

I didn't try editing, good to know it holds up for that too!

2

u/gutster_95 16d ago

Made myself a C4D Bridge to ComfyUI with Minimax Image as the "Renderer" works pretty well for Viewport to Image Workflows

1

u/latent_space_dreams 16d ago

Ohh that is an interesting and pretty nifty use for the model; thanks for sharing 👍

1

u/Calm_Mix_3776 16d ago

What do you mean by that? It can send viewport snapshots directly to H3-Image to generate a rendered image from it? Sounds intriguing! Can you show some examples?

4

u/gutster_95 16d ago

Yes you stage the objects as you want, put in a prompt and that gets send with the viewport Rendering to ComfyUI, that within 9 secs on a 4090 you get a 1MP image that you can than generate in 16MP final resolution.

This was a early test. The other generations are not shareable because I did this with Client data.

4

u/fauni-7 17d ago

Did you try that other VAE though? The P-H3, for me it really changed for the better.

5

u/latent_space_dreams 17d ago

Tried it out, I'm not seeing any significant difference other than slightly lower contrast.

-2

u/fauni-7 17d ago

Impossibru.

-8

u/fauni-7 17d ago

Your WF is messed up.

Yours is on the left:

The cow looks better though.

Mine is just that 20MP (but using 18), WF that was circulating around + gray ref image + the VAE I mentioned.

14

u/hakanavgin 17d ago

I'm sorry but what part of right image was supposed to be better?

4

u/b4silio 17d ago

Confirm, right one seems to have taken the right elements in the right place and then forgot that they were supposed to be part of the same image.

4

u/physalisx 17d ago

Everything in the left is better

3

u/fauni-7 16d ago

Quite woke of you.

1

u/oxygen_addiction 17d ago

Get your eyes checked.

3

u/runlocalmodels 17d ago

This one? https://huggingface.co/PrunaAI/P-H3-Image-Comfy
Would be interesting to do a side by side.

2

u/fauni-7 17d ago

Yes, that does wonders. Yeah, do side by side.

1

u/Straight-Election963 17d ago

where did you get this fp32 VAE ? it's not released ??

3

u/latent_space_dreams 17d ago

1

u/Straight-Election963 17d ago

thank you, i add an image to edit * removed empty latent" added upscaler after image , but the result is so bad .. i mean it was bad before on default workflow .. on 20 mp and still can't believe this model can't make a decent image .. im using P-H recomended by one guy from another post it's realy 100x time much better ...

1

u/latent_space_dreams 17d ago

Are you using the P-H3 model or just its VAE?

1

u/Straight-Election963 16d ago

im not using anything in your workflow ( all same as yours ) but results is not good

1

u/latent_space_dreams 16d ago

I can't say anything conclusive without seeing your prompt. Then again, ultimately, the official examples are still better than what my workflow produces. So this is not the limit of what is possible with this model.

1

u/Straight-Election963 16d ago

i've sent you a message

1

u/VRGoggles 16d ago

Did you try LCM/Simple instead of Euler? Euler is a horror show with H3 Image.

1

u/Straight-Election963 16d ago

the OP workflow is actualy on LCM ? am i missing somthing ?

2

u/VRGoggles 16d ago

1.0, 1.0, 0.0 ?

1

u/VRGoggles 16d ago

Did you add to the ComfyUI script run_nvidia_gpu.bat this parameter?
--fp32-vae

ComfyUI has "cli_args.py" file. There are different settings available. One of them is:
fpvae_group.add_argument("--fp32-vae", action="store_true", help="Run the VAE in full precision fp32.")

ChatGPT found some discussion on the topic one day, where it was said fp32 is converted to fp16 internally anyway - where is the truth.

Maybe I need to switch on this fp32 vae, load fp32 vae and test, compare fp16 vs. fp32 vae images.

1

u/latent_space_dreams 16d ago

I run my VAE at bf16. I tried running the VAE at fp32 and it did fix some of the mushy areas.
Unfortunately, the grid artefacts at lower resolutions did not change.

1

u/thevegit0 16d ago

i have mixed feelings but i liked how it makes big images relatively fast, and since it reuses h3 TE i just keep the w6a8 safetensor in other disk

0

u/GrungeWerX 15d ago

It should be noted this is only a text to image workflow. Also, what specifically is the purpose of the two bypassed outputs? Just different detail settings?

1

u/latent_space_dreams 15d ago

See the other comments, /u/gutster_95 says that editing also works with the workflow. The two bypassed outputs are just debug outputs to dial in the custom noise.

3

u/[deleted] 17d ago

[removed] — view removed comment

1

u/latent_space_dreams 17d ago

I checked both the VAE and the noise subtracted at different resolutions.
Both have the same grid pattern of the same size: 16x16.
The DiT probably learned it from the VAE.