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

Load LoRA Folder Moss Image (Block)

Stack a Whole LoRA Folder on MOSS-Image Without Frying It

By nova452·Created 5 months ago·Updated 4 days ago· 555
Load LoRA Folder Moss Image (Block)
  • model
  • model
  • report
◄folder▾►
◄methodstack (add)►
◄recursivetrue►
◄strength1.00►
◄video_embedder0.00►
◄text_embedder_proj0.00►
◄text_embedder_blocks_00.00►
◄text_embedder_blocks_10.00►
◄time_embedding0.00►
◄shared_block_modulation0.00►
◄layers_00.00►
◄layers_10.00►
◄layers_20.00►
◄layers_30.00►
◄layers_40.00►
◄layers_50.00►
◄layers_60.00►
◄layers_70.00►
◄layers_80.00►
◄layers_90.00►
◄layers_100.00►
◄layers_110.00►
◄layers_120.00►
◄layers_130.00►
◄layers_140.00►
◄layers_150.00►
◄layers_160.00►
◄layers_170.00►
◄layers_180.00►
◄layers_190.00►
◄layers_200.00►
◄layers_210.00►
◄layers_220.00►
◄layers_230.00►
◄layers_240.00►
◄layers_250.00►
◄layers_260.00►
◄layers_270.00►
◄layers_280.00►
◄layers_290.00►
◄layers_300.00►
◄layers_310.00►
◄layers_320.00►
◄layers_330.00►
◄layers_340.00►
◄layers_350.00►
◄layers_360.00►
◄layers_370.00►
◄layers_380.00►
◄layers_390.00►
◄layers_400.00►
◄layers_410.00►
◄final_norm_video0.00►
◄final_linear_video0.00►
◄video_head_modulation0.00►
◄other0.00►

There's a specific kind of MOSS-Image misery where you've collected forty style LoRAs, they all look good alone, and the moment you chain five loaders together the image goes plastic and the later blocks blow out. Load LoRA Folder Moss Image (Block) was built for that: pick a folder, choose how the files combine, and scale the whole collection through one per-block vector.

The idea

Chaining loaders gives you forty separate strength values and no way to see what's piling up. This node treats the folder as one entity and asks a better question - where in the model should this collection be allowed to act? - then applies that answer across every file at once.

The author's own framing is that the block widgets start at 0.0 on purpose, "so nothing is fired until blocks are turned up - useful when stacking tens of LoRAs whose deltas otherwise blow out the later blocks." That's a design decision, not a bug, and it's the thing that confuses everyone on first use.

How it works

Files are listed from the folder you choose (subfolders too, unless you turn that off), loaded, and mapped through Comfy's LoRA key machinery against your model. The method dropdown decides how the collection becomes one signal before the block vector is applied:

  • stack (add) - every LoRA at full scale, summed. The loud one.
  • average - each LoRA divided by the file count, so at 1.0s you get a true mean.
  • max magnitude (module) / min magnitude (module) - per model module, keep only the file whose delta is biggest (or smallest). Loudest voice wins each module.
  • strongest file only - the file with the largest overall delta, on its own.

Magnitudes are computed from the raw LoRA factors (‖up‖ × ‖down‖ × alpha/rank), mirroring how Comfy scales a delta, so nothing has to be merged into a full weight matrix first. Your block vector then multiplies every applied patch, with strength on top as a master multiplier.

The block groups follow comfy.ldm.moss_image.model.MOSSImage: video_embedder, text_embedder_proj, text_embedder_blocks_0/1, time_embedding, shared_block_modulation, layers_0 … layers_41, final_norm_video, final_linear_video, video_head_modulation, plus an other bucket for keys that don't match anything.

The inputs that matter

  • model, and a folder (picks up (loras root) and any subfolders you've made).
  • method - start on average for a real collection; it's the one that keeps detail instead of saturating. stack (add) is for two or three files.
  • strength - global trim, −10 to 10.
  • The block widgets - forty-odd sliders, all defaulting to 0.0. Everything at zero means the model passes through unchanged.
  • recursive - on by default; turn it off when your folder has a subfolder of experiments you don't want in the mix.

Outputs: model, and a report string. Read the report. It tells you the method, the folder, how many files got applied, which group weights were up, and any file it couldn't find.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/nova452/Rebalance-Pack.git

Then restart. No requirements file, no model downloads - plain Python over torch and Comfy's LoRA code. Manager search is "Rebalance Pack". You need a ComfyUI recent enough to ship comfy.ldm.moss_image; if MOSS-Image samples at all, you're there.

Where people get burned

"It does nothing." Both the block sliders and this node's whole design start silent. All-zero blocks, or strength 0, and you get your model back untouched - the report literally says strength is 0: model unchanged. Raise one block group before you conclude anything is broken.

Wiring the report to nothing. It's the only diagnostic you get. A ShowText or PreviewAny on the report tells you which files were picked up, which is how you discover that recursive skipped half your collection or that a .ckpt failed to resolve.

Treating max magnitude (module) as "best". It isn't. It keeps the biggest delta per module, which can splice five styles into something no one trained. It's a testing tool for finding which single file was doing the damage, not a magic merge.

Forty files at 1.0 is not a recipe. Averaging helps; it doesn't launder a bad set. If three files are the same artist, the mean leans triple toward them, and no block vector fixes that. Curate first.

Categoryloaders

Inputs (57)

NameTypeDefaultDescription
modelMODEL—
folderCOMBO1 options: (loras root)
methodCOMBOstack (add)How the folder's LoRAs combine before the block vector applies.
recursiveBOOLEANtrueAlso load LoRAs in subfolders of the selected folder.
strengthFLOAT1.00-10–10Global multiplier on top of every block weight.
video_embedderFLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
text_embedder_projFLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
text_embedder_blocks_0FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
text_embedder_blocks_1FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
time_embeddingFLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
shared_block_modulationFLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_0FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_1FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_2FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_3FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_4FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_5FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_6FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_7FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_8FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_9FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_10FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_11FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_12FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_13FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_14FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_15FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_16FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_17FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_18FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_19FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_20FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_21FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_22FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_23FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_24FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_25FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_26FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_27FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_28FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_29FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_30FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_31FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_32FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_33FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_34FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_35FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_36FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_37FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_38FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_39FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_40FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
layers_41FLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
final_norm_videoFLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
final_linear_videoFLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
video_head_modulationFLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.
otherFLOAT0.000–1Block multiply across every LoRA in the folder; 0.0 silences the block.

Outputs (2)

NameTypeDescription
modelMODEL—
reportSTRING—