Nodes/Realtime LoRA Trainer/FLUX Analyzer + Selective Loader V2
ComfyUI Node

FLUX Analyzer + Selective Loader V2

57-block control with strength scheduling

By shootthesound·Created 8 months ago·Updated 2 months ago· 538
FLUX Analyzer + Selective Loader V2
  • model
  • positive
  • negative
  • model
  • positive
  • negative
  • analysis
  • analysis_json
lora_name
strength1.00
presetDefault
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
schedule_presetCustom
strength_schedule
save_refined_lorafalse
save_path
save_filename

What it is

FLUX's transformer splits into two block types - 19 "double" blocks that process image and text streams jointly, and 38 "single" blocks that process a merged stream - and this node gives you a toggle and strength slider for all 57. It combines what the pack's V1 nodes split across two: LoRA impact analysis and per-block selective loading, plus strength scheduling and a save-to-disk option neither V1 node had. If you're troubleshooting a Flux LoRA that's fighting your prompt, or trying to isolate a face LoRA's identity from its style baggage, this is the node built for that job.

The pack's guidance, echoing what its author found testing the same pattern on Z-Image, is that double blocks typically carry more impact than single blocks, with peak impact usually landing around double_8–17 - a reasonable place to start experimenting before you dig into the analysis output for your specific LoRA.

How it works

It loads the LoRA, scores each of the 57 blocks 0–100% by weight magnitude, and lets you disable or reweight any of them before patching the result onto your model and conditioning. What sets the V2 nodes apart from this pack's earlier Selective Loaders is strength scheduling: instead of one flat multiplier, you can vary the LoRA's influence across the generation using step:strength keyframes (steps as 0–1 fractions of total generation), picked from 40-plus built-in presets - fades, bell curves, step functions, and inverted versions of each - or written by hand.

Inputs and outputs that matter

  • model, positive, negative, lora_name - this node sits inline with your conditioning, not just your model/clip, so it can apply scheduling correctly.
  • strength - the base multiplier (-10 to 10) before any schedule modifies it.
  • preset - block-selection presets covering common splits (double-only, single-only, high-impact ranges, and more, per the node's built-in list).
  • double_0double_18 and single_0single_37, each with a paired _str strength slider, plus other_weights for anything outside the mapped blocks.
  • schedule_preset and strength_schedule (optional) - named schedule or a custom step:strength string.
  • save_refined_lora, save_path, save_filename (optional) - export your block-filtered selection as a new standalone LoRA.
  • Optional lora_path_opt overrides the dropdown, useful chained straight off a trainer's output.

Outputs: model, positive, negative (patched/pass-through, wire into your sampler), analysis (readable report), analysis_json.

Installing it

No external backend required for this node - it 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

57 blocks is a lot to reason about by hand. Start from a preset - All Off plus re-enabling ranges is usually faster than toggling individually - and read the analysis output to see where this specific LoRA actually concentrated its weight before fine-tuning further.

Style disappears when isolating "double" blocks for identity. The double-blocks-carry-more-impact guidance is a general tendency, not a rule for every LoRA; some style LoRAs put real signal in single blocks or other_weights. Trust the measured analysis over the preset name if the two disagree.

Scheduling string gets silently ignored. Same format requirement as this pack's other V2 nodes: comma-separated step:strength pairs with steps as 0–1 fractions, not raw step counts. Start from a named preset and edit it rather than writing one from scratch.

Forgot conditioning is inline here. Because positive/negative route through this node, a broken wire here breaks your whole sampling graph in ways that look unrelated to the LoRA - confirm this node actually sits in your conditioning path if generation looks wrong.

Categoryloaders/lora

Inputs (128)

NameTypeDefaultDescription
modelMODEL
positiveCONDITIONINGPositive conditioning from CLIP encode
negativeCONDITIONINGNegative conditioning from CLIP encode
lora_nameCOMBOLoRA file to load and analyze
strengthFLOAT1.00-10–10Overall LoRA strength (ignored when using schedule)
presetCOMBODefaultQuick preset selection. Individual toggles below override when changed.
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: Override LoRA selection with a path
schedule_presetoptCOMBOCustomSelect a preset schedule (populates the text field below for editing)
strength_scheduleoptSTRINGStrength schedule: 0:.2,.5:.8,1:1.0 (step:strength pairs). Edit freely after selecting preset.
save_refined_loraoptBOOLEANfalseEnable to save the refined LoRA to disk
save_pathoptSTRINGDirectory to save refined LoRA
save_filenameoptSTRINGFilename for saved LoRA (timestamp auto-appended). Leave empty for auto-name.

Outputs (5)

NameTypeDescription
modelMODELModel with LoRA applied (filtered by enabled blocks).
positiveCONDITIONINGPositive conditioning (with hooks if using schedule).
negativeCONDITIONINGNegative conditioning (with hooks if using schedule).
analysisSTRINGPer-block analysis showing impact scores.
analysis_jsonSTRINGJSON analysis data for UI coloring.