Nodes/Realtime LoRA Trainer/Selective LoRA Loader (Qwen)
ComfyUI Node

Selective LoRA Loader (Qwen)

60-block control for Qwen-Image LoRAs

By shootthesound·Created 8 months ago·Updated 2 months ago· 538
Selective LoRA Loader (Qwen)
  • model
  • clip
  • model
  • clip
  • info
lora_name
strength1.00
presetAll Blocks
block_0true
block_0_str1.00
block_1true
block_1_str1.00
block_2true
block_2_str1.00
block_3true
block_3_str1.00
block_4true
block_4_str1.00
block_5true
block_5_str1.00
block_6true
block_6_str1.00
block_7true
block_7_str1.00
block_8true
block_8_str1.00
block_9true
block_9_str1.00
block_10true
block_10_str1.00
block_11true
block_11_str1.00
block_12true
block_12_str1.00
block_13true
block_13_str1.00
block_14true
block_14_str1.00
block_15true
block_15_str1.00
block_16true
block_16_str1.00
block_17true
block_17_str1.00
block_18true
block_18_str1.00
block_19true
block_19_str1.00
block_20true
block_20_str1.00
block_21true
block_21_str1.00
block_22true
block_22_str1.00
block_23true
block_23_str1.00
block_24true
block_24_str1.00
block_25true
block_25_str1.00
block_26true
block_26_str1.00
block_27true
block_27_str1.00
block_28true
block_28_str1.00
block_29true
block_29_str1.00
block_30true
block_30_str1.00
block_31true
block_31_str1.00
block_32true
block_32_str1.00
block_33true
block_33_str1.00
block_34true
block_34_str1.00
block_35true
block_35_str1.00
block_36true
block_36_str1.00
block_37true
block_37_str1.00
block_38true
block_38_str1.00
block_39true
block_39_str1.00
block_40true
block_40_str1.00
block_41true
block_41_str1.00
block_42true
block_42_str1.00
block_43true
block_43_str1.00
block_44true
block_44_str1.00
block_45true
block_45_str1.00
block_46true
block_46_str1.00
block_47true
block_47_str1.00
block_48true
block_48_str1.00
block_49true
block_49_str1.00
block_50true
block_50_str1.00
block_51true
block_51_str1.00
block_52true
block_52_str1.00
block_53true
block_53_str1.00
block_54true
block_54_str1.00
block_55true
block_55_str1.00
block_56true
block_56_str1.00
block_57true
block_57_str1.00
block_58true
block_58_str1.00
block_59true
block_59_str1.00
other_weightstrue
other_weights_str1.00
lora_path_opt
analysis_json

What it is

Qwen-Image's 20B transformer has more blocks than any other architecture this pack covers - 60 of them - and this node gives you a toggle and a strength slider for every single one, instead of the one strength value a normal LoRA loader offers. That granularity matters more on a model this size: a Qwen-Image or Qwen-Image-Edit LoRA can carry a lot of unwanted baggage alongside the thing you actually wanted (a style bleeding into a subject LoRA, or vice versa), and with 60 blocks to work with you have a lot more room to isolate exactly which part of the LoRA is doing that.

The same pattern the pack's author documented on Z-Image - character identity clustering in later layers, style spreading earlier - is the working assumption behind this node's presets too (Late Only, Mid-Late, Skip Early, Mid Only, Early Only), though with 60 blocks instead of 30 the "late" range here is 45–59 rather than 20–29. Treat the presets as a starting hypothesis, not a guarantee, and verify with the analyzer below.

How it works

Same mechanism as this pack's other selective loaders, scaled up: the node loads your chosen LoRA, then lets you individually disable or reweight each of Qwen-Image's 60 blocks before patching the result onto your model and CLIP. Feed in analysis_json from LoRA Loader + Analyzer and the block checkboxes color themselves by measured weight magnitude - blue through red - so you can see which of the 60 blocks are actually carrying signal for the specific LoRA you loaded, rather than clicking through all of them manually.

Inputs and outputs that matter

  • model, clip, lora_name - standard loader inputs.
  • strength - the overall multiplier (-5 to 5), applied on top of your per-block choices.
  • preset - All Blocks, All Off, Late Only (45–59), Mid-Late (30–59), Skip Early (15–59), Mid Only (20–40), Early Only (0–29), Evens/Odds Only, or Custom.
  • block_0 through block_59, each paired with a _str strength slider.
  • other_weights / other_weights_str - a catch-all for weights that don't map to a numbered block.
  • Optional lora_path_opt takes a direct file path, overriding the dropdown - useful chained off MusubiQwenImageLoraTrainer's or MusubiQwenImageEditLoraTrainer's output. Optional analysis_json enables the impact-colored checkboxes.

Outputs: model, clip, and info - a summary of what got applied.

Installing it

No external backend required - this node works as soon as the pack is installed. ComfyUI Manager (search "Realtime LoRA Trainer") or:

cd ComfyUI/custom_nodes
git clone https://github.com/ShootTheSound/comfyUI-Realtime-Lora

Restart ComfyUI.

Common issues

60 toggles is too many to reason about manually. Don't try - run LoRA Loader + Analyzer first and connect its analysis_json output here. Let the color-coded checkboxes tell you which blocks actually matter for your specific LoRA before you start disabling anything.

Edit-model LoRAs behave differently from generation-model LoRAs. Qwen-Image-Edit LoRAs (pose, angle, clothing-transfer LoRAs and similar) are trained against the Edit checkpoint specifically and won't do anything sensible loaded against plain Qwen-Image, or the reverse - that's a base-model mismatch, not something block selection fixes.

A subtle style LoRA disappears entirely with a "Late Only" preset. If your LoRA is a style adapter rather than a character one, the whole late-layers assumption inverts - style tends to sit earlier. Try Early Only or Skip Early instead, and confirm with the analyzer rather than trusting the preset name.

Result feels weaker after selective loading. Removing blocks removes some of the LoRA's total contribution - compensate with strength or the surviving blocks' individual sliders rather than assuming the LoRA itself is underpowered.

Categoryloaders/lora

Inputs (129)

NameTypeDefaultDescription
modelMODEL
clipCLIP
lora_nameCOMBOQwen-Image LoRA file to load
strengthFLOAT1.00-5–5Overall LoRA strength
presetCOMBOAll BlocksQuick preset selection. Choose 'Custom' to use individual toggles below.
block_0BOOLEANtrue
block_0_strFLOAT1.00-5–5
block_1BOOLEANtrue
block_1_strFLOAT1.00-5–5
block_2BOOLEANtrue
block_2_strFLOAT1.00-5–5
block_3BOOLEANtrue
block_3_strFLOAT1.00-5–5
block_4BOOLEANtrue
block_4_strFLOAT1.00-5–5
block_5BOOLEANtrue
block_5_strFLOAT1.00-5–5
block_6BOOLEANtrue
block_6_strFLOAT1.00-5–5
block_7BOOLEANtrue
block_7_strFLOAT1.00-5–5
block_8BOOLEANtrue
block_8_strFLOAT1.00-5–5
block_9BOOLEANtrue
block_9_strFLOAT1.00-5–5
block_10BOOLEANtrue
block_10_strFLOAT1.00-5–5
block_11BOOLEANtrue
block_11_strFLOAT1.00-5–5
block_12BOOLEANtrue
block_12_strFLOAT1.00-5–5
block_13BOOLEANtrue
block_13_strFLOAT1.00-5–5
block_14BOOLEANtrue
block_14_strFLOAT1.00-5–5
block_15BOOLEANtrue
block_15_strFLOAT1.00-5–5
block_16BOOLEANtrue
block_16_strFLOAT1.00-5–5
block_17BOOLEANtrue
block_17_strFLOAT1.00-5–5
block_18BOOLEANtrue
block_18_strFLOAT1.00-5–5
block_19BOOLEANtrue
block_19_strFLOAT1.00-5–5
block_20BOOLEANtrue
block_20_strFLOAT1.00-5–5
block_21BOOLEANtrue
block_21_strFLOAT1.00-5–5
block_22BOOLEANtrue
block_22_strFLOAT1.00-5–5
block_23BOOLEANtrue
block_23_strFLOAT1.00-5–5
block_24BOOLEANtrue
block_24_strFLOAT1.00-5–5
block_25BOOLEANtrue
block_25_strFLOAT1.00-5–5
block_26BOOLEANtrue
block_26_strFLOAT1.00-5–5
block_27BOOLEANtrue
block_27_strFLOAT1.00-5–5
block_28BOOLEANtrue
block_28_strFLOAT1.00-5–5
block_29BOOLEANtrue
block_29_strFLOAT1.00-5–5
block_30BOOLEANtrue
block_30_strFLOAT1.00-5–5
block_31BOOLEANtrue
block_31_strFLOAT1.00-5–5
block_32BOOLEANtrue
block_32_strFLOAT1.00-5–5
block_33BOOLEANtrue
block_33_strFLOAT1.00-5–5
block_34BOOLEANtrue
block_34_strFLOAT1.00-5–5
block_35BOOLEANtrue
block_35_strFLOAT1.00-5–5
block_36BOOLEANtrue
block_36_strFLOAT1.00-5–5
block_37BOOLEANtrue
block_37_strFLOAT1.00-5–5
block_38BOOLEANtrue
block_38_strFLOAT1.00-5–5
block_39BOOLEANtrue
block_39_strFLOAT1.00-5–5
block_40BOOLEANtrue
block_40_strFLOAT1.00-5–5
block_41BOOLEANtrue
block_41_strFLOAT1.00-5–5
block_42BOOLEANtrue
block_42_strFLOAT1.00-5–5
block_43BOOLEANtrue
block_43_strFLOAT1.00-5–5
block_44BOOLEANtrue
block_44_strFLOAT1.00-5–5
block_45BOOLEANtrue
block_45_strFLOAT1.00-5–5
block_46BOOLEANtrue
block_46_strFLOAT1.00-5–5
block_47BOOLEANtrue
block_47_strFLOAT1.00-5–5
block_48BOOLEANtrue
block_48_strFLOAT1.00-5–5
block_49BOOLEANtrue
block_49_strFLOAT1.00-5–5
block_50BOOLEANtrue
block_50_strFLOAT1.00-5–5
block_51BOOLEANtrue
block_51_strFLOAT1.00-5–5
block_52BOOLEANtrue
block_52_strFLOAT1.00-5–5
block_53BOOLEANtrue
block_53_strFLOAT1.00-5–5
block_54BOOLEANtrue
block_54_strFLOAT1.00-5–5
block_55BOOLEANtrue
block_55_strFLOAT1.00-5–5
block_56BOOLEANtrue
block_56_strFLOAT1.00-5–5
block_57BOOLEANtrue
block_57_strFLOAT1.00-5–5
block_58BOOLEANtrue
block_58_strFLOAT1.00-5–5
block_59BOOLEANtrue
block_59_strFLOAT1.00-5–5
other_weightsBOOLEANtrue
other_weights_strFLOAT1.00-5–5
lora_path_optoptSTRINGOptional: Connect from LoRA Analyzer to use its selected LoRA
analysis_jsonoptSTRINGOptional: Connect from LoRA Analyzer for impact-colored checkboxes

Outputs (3)

NameTypeDescription
modelMODEL
clipCLIP
infoSTRING