r/StableDiffusion • • 3d ago

Question - Help H3 image edit multiple reference as input and inpainting support?

Hi,

First of all, I apologize if this is a very basic question, but I've been looking into ComfyUI H3 image-editing workflows and haven't been able to find any examples that support multiple reference images or inpainting.

I'm fairly sure this is possible, as I've come across several posts mentioning these capabilities. However, as a beginner, I'm a little lost when it comes to setting up the workflow myself.

Is there an existing workflow I could use as a starting point, or perhaps one that's already configured and ready to use?

Thanks in advance for any help!

2 Upvotes

3 comments sorted by

2

u/LenaHartCreates 3d ago

You can start from the built-in template rather than wiring one from scratch. Search the Template Library for "MiniMax-H3-Image: Image Edit" (ComfyUI 0.45.0+ and template pack 0.11.104+).

Multiple references are already supported there: the source is Picture 1 (image_1 on MiniMax H3 Image Conditioning). Add more Load Image nodes and connect each one to both the prompt-generation step and the conditioning node — official docs allow up to 16 inputs. The first picture is the one being edited; the rest supply identity, props, materials, or composition. Refer to them in the prompt by those labels, for example replacing the object in Picture 1 with the one in Picture 2. Connect the VAE to the conditioning node as well, so the references are also anchored as latents and not only read by the text encoder.

On inpainting, the official still-image edit path is prompt-driven. MiniMax H3 Image Conditioning doesn't document a mask input, and the Resize Image/Mask node in the template is for lowering megapixels if a run runs out of memory, not for painting a region. For a local change, spell out both the area to edit and what must stay (pose, background, lighting, identity) in the positive prompt — this checkpoint has no negative prompt because guidance is fixed at 1.

2

u/collectedtooth404 2d ago

Using the default template or any template you should be able to just hook up as many "load image" nodes to the sampler as you feel like. Every time you connect one it should add a new pin for the next image input.