EditUtils: Minimax H3 Image Output Extractor lrzjason
Reading what H3I actually got
- custom_output
- pad_info
- main_image
- vae_images
- ref_latents
- full_prompt
- no_refs_cond
- mask
- minimax_refs
- target_size
The encoder hands you a custom_output blob - an ANY socket holding a Python dict of everything it built. Fine if you enjoy poking dicts. Useless in a graph. This node unpacks it into nine typed sockets, and two of them are the ones that'll save you an hour: target_size and minimax_refs.
What it's for
MinimaxH3ImageOutputExtractor_EditUtils takes custom_output (required, and the only input) and breaks it out. Nothing clever happens inside - it's a dict reader. The value is that you can now see the intermediates: wire target_size to a text preview and you know your megapixel count before you wait out a render; wire minimax_refs to a display node and you know whether the encoder produced one reference or three.
In a route where the failure modes are all size and reference related, being able to inspect them is most of debugging.
The outputs, and what each is good for
pad_info- the padding bookkeeping. H3-Image's defaultref_crop="disabled"path doesn't pad, so this is mostly relevant when you deliberately switched topad. Use it if you're cropping back afterwards.main_image- the picture being edited, as pixels. Handy for side-by-side previews, or for aSaveImageof the input to keep the comparison honest.vae_images- every image the VAE encoded, as a list.ref_latents- the latent you'd pass on in areference_latents-style workflow. H3I doesn't consume that key - its references travel onminimax_refsinstead - so treat this as inspection, not wiring.full_prompt- the text that went in. For H3-Image this is your prompt as typed; the"Picture n: "labels are inserted inside the tokenizer, not by the string. So a preview here won't show you the labels, and that's expected rather than a bug.no_refs_cond- the same text conditioning with no reference latents attached. Genuinely useful for A/B work: run the same prompt and seed through the sampler with and without references and you'll see how much the images were actually doing. It is not a substitute for the negative - the checkpoint wants aConditioningZeroOutof the positive there, since CFG is baked in at 1.0 anyway.mask- the noise mask. On this route it'sNone: H3-Image has no per-pixel denoise mask, and the encoder warns and drops anything you wire in.minimax_refs- the exact list handed to the model: one entry per reference, each withkind,latent_h,latent_wand the 24-channel latent. This is the honest answer to "did my second image make it?"target_size-[width, height]in pixels for the latent the sampler will denoise. If this says 1024×1024, you're about to make a poster-looking image and you should raisescale_upbefore hitting queue.
How it fits the graph
MinimaxH3ImageEditTextEncode_EditUtils
├── conditioning ──► KSampler positive
├── latent ────────► KSampler latent_image
└── custom_output ─► MinimaxH3ImageOutputExtractor
├── target_size ──► text preview
└── minimax_refs ─► inspection / count
It's an optional node. The example workflow doesn't use it; you add it when something is off.
Installing
cd ComfyUI/custom_nodes
git clone https://github.com/lrzjason/ComfyUI-EditUtils
# restart ComfyUI
Manager users: search ComfyUI-EditUtils. No pip dependencies, because the pack ships none - it's pure ComfyUI-core glue. The route itself was added in the November 2026 update, so on an older ComfyUI you'll have the node and no working model.
Common issues
Everything is empty. You're almost certainly feeding it a custom_output from a different family's encoder. The extractor reads H3I-specific keys: a Flux or Qwen custom_output has no minimax_refs and no target_size, so those sockets come back empty rather than erroring. Each family has its own extractor in this pack - QwenEditOutputExtractor_EditUtils and friends - and they are not interchangeable.
full_prompt is missing the picture labels. Expected. The labels live in the token stream, not in the prompt string; H3I's tokenizer constructs them from the vision copies. Don't "fix" it by typing Picture 1: into your prompt - that gets you the label twice.
target_size looks right but the result still soft. 4 MP on a 1:1 square is fine; 4 MP on a very wide or very tall canvas may not be. Check the aspect you drew for matches the aspect you asked for.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| custom_output | ANY | — |
Outputs (9)
| Name | Type | Description |
|---|---|---|
| pad_info | ANY | — |
| main_image | IMAGE | — |
| vae_images | LIST | — |
| ref_latents | LIST | — |
| full_prompt | STRING | — |
| no_refs_cond | CONDITIONING | — |
| mask | MASK | — |
| minimax_refs | LIST | — |
| target_size | LIST | — |