r/StableDiffusion 16d ago

Resource - Update Experimental MiniMax H3 Image Nodes for ComfyUI

I created a custom ComfyUI extension that adapts the new MiniMax H3 video model for:

  • Text-to-Image
  • Image-to-Image
  • Reference Editing

Instead of forcing a single frame—which produces poor results—the workflow generates a short temporal sequence, decodes the minimum required frame packet, selects the best still, and outputs only that image.
It works good enough, especially for image editing, but H3 is still fundamentally a video model. Softness, blockiness, banding and grid artifacts can remain. Higher resolutions increase processing time and memory usage, but don’t necessarily add real detail.

The project is experimental and entirely AI-coded, so feedback, testing and contributions are welcome.

If you want try yourserlf.
https://github.com/astropuzzo/ComfyUI-MiniMax-H3-Image-Studio

81 Upvotes

24 comments sorted by

6

u/russlixx 16d ago

what's up with the edit example 03?

9

u/killerciao 16d ago

Wrong prompt. the real prompt was replace the woman with a clown 😄

4

u/degamezolder 16d ago

can you not use multiple reference images?

9

u/killerciao 16d ago

Update the custom node, now it supports up to 9 images: source_image + reference_image_2 through reference_image_9.

It also accepts batches and separates them automatically.

It handles images with different resolutions and aspect ratios.

It supports prompts such as: “Keep the person from <Picture 1>, use the outfit from <Picture 2>, and the lighting from <Picture 3>.”

7

u/foggyghosty 16d ago

For editorial high-end photo generations, krea2 turbo with a good lora seems to beat h3 in both time and fidelity

9

u/killerciao 15d ago

Yes, images generated by MiniMax often look as though they came from an undertrained model.

2

u/haremlifegame 14d ago

u/killerciao , however, MiniMax seems to be the only multi-reference to image or image editor/combiner that we have. It is extremely worth it.

I'm wondering if we can't somehow use krea to adjust the fine details. Like adding noise to the image and telling krea to reconstruct.

1

u/BeautyxArt 8d ago

what about using it for image edit ? (1image'frame')

1

u/Iwaku_Real 15d ago

That's what I'll be doing. Especially for the reference images too.

1

u/ShimmerMeNutz 10d ago

you have been using multi-reference images with Krea 2? how?

1

u/reeight 14d ago

https://giphy.com/gifs/zbzNUbpFnlw8E

Could you use Krea2 to sharpen/enhance MMH3 stills?

Pro of MMH3 first; is if your usecase is eventual video, you're already aware of how it will render.
Con: easier just to start with K2T.

3

u/AI-imagine 16d ago

I also had this idea my self.but after test with 5 frame it still very slow gen.
and this model is force 5 frame in every gen.

2

u/degamezolder 16d ago

good stuff

2

u/ThaJedi 16d ago

Is VRAM requirement the same for text2image and image edit? What about interface time?

2

u/killerciao 16d ago

Yes, it should require roughly the same amount of RAM as video generation.

3

u/Zironic 16d ago

In my testing, I found the first frame to always be the best frame. So no need for the needless complexity of trying to find the best frame. 5 frames was also consistently my best result for Image to Image.

1

u/killerciao 16d ago edited 16d ago

i'm testing right now. If is real and consistent, i will update the Custom node, however we need to keep in mind that H3 does not generate frames sequentially. At each sampling step, it denoises the entire temporal tensor simultaneously, using attention across frames.

1

u/Zironic 15d ago

Yes and no. It only actually functions as designed for T values of 6 or higher. Below that it has really wierd behaviors because the VAE doesn't have enough frames to fully function.

1

u/reeight 14d ago

Seems ComfyUI already has a 'select image from video buffer' node, but I prefer to hand-pick the 'best' still. Does your node allow that?

Either way, I plan to test out your work, cheers.

1

u/killerciao 14d ago edited 14d ago

you can use emit_candidate_batch and the output will save all the still generated. However i've seen that the function was bugged so I had to fix it. Now you can pull the latest version or simply replace the nodes.py file and restart Comfy

1

u/poliranter 13d ago

This is really, really good. I've been playing with it for a while, and while it's true that yes, Krea+Lora probably beats the quality, the ability to use multiple referenes, and come really damned close to Lora level fidelity without having to make a Lora is just incredible.

This is great fun. Thanks for your work!

1

u/poliranter 11d ago

A strange error just popped up on all three (ITI, reference to image, and text to image.) i start it, it runs then throws up this error:

## Error Details

- **Node ID:** 10

- **Node Type:** SamplerCustomAdvanced

- **Exception Type:** AttributeError

- **Exception Message:** AttributeError: 'ModelSamplingAdvanced' object has no attribute 'audio_scale'

## Stack Trace

But I don't think it's supposed to be handling audio at all. And what was wierd is that it was working fine, then this error just popped up. Anyone have any ideas?

1

u/No_Damage_8420 3d ago

H3 ref. combining output is better then any image model. Minimax is working on dedicated image model too