r/StableDiffusion • • 5d ago

Question - Help Minimax H3 Image editing using mask

Hi,

I've been trying to find a comfyui workflow to edit images using mask with Minimax H3 Image. As i've got AMD Rx 9070 16 Gb VRAM + 32 Gb RAM, I need a workflow that will work with these on Windows. I've tried various models, but they regenerate the whole image. I've heard Minimax H3 Image is the best editing model at the moment and that there is a dedicated workflow for partial image editing using a mask, but I can't find it. Can somebody please share a 100% working solution? Krea 2 workflow will also be good.

8 Upvotes

5 comments sorted by

1

u/No_Literature6731 1d ago

Ended up using a qwen edit workflow. Seems to be working pretty nice with my hardware. Switching to unchained text encoder and diffusion models gives decent results

4

u/heshiming 5d ago

You don't need a workflow. You can follow these steps:

  1. Draw your mask
  2. Drag the mask output, when it lands, choose "Convert Mask to Image" node
  3. Drag the image output to the 'image_2' of your Minimax H3 Image conditioner, the official image edit workflow has a number of input images you can attach to

For the prompt: Replace the area marked white in <Picture 2> with ... Keep everything else in <Picture 1> intact.

(This is based on the official comfyui minimax h3 image edit workflow)

It's a bit tricky and it doesn't work every time. And if it doesn't work, many people recommend that you use a colored brush (red) to paint over the region entirely. Then prompt: Replace the red object in <Picture 1> with ... . Keep everything else intact. In this case, you don't need a second image, no mask output necessary.

I have to also say that minimax h3 image is not a good image editor, it tends to make the image noisy/dirty every time. Qwen Image 2.1 is far better.

1

u/Enshitification 5d ago

If you are getting noisy edits, you are probably using the wrong sampler. LCM is not noisy with H3-Image.

1

u/PropagandaOfTheDude 4d ago

LCM probably has no bearing here.

LCM is the one sampler that fixes the noise problem in "pure T2I". But people also bypass the entire model flaw by injecting enough image tokens to flip H3-Image into edit mode, creating a "Ref2I with an unimportant ref" scenario. Then the other samplers work fine.

If OP is doing Ref2I from the get-go, then there should be no T2I-style failure for LCM to fix.

0

u/Enshitification 4d ago

I find Euler noisier with both t2i and ref2i.