Load LoRA Moss Image (Block)
One MOSS-Image LoRA, Weighted Block by Block
- model
- model
MOSS-Image is a 42-layer diffusion transformer with a text embedder and a video head hanging off it, and every LoRA written for it is applied as one flat strength across the lot. Load LoRA Moss Image (Block) splits that into a slider per block group, so you can keep the part of the LoRA that works and switch off the part that doesn't.
This is the single-file sibling of the folder loader in the same pack. Reach for this one when you know which LoRA you want and you're fighting what it does to the image.
Why bother
Most LoRA problems are not "the LoRA is bad." They're "the LoRA is doing four things and I wanted one of them." A style LoRA trained on a handful of images will happily also bake in a colour cast, a composition habit and a slightly different face distribution, because those were in the training set too.
Block weighting is the cheapest way to separate them without retraining. The usual move: leave the middle layers_* range doing the aesthetic work, pull video_embedder or video_head_modulation down if the output goes soft or the head keeps reinterpreting your prompt, and pull text_embedder_proj down if the LoRA is dragging your prompt adherence with it.
How it works
Same approach as the rest of the pack's block loaders. The node opens the safetensors header - key names only, no weight loading - normalizes the trainer's module naming against MOSS-Image's native layout, and reports which groups the file actually contains. The frontend then shows one widget per group found and hides the rest, parking the result in scan_json for the Python side.
At run time each patch goes on with strength × block_weight, and a block weight of 0 skips those patches outright.
The group list mirrors comfy.ldm.moss_image.model.MOSSImage:
video_embeddertext_embedder_proj,text_embedder_blocks_0/1time_embedding,shared_block_modulationlayers_0…layers_41final_norm_video,final_linear_video,video_head_modulation
The inputs that matter
- model - the MOSS-Image model you were about to sample.
- lora_name - a file from
ComfyUI/models/loras. - strength - global multiplier over every block weight, −10 to 10, default 1.0. Keep it at 1.0 and shape with the blocks; only use it as a master trim once you've found a block setting you like.
- The block widgets - 0.0–1.0, all defaulting to 1.0, with the honest tooltip that hidden groups aren't in the scanned LoRA.
- scan_json - written by the Scan Blocks button, not by you.
Output: model.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/nova452/Rebalance-Pack.git
Restart, or find "Rebalance Pack" in ComfyUI Manager. No requirements file, no downloaded weights - it's Python on top of torch and Comfy's own LoRA machinery. The one prerequisite is a ComfyUI build new enough to know what comfy.ldm.moss_image is; if MOSS-Image itself runs, you're fine.
Where people get burned
Scan first, or the sliders lie. With no scan result the node applies every group at ratio 1.0 - a full-strength LoRA wearing a UI that looks quieter than it is. Press the button after choosing a file.
Zero is not "very quiet", it's "off". Setting layers_0 to 0 removes those patches from the model entirely. Sometimes that's exactly what you want. Just know it's a delete, not a fade.
Don't stack this with the stock loader. If the same LoRA is applied once by LoraLoaderModelOnly at 0.7 and again here, you're getting 1.7 of it. Replace the stock loader, don't add to it.
Fighting blur. If the LoRA softens output, dial the head and embedder groups down before you blame the sampler - and if it's not the LoRA, the pack's README points at a sigma-split workflow (workflows/moss_image_rebalance_sigmas.json) for exactly that complaint.
Inputs (55)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| lora_name | COMBO | 0 options: | |
| strength | FLOAT | 1.00-10–10 | Global multiplier on top of every block weight. |
| video_embedder | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| text_embedder_proj | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| text_embedder_blocks_0 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| text_embedder_blocks_1 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| time_embedding | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| shared_block_modulation | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_0 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_1 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_2 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_3 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_4 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_5 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_6 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_7 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_8 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_9 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_10 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_11 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_12 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_13 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_14 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_15 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_16 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_17 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_18 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_19 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_20 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_21 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_22 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_23 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_24 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_25 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_26 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_27 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_28 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_29 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_30 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_31 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_32 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_33 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_34 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_35 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_36 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_37 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_38 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_39 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_40 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| layers_41 | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| final_norm_video | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| final_linear_video | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| video_head_modulation | FLOAT | 1.000–1 | Block weight; hidden block groups are not in the scanned LoRA. |
| scan_json | STRING | {} | Last scan result, filled by the Scan Blocks button. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |