stable diffusion merging execution helper
Project description
sd-meh
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
Changelog
0.9.1 ... 0.9.3
- bugfixes
- support for pix2pix and inpainting models
0.8.0
- add
-bwpab, --block_weights_preset_alpha_b"and-pal, --presets_alpha_lambdafor presets interpolation (same forbeta) - add
-ll, --logging_level, default toINFO
0.7.0
- 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
DEV
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.
You want to add a feature
- open a
feat:PR merging todevbranch, notmain - do not update version numbers
- ask for a review
You want to make a bug fix
- open a
fix:PR mergin tomain - update version number in
pyproject.tomlandsd_meh/__init__.py - ask for a review
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sd_meh-0.9.5.tar.gz.
File metadata
- Download URL: sd_meh-0.9.5.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eab624e1c7e98c8c2d081d0b550d1ffc09320b30a9f8eaa7ca7116600cf943d1
|
|
| MD5 |
456d14f21564ce1201b5d553324b507d
|
|
| BLAKE2b-256 |
189832fe91dd4a1a24650ce408d1ca496a75e9418a716c296c897f63104281d1
|
File details
Details for the file sd_meh-0.9.5-py3-none-any.whl.
File metadata
- Download URL: sd_meh-0.9.5-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ee3e09d7c50f2620ef138f87d7801a4d8e827e913817346d77dc94c65cc682a
|
|
| MD5 |
156f2cd5e6b51bf44b661a5723e8a279
|
|
| BLAKE2b-256 |
057c7a4ab8711e0d2e442ed2695576f8339fe3064d8b72d93d2446a3c5500846
|