ddPn08 / maji-merger

A WebUI extension for model merging
Apache License 2.0
71 stars 3 forks source link
stable-diffusion stable-diffusion-webui stable-diffusion-webui-plugin

maji merger

A WebUI extension for model merging

Supported models

Usage

You can change the alpha of each key by moving the slider.

All alphas are passed in json format.

Prefer the weight of the longest key whose beginning matches.

For example

{
    "model.diffusion_model.input_blocks.0.0.weight": 0.5,
    "model.diffusion_model.input_blocks.1": 0.3,
    "model.diffusion_model.middle_block": 0.7
}

In this case, 0.5 is used for keys with model.diffusion_model.input_blocks.0.0.weight, 0.3 for keys starting with model.diffusion_model.input_blocks.1, and 0.7 for keys starting with model.diffusion_model.middle_block. Otherwise the "base alpha" value is used.