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

Load LoRA Moss Image (Block)

One MOSS-Image LoRA, Weighted Block by Block

By nova452·Created 5 months ago·Updated 4 days ago· 555
Load LoRA Moss Image (Block)
  • model
  • model
◄lora_name▾►
◄strength1.00►
◄video_embedder1.00►
◄text_embedder_proj1.00►
◄text_embedder_blocks_01.00►
◄text_embedder_blocks_11.00►
◄time_embedding1.00►
◄shared_block_modulation1.00►
◄layers_01.00►
◄layers_11.00►
◄layers_21.00►
◄layers_31.00►
◄layers_41.00►
◄layers_51.00►
◄layers_61.00►
◄layers_71.00►
◄layers_81.00►
◄layers_91.00►
◄layers_101.00►
◄layers_111.00►
◄layers_121.00►
◄layers_131.00►
◄layers_141.00►
◄layers_151.00►
◄layers_161.00►
◄layers_171.00►
◄layers_181.00►
◄layers_191.00►
◄layers_201.00►
◄layers_211.00►
◄layers_221.00►
◄layers_231.00►
◄layers_241.00►
◄layers_251.00►
◄layers_261.00►
◄layers_271.00►
◄layers_281.00►
◄layers_291.00►
◄layers_301.00►
◄layers_311.00►
◄layers_321.00►
◄layers_331.00►
◄layers_341.00►
◄layers_351.00►
◄layers_361.00►
◄layers_371.00►
◄layers_381.00►
◄layers_391.00►
◄layers_401.00►
◄layers_411.00►
◄final_norm_video1.00►
◄final_linear_video1.00►
◄video_head_modulation1.00►
◄scan_json{}►

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_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

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.

Categoryloaders

Inputs (55)

NameTypeDefaultDescription
modelMODEL—
lora_nameCOMBO0 options:
strengthFLOAT1.00-10–10Global multiplier on top of every block weight.
video_embedderFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
text_embedder_projFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
text_embedder_blocks_0FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
text_embedder_blocks_1FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
time_embeddingFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
shared_block_modulationFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_0FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_1FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_2FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_3FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_4FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_5FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_6FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_7FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_8FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_9FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_10FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_11FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_12FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_13FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_14FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_15FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_16FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_17FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_18FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_19FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_20FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_21FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_22FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_23FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_24FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_25FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_26FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_27FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_28FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_29FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_30FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_31FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_32FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_33FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_34FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_35FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_36FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_37FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_38FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_39FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_40FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
layers_41FLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
final_norm_videoFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
final_linear_videoFLOAT1.000–1Block weight; hidden block groups are not in the scanned LoRA.
video_head_modulationFLOAT1.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—