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

Selective LoRA Loader (FLUX)

57 blocks, on or off, per LoRA

By shootthesound·Created 8 months ago·Updated 2 months ago· 538
Selective LoRA Loader (FLUX)
  • model
  • clip
  • model
  • clip
  • info
lora_name
strength1.00
presetAll Blocks
double_0true
double_0_str1.00
double_1true
double_1_str1.00
double_2true
double_2_str1.00
double_3true
double_3_str1.00
double_4true
double_4_str1.00
double_5true
double_5_str1.00
double_6true
double_6_str1.00
double_7true
double_7_str1.00
double_8true
double_8_str1.00
double_9true
double_9_str1.00
double_10true
double_10_str1.00
double_11true
double_11_str1.00
double_12true
double_12_str1.00
double_13true
double_13_str1.00
double_14true
double_14_str1.00
double_15true
double_15_str1.00
double_16true
double_16_str1.00
double_17true
double_17_str1.00
double_18true
double_18_str1.00
single_0true
single_0_str1.00
single_1true
single_1_str1.00
single_2true
single_2_str1.00
single_3true
single_3_str1.00
single_4true
single_4_str1.00
single_5true
single_5_str1.00
single_6true
single_6_str1.00
single_7true
single_7_str1.00
single_8true
single_8_str1.00
single_9true
single_9_str1.00
single_10true
single_10_str1.00
single_11true
single_11_str1.00
single_12true
single_12_str1.00
single_13true
single_13_str1.00
single_14true
single_14_str1.00
single_15true
single_15_str1.00
single_16true
single_16_str1.00
single_17true
single_17_str1.00
single_18true
single_18_str1.00
single_19true
single_19_str1.00
single_20true
single_20_str1.00
single_21true
single_21_str1.00
single_22true
single_22_str1.00
single_23true
single_23_str1.00
single_24true
single_24_str1.00
single_25true
single_25_str1.00
single_26true
single_26_str1.00
single_27true
single_27_str1.00
single_28true
single_28_str1.00
single_29true
single_29_str1.00
single_30true
single_30_str1.00
single_31true
single_31_str1.00
single_32true
single_32_str1.00
single_33true
single_33_str1.00
single_34true
single_34_str1.00
single_35true
single_35_str1.00
single_36true
single_36_str1.00
single_37true
single_37_str1.00
other_weightstrue
other_weights_str1.00
lora_path_opt
analysis_json

Flux LoRAs are big, and they don't spend their weight evenly across the model's 57 transformer blocks. This node is the drop-in LoRA loader that lets you turn individual blocks off - so a face LoRA stops also dragging your composition and lighting along with it.

What it is and why you'd reach for it

This is the V1, standalone selective loader for Flux - a straight swap for ComfyUI's standard LoRA loader, except every one of Flux's 19 double blocks and 38 single blocks gets its own toggle and strength slider. The node's own description spells out the standard workflow: run the pack's separate "LoRA Loader + Analyzer" first to see which blocks a specific LoRA actually uses, then come here and switch off the ones that aren't pulling weight. Double blocks (0-18) typically carry more impact than single blocks (0-37), which the node states directly, but "typically" is doing real work in that sentence - every LoRA is different, which is the whole reason the analyzer step exists.

It's one of 31 nodes in ShootTheSound/comfyUI-Realtime-Lora. If you want analysis and selective loading combined into a single node instead of two wired together, the pack also ships a V2 "FLUX Analyzer + Selective Loader" that does both at once - this V1 node is for when you want the analyzer's output feeding a loader you control separately, or you're following an older workflow that already splits the two.

How it works

Connect the analysis_json output from the LoRA Loader + Analyzer node to this loader's own analysis_json input, and the block checkboxes color themselves by impact - blue for low, red for very high - so you can see at a glance where a LoRA's face, style, or composition weight actually lives before touching anything. Disabled blocks stay visible but dimmed, so you don't lose track of what you turned off.

Inputs and outputs that matter

  • model / clip - standard Flux pipeline inputs, both patched by this node exactly like a normal LoRA loader.
  • lora_name, strength - the usual pick and global weight.
  • preset - jump straight to useful groupings instead of clicking 57 checkboxes: Double Blocks Only, Single Blocks Only, High Impact Double, Face Focus, Face Aggressive, Style Only (No Face), or Custom once you're hand-tuning.
  • double_0 through double_18, single_0 through single_37, plus other_weights - each with its own toggle and a -5 to 5 strength slider.
  • lora_path_opt (optional) - feed a path directly (from the pack's own trainer nodes, for instance) and it overrides the lora_name dropdown, which is the intended train-then-selectively-load pattern.
  • analysis_json (optional) - the wire that turns on impact-colored checkboxes.
  • Outputs: model, clip (patched, wire to your sampler and text encoder as normal), info (a text summary of what was applied).

Installing it

ComfyUI Manager: search "Realtime LoRA Trainer." Manual:

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

Restart ComfyUI. This node works immediately - no extra dependencies, no model download. Those only apply to the pack's trainer nodes.

Troubleshooting

Checkboxes aren't colored, they're all plain gray. That coloring only appears once analysis_json is actually connected from an analyzer node. Run the LoRA Loader + Analyzer on the same LoRA first, or switch to the combined V2 "FLUX Analyzer + Selective Loader" node, which does the analysis inline without needing a second node.

lora_name is empty. Only LoRAs already sitting in your loras folder show up there. If you're loading one you just trained with this pack, use lora_path_opt instead of the dropdown.

Turning off "low impact" single blocks did nothing visible. Flux's single blocks are where text and image tokens interact directly, so even a low weight-magnitude score there can matter more than the number alone suggests. Treat the analysis as a strong hint, not gospel - walk changes back gradually and check the result at each step rather than disabling a large batch at once.

Categoryloaders/lora

Inputs (123)

NameTypeDefaultDescription
modelMODEL
clipCLIP
lora_nameCOMBOFLUX LoRA file to load
strengthFLOAT1.00-5–5Overall LoRA strength
presetCOMBOAll BlocksQuick preset selection. Choose 'Custom' to use individual toggles below.
double_0BOOLEANtrue
double_0_strFLOAT1.00-5–5
double_1BOOLEANtrue
double_1_strFLOAT1.00-5–5
double_2BOOLEANtrue
double_2_strFLOAT1.00-5–5
double_3BOOLEANtrue
double_3_strFLOAT1.00-5–5
double_4BOOLEANtrue
double_4_strFLOAT1.00-5–5
double_5BOOLEANtrue
double_5_strFLOAT1.00-5–5
double_6BOOLEANtrue
double_6_strFLOAT1.00-5–5
double_7BOOLEANtrue
double_7_strFLOAT1.00-5–5
double_8BOOLEANtrue
double_8_strFLOAT1.00-5–5
double_9BOOLEANtrue
double_9_strFLOAT1.00-5–5
double_10BOOLEANtrue
double_10_strFLOAT1.00-5–5
double_11BOOLEANtrue
double_11_strFLOAT1.00-5–5
double_12BOOLEANtrue
double_12_strFLOAT1.00-5–5
double_13BOOLEANtrue
double_13_strFLOAT1.00-5–5
double_14BOOLEANtrue
double_14_strFLOAT1.00-5–5
double_15BOOLEANtrue
double_15_strFLOAT1.00-5–5
double_16BOOLEANtrue
double_16_strFLOAT1.00-5–5
double_17BOOLEANtrue
double_17_strFLOAT1.00-5–5
double_18BOOLEANtrue
double_18_strFLOAT1.00-5–5
single_0BOOLEANtrue
single_0_strFLOAT1.00-5–5
single_1BOOLEANtrue
single_1_strFLOAT1.00-5–5
single_2BOOLEANtrue
single_2_strFLOAT1.00-5–5
single_3BOOLEANtrue
single_3_strFLOAT1.00-5–5
single_4BOOLEANtrue
single_4_strFLOAT1.00-5–5
single_5BOOLEANtrue
single_5_strFLOAT1.00-5–5
single_6BOOLEANtrue
single_6_strFLOAT1.00-5–5
single_7BOOLEANtrue
single_7_strFLOAT1.00-5–5
single_8BOOLEANtrue
single_8_strFLOAT1.00-5–5
single_9BOOLEANtrue
single_9_strFLOAT1.00-5–5
single_10BOOLEANtrue
single_10_strFLOAT1.00-5–5
single_11BOOLEANtrue
single_11_strFLOAT1.00-5–5
single_12BOOLEANtrue
single_12_strFLOAT1.00-5–5
single_13BOOLEANtrue
single_13_strFLOAT1.00-5–5
single_14BOOLEANtrue
single_14_strFLOAT1.00-5–5
single_15BOOLEANtrue
single_15_strFLOAT1.00-5–5
single_16BOOLEANtrue
single_16_strFLOAT1.00-5–5
single_17BOOLEANtrue
single_17_strFLOAT1.00-5–5
single_18BOOLEANtrue
single_18_strFLOAT1.00-5–5
single_19BOOLEANtrue
single_19_strFLOAT1.00-5–5
single_20BOOLEANtrue
single_20_strFLOAT1.00-5–5
single_21BOOLEANtrue
single_21_strFLOAT1.00-5–5
single_22BOOLEANtrue
single_22_strFLOAT1.00-5–5
single_23BOOLEANtrue
single_23_strFLOAT1.00-5–5
single_24BOOLEANtrue
single_24_strFLOAT1.00-5–5
single_25BOOLEANtrue
single_25_strFLOAT1.00-5–5
single_26BOOLEANtrue
single_26_strFLOAT1.00-5–5
single_27BOOLEANtrue
single_27_strFLOAT1.00-5–5
single_28BOOLEANtrue
single_28_strFLOAT1.00-5–5
single_29BOOLEANtrue
single_29_strFLOAT1.00-5–5
single_30BOOLEANtrue
single_30_strFLOAT1.00-5–5
single_31BOOLEANtrue
single_31_strFLOAT1.00-5–5
single_32BOOLEANtrue
single_32_strFLOAT1.00-5–5
single_33BOOLEANtrue
single_33_strFLOAT1.00-5–5
single_34BOOLEANtrue
single_34_strFLOAT1.00-5–5
single_35BOOLEANtrue
single_35_strFLOAT1.00-5–5
single_36BOOLEANtrue
single_36_strFLOAT1.00-5–5
single_37BOOLEANtrue
single_37_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