Nodes/ComfyUI-Conditioning-Rebalance/Load LoRA H3 Image (Block)
ComfyUI Node

Load LoRA H3 Image (Block)

One LoRA, a slider per block, and a Scan button that hides the rest

By nova452·Created 5 months ago·Updated 4 days ago· 555
Load LoRA H3 Image (Block)
  • model
  • model
◄lora_name▾►
◄strength1.00►
◄video_patch_proj1.00►
◄condition_proj1.00►
◄time_embedder1.00►
◄token_refiner_blocks_01.00►
◄token_refiner_blocks_11.00►
◄token_refiner_final_norm1.00►
◄blocks_01.00►
◄blocks_11.00►
◄blocks_21.00►
◄blocks_31.00►
◄blocks_41.00►
◄blocks_51.00►
◄blocks_61.00►
◄blocks_71.00►
◄blocks_81.00►
◄blocks_91.00►
◄blocks_101.00►
◄blocks_111.00►
◄blocks_121.00►
◄blocks_131.00►
◄blocks_141.00►
◄blocks_151.00►
◄blocks_161.00►
◄blocks_171.00►
◄blocks_181.00►
◄blocks_191.00►
◄blocks_201.00►
◄blocks_211.00►
◄blocks_221.00►
◄blocks_231.00►
◄blocks_241.00►
◄blocks_251.00►
◄blocks_261.00►
◄blocks_271.00►
◄blocks_281.00►
◄blocks_291.00►
◄blocks_301.00►
◄blocks_311.00►
◄blocks_321.00►
◄blocks_331.00►
◄blocks_341.00►
◄blocks_351.00►
◄blocks_361.00►
◄blocks_371.00►
◄blocks_381.00►
◄blocks_391.00►
◄blocks_401.00►
◄blocks_411.00►
◄blocks_421.00►
◄blocks_431.00►
◄blocks_441.00►
◄blocks_451.00►
◄blocks_461.00►
◄blocks_471.00►
◄blocks_481.00►
◄blocks_491.00►
◄final_layer_adaln_proj1.00►
◄final_layer_norm1.00►
◄final_layer_video_out1.00►
◄scan_json{}►

A LoRA has one strength slider in stock ComfyUI, and that slider is a lie of convenience: it scales every weight in the file by the same number. This node replaces it with one slider per block group for MiniMax H3 Image, which means you can keep the part of a LoRA you like and quietly switch off the part you don't.

The reason this particular node is the friendly one in the pack's block-loader family is the button. Sixty sliders is unusable. Sixty sliders where the frontend has crossed out the fifty-five your file doesn't contain is a tool.

Why you'd reach for it

Three things, all of them real. A LoRA that nails the look but drags a watermark or a colour cast into everything - turn the tail blocks down and keep the middle. A LoRA at 1.0 that's too strong but at 0.6 stops doing the thing you wanted - cut the block that's overreacting instead of the global strength. Or you're training and you want to know, mechanically, which blocks a LoRA actually touched.

That last one is worth dwelling on: scanning a file and seeing "this LoRA only exists in blocks 20–40" tells you something about how it was trained that no sample grid will.

How it works

Scan Blocks is a frontend button that calls a small server route the pack registers (/rebalance_pack/h3_lora_blocks, variant=image). The route reads the LoRA's safetensors header - key names only, no tensors loaded - normalises them into H3 Image's native module names, and reports which block groups are present. The JS then hides the widgets for groups that aren't there and stashes the result in the scan_json widget so a saved workflow remembers the last scan.

At run time the node loads the file, maps keys against your model with ComfyUI's own LoRA loader, and patches each module at strength × that group's weight. Groups not in the scan get 1.0. A group at exactly 0 is skipped entirely rather than applied at zero.

The groups cover H3 Image's layout: video_patch_proj, condition_proj, time_embedder, the two token_refiner_blocks, token_refiner_final_norm, blocks_0 through blocks_49, final_layer_adaln_proj, final_layer_norm, final_layer_video_out. Diffusers-style transformer_blocks.* and Kohya's flattened underscore keys are renamed into that scheme, so a foreign-trained file still lands correctly.

H3 Image, for context, is the H3 DiT without the audio stream - same architecture, no audio_patch_proj, no final_layer_audio_out.

The inputs that matter

model and lora_name are the obvious pair. strength is the global multiplier on top of every block weight, -10 to 10.

Every block slider defaults to 1.0 - the opposite of the folder loaders in this pack, and the right call here. Drop it in, pick a LoRA, get exactly the behaviour you had before. Then start subtracting.

scan_json is a string widget you should never type into. It holds the last scan result; the button maintains it.

One output: model, to your sampler.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/nova452/ComfyUI-ConditioningKrea2Rebalance
# restart ComfyUI

Nothing else - no requirements.txt, no downloads, no helper libraries. Manager users: search ComfyUI-Conditioning-Rebalance (the repo was once Rebalance-Pack; same code). Node lives under loaders.

One install-adjacent note that matters more here than elsewhere: the Scan button is drawn by the pack's web/js frontend, so clone the whole repo and restart ComfyUI. If you copied .py files across by hand, or your browser is holding an old cache from a previous version, the button simply won't be there and you'll conclude the feature is missing. Hard-refresh before you file a bug.

Where people get burned

Stale scans. Swap lora_name and the widget set stays as it was for the previous file until you scan again. The weights you're moving might not exist in the new LoRA.

Silent no-ops on both ends. strength at 0 returns the model untouched, and a block at 0 is skipped, not applied at zero. Neither tells you anything went wrong.

Expecting the scan to be a diagnosis. It reports which groups are in the file, not whether the LoRA is any good, and not whether it matches your model - a Krea 2 LoRA scanned against the H3 Image group list will come back with a handful of other-ish matches and no useful sliders.

Start conservative: scan, then take blocks_40+ down to 0 and see whether the thing you disliked was a tail-block artefact. Fixed seed, one change per run. That's the whole method.

Categoryloaders

Inputs (63)

NameTypeDefaultDescription
modelMODEL—
lora_nameCOMBO0 options:
strengthFLOAT1.00-10–10Global multiplier on top of every block weight.
video_patch_projFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
condition_projFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
time_embedderFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
token_refiner_blocks_0FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
token_refiner_blocks_1FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
token_refiner_final_normFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_0FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_1FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_2FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_3FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_4FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_5FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_6FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_7FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_8FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_9FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_10FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_11FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_12FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_13FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_14FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_15FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_16FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_17FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_18FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_19FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_20FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_21FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_22FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_23FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_24FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_25FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_26FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_27FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_28FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_29FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_30FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_31FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_32FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_33FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_34FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_35FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_36FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_37FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_38FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_39FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_40FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_41FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_42FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_43FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_44FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_45FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_46FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_47FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_48FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
blocks_49FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
final_layer_adaln_projFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
final_layer_normFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
final_layer_video_outFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
scan_jsonSTRING{}Last scan result, filled by the Scan Blocks button.

Outputs (1)

NameTypeDescription
modelMODEL—