The merging execution helper (meh) is a python module for stable diffusion models merging. This repository will never contain code for a webui extension. This is because the aim is to have a GUI agnostic merging engine that can be reused in multiple extensions.
You can install the module as
pip install sd-meh
and then use it in your extension as
from sd_meh.merge import merge_models
merged_model = merge_models(models, weights, bases, merge_mode, precision)You can have a look at the provided merge_models.py cli for an example on how to use the function. Run python3 merge_models.py --help for a list of the available arguments.
Join our discord server for discussion and features/bugfix requests
- bugfixes
- support for pix2pix and inpainting models
- add
-bwpab, --block_weights_preset_alpha_b"and-pal, --presets_alpha_lambdafor presets interpolation (same forbeta) - add
-ll, --logging_level, default toINFO
- add
-bwpa, --block_weights_preset_alphaand-bwpb, --block_weights_preset_betato use pre-defined merging weights. Have a look at the wiki for all the presets - add
-wd, --work_device - add
-pr, --prune - add
-j, --threads
PRs are welcome for both new features and bug fixes.
Please make sure you format the code with black (you can make format) before submitting a PR.
- open a
feat:PR merging todevbranch, notmain - do not update version numbers
- ask for a review
- open a
fix:PR mergin tomain - update version number in
pyproject.tomlandsd_meh/__init__.py - ask for a review