LyCORIS Chopping

LyCORIS Chopping

LoRAs can sometimes include unwanted elements or behaviors during training. “Chopping” allows you to selectively enable or disable different parts of a LoRA model to fine-tune its effects. This can help control style transfer, character consistency, and other attributes.

Quick Solution: Block Weighting

You can use block weighting tools during generation:

Permanent Solution: Chopping

For a permanent solution, you can use chop_blocks.py by Gaeros to modify the LoRA file itself:

git clone https://github.com/elias-gaeros/resize_lora
cd resize_lora

How to Use

python chop_blocks.py --model input.safetensors --save_to output.safetensors --vector "1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1"

Understanding Vector Strings

Vector strings control which layers are kept or removed using values from 0 to 1:

  • 1.0 = Keep layer completely
  • 0.0 = Remove layer completely
  • Values between = Partial effect

Layer Mapping

PositionLayersDescriptionCommon Usage
1GlobalOverall LoRA strengthUsually keep at 1
2-7DownInitial feature extractionStyle, composition
8-9MidCore processingPoses, layouts
10-21OutDetail reconstructionCharacter details

Common Presets

Preset NameVector
Character Focus1,0,0,0,0,0,0,1,1,0,0,0,1,1,1,1,1,1,0,0,0
hamgas1,0,0,0,0,0,0,1,1,0,0,0,1,0,1,1,1,1,0,0,0
kenket1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
serpent_x1,0,0,0,0,1,0,1,1,0,0,0,1,1,1,1,1,1,0,0,0
BEEG LAYERS1,0,0,0,1,1,0,1,1,0,1,0,1,1,1,0,0,0,0,0,0
All The Layers1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
All-In1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0
All-Mid1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0
All-Out (Wolf-Link)1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1
Style Transfer1,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,0,0,0
Ringdingding (Stoat)1,0,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0,0,0,0,0
Garfield (Character+Style)1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0
Rutkowski1,1,1,1,1,1,0,1,1,0,0,0,1,1,1,1,1,1,1,1,1