LoRA Block Weight Group (FLUX.1)
Sweep FLUX LoRA blocks in chunks, not one by one
- model
- vae
- positive
- negative
- latent_image
- images
- info
- groups_used
- modes_used
A full per-block sweep of a FLUX.1 LoRA is 57 blocks × 5 strengths = 285 images. That's a lot of sampling to answer one simple question: where does this LoRA actually live? LoRA Block Weight Group is the middle step - you've already seen a coarse sweep, you know the action concentrates in a few neighbourhoods, and now you sweep those neighbourhoods as groups instead of burning another 285 renders on single blocks.
FLUX.1's transformer is 19 double-stream blocks (D00–D18) followed by 38 single-stream blocks (S00–S37). Group mode treats any range of those as one unit, so you can ask "what happens if the whole D00–D06 region is knocked out at once?" - which is the question the README's demo actually answers. Knocking out the 7 highest-impact blocks stripped most of the LoRA's style; knocking out the 7 lowest did nothing visible. That's the kind of finding this node is built to produce.
The mechanism
The group sweep node is the whole pipeline in one box - it loads the LoRA, clones the model, patches per-group strengths, samples, and VAE-decodes - so it's not a loader like the plain single-block nodes. Every (group, mode) pair becomes one image in a batched images output, and the node returns info, groups_used and modes_used strings you can feed to the pack's Save Grid node for a labeled comparison.
The two inputs that actually matter
- groups - one group per line.
D00-D06is a range;D00-D06,S20-S25combines ranges into one group. The default is an even 8-way split, and the tooltip is refreshingly honest about it: "naive even split with no prior knowledge - edit per LoRA once a first sweep shows where the effect concentrates." - modes - a comma list of column types, each becoming one column of output:
knockout(group off, everything else on),solo(group on, everything else off),full(whole LoRA on, the reference), andoff(no LoRA, the baseline). Default isknockout,solo,full.
The rest - seed, steps, cfg, sampler_name, scheduler, denoise - are just the KSampler settings you already know, plus model, vae, lora_name, positive, negative and latent_image.
Installing it
Same pack, same install. ComfyUI Manager → search LoraBlockWeight, or:
cd <ComfyUI>/custom_nodes
git clone https://github.com/Baldwinzc/ComfyUI-LoraBlockWeight.git
Restart, and it shows up under the LoraBlockWeight category. No models to download, no extra pip installs.
Where people trip up
Because the batch/group nodes sample internally, the conditioning is already encoded before the LoRA is applied - the CLIP side of your LoRA is not included. The README says it plainly: if you need the LoRA's text-encoder effect, encode your prompts after a regular LoRA loader instead. If you type a block tag outside D00–S37, the node raises a clear error listing the valid range, so bad tags fail loudly rather than silently doing nothing. And remember a group sweep is still groups × modes images - with 8 groups and 3 modes that's 24 renders, cheap next to the full sweep, but not free.
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| vae | VAE | — | |
| lora_name | COMBO | 0 options: | |
| positive | CONDITIONING | — | |
| negative | CONDITIONING | — | |
| latent_image | LATENT | — | |
| seed | INT | 00–18446744073709550000 | — |
| steps | INT | 251–10000 | — |
| cfg | FLOAT | 1.00–100 | — |
| sampler_name | COMBO | euler | 44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38 |
| scheduler | COMBO | simple | 9 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +3 |
| denoise | FLOAT | 1.000–1 | — |
| groups | STRING | D00-D06 D07-D12 D13-D18 S00-S12 S13-S25 S26-S37 D00-D18 S00-S37 | One group per line. Use D00-D06 for a range, comma to combine ranges (e.g. D00-D06,S20-S25). Default is a naive even split with no prior knowledge - edit per LoRA once a first sweep shows where the effect concentrates. |
| modes | STRING | knockout,solo,full | Comma list of column types. knockout = group off, others on. solo = group on, others off. full = everything on (LoRA reference). off = everything off (no-LoRA reference). Each entry becomes one column in the output grid. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| info | STRING | — |
| groups_used | STRING | — |
| modes_used | STRING | — |