Giter Club home page Giter Club logo

meh's Introduction

sd-meh

PyPI version

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.8.0

  • add -bwpab, --block_weights_preset_alpha_b" and -pal, --presets_alpha_lambda for presets interpolation (same for beta)
  • add -ll, --logging_level, default to INFO

0.7.0

  • add -bwpa, --block_weights_preset_alpha and -bwpb, --block_weights_preset_beta to 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 to dev branch, not main
  • do not update version numbers
  • ask for a review

You want to make a bug fix

  • open a fix: PR mergin to main
  • update version number in pyproject.toml and sd_meh/__init__.py
  • ask for a review

meh's People

Contributors

ljleb avatar s1dlx avatar whitewipe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.