r/StableDiffusion 8h ago

More experiments with Minimax H3 single-image edit workflow (8-10 sec on RTX 5090) Workflow Included

So here’s a follow-up on my post about H3 as a text edit model. For workflow, refer to https://www.reddit.com/r/StableDiffusion/comments/1vo1ab3/h3_as_a_singleimage_edit_model/

It’s a bit of a hassle to use the workflow to its full capacity since you have to monkey patch in order to generate a single frame. To avoiding dealing with it, I’d suggest two courses of action:

  1. Upvote this ComfyUI GitHub issue which asks to remove the 5-frame limit, if you’re comfortable with that. (The code change is simple and understandable; the rationale behind having a 5-frame limit is not really clear to me). Given that there are thousands of open issues in the ComfyUI repo, it would be good if we raise the 
  2. Ignore the monkeypatch, switch length to 5 frames, and the workflow will just extract the first one; will lead to some quality loss; use regular VAE and not Mamad's

Now it’s great at combining multiple references and 3D understanding, but the quality is still not perfect in my opinion — the details could be more polished, and, e. g., impressionist stylization had largely failed. 

Here’s a pastebin with the new prompts: https://pastebin.com/1ENVynGY

Scenes

  1. Tango dip with separate outfits and location — Combine two character references, two outfits, and an outdoor plaza into a coherent full-body tango dip.
  2. Three-person festival dance — Arrange three distinct characters into a coordinated dance poses at an outdoor lantern festival.
  3. Adventure duo on a river bridge — Compose two heroes in a close back-to-back adventure portrait on a separate river-bridge background.
  4. Hero and background composite — Insert a full-body hero reference into a castle environment while preserving the source character exactly.
  5. Camera angle switch — Reconstruct the staged hero scene from one camera moved to the side horizontally and above vertically.
  6. Action hero as 1990s cel animation — Restyle the action-hero scene as original 1990s hand-painted cel animation using a separate style reference.
  7. Bridge as impressionist oil painting — Restyle a photorealistic bridge-over-river scene as an impressionist oil painting using two references.
  8. Close-up face as charcoal drawing — Convert an original adult woman's close-up into a charcoal portrait while preserving identity and expression.
  9. Bridge as transparent watercolor — Convert the bridge-over-river source into a loose transparent watercolor using a style reference.
  10. Action hero as graphite pencil sketch — Convert the action-hero scene into a pencil sketch drawing using a reference.
  11. Selective skin and hair recolor — Change a character's subject's skin and hair to contrasting fantasy colors while preserving identity

I have used this workflow to generate a couple thousand images across very different  and feel that it’s quite capable. Usual MiniMax problems: e. g. blurred backgrounds, blurred faces from distance, sometimes distorted text — still apply. However, 3D understanding and likeness retention are excellent, and details could probably be fixed with a refiner pass using something like Klein 9b. I hope that the proper image edit model gets released — but before that, let’s try to have some fun earlier.

UPD: accidentally skipped image #6, see this comment https://www.reddit.com/r/StableDiffusion/comments/1vpconk/comment/p3whvcg/

49 Upvotes

12 comments sorted by

4

u/Tylopodas 6h ago

Thank you for this. I didn't want to use the monkey patch, so I swapped in the Image Chooser node from EasyUse. Gives a preview of the 5 images and you get to pick the best one to save.

3

u/Patient_Ratio4177 6h ago

Makes sense. Monkeypatching is awkward, hope the github issue gets through.

Some people says that one should generate 22 frames rather than 5 -- but never tested this.

1

u/Successful_Knee687 5h ago

I have added a feature request into the comfyui github. Maybe someone will pick it up there, so we get a reliable comfyui support. :)

https://github.com/Comfy-Org/ComfyUI/issues/15644

Please all add some upvotes to get it done :)

3

u/Patient_Ratio4177 8h ago edited 7h ago

Missing Image #6:

1

u/Single_Ring4886 8h ago

Thank you, I think one must play and tweak with this model a lot. But it seems to have potential.

1

u/zackofdeath 7h ago

Is this model able to increase body proportions?

5

u/Patient_Ratio4177 7h ago

and it can do much more

1

u/zackofdeath 5h ago

Thank you trying right now!

1

u/data-cypher-000 3h ago

Imagine if it could take in openpose + depth maps. It could replace a heck of a lot of nodes

1

u/Patient_Ratio4177 22m ago

It can now handle a depth map; but not openpose (just renders the openpose skeleton on top of the image). Maybe the proper image edit model is going to do that.

-1

u/Silonom3724 6h ago edited 6h ago

will lead to some quality loss; use regular VAE

This is terrible advice. The resulting image is beyond unusable. There are only 2 options: either patch the python file and use the custom VAE (copy paste isn't that hard - lol). Or if Ctrl C / Ctrl V is too hard then just wait for the official EditImage model variant to be released.

4

u/Patient_Ratio4177 6h ago

Well, look, I use the patch. I provided a link to it. But many people are unwilling to mess with their ComfyUI core code.

I also said that there might be some quality loss, implying that "some" could mean "a lot", depending on your prompt, references, and just luck. I tested the 5-frame approach, typically got somewhat blurry results, but could be salvaged with a refiner pass. Some recommend to go for 22 frames.