mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 09:57:49 +02:00
Created Model Merging (markdown)
parent
0e70442536
commit
8fe3d6ab50
14
Model-Merging.md
Normal file
14
Model-Merging.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
**This feature is available in versions 2.5.0 and higher**
|
||||||
|
|
||||||
|
You can merge two Stable Diffusion models (in `.ckpt` or `.safetensors` formats). A UI is planned for this, but for now, you can follow these steps to merge models easily:
|
||||||
|
|
||||||
|
1. Double-click the `Developer Console.cmd` file (on Linux: open terminal, and run `./developer_console.sh`)
|
||||||
|
2. Type `python` and press enter.
|
||||||
|
3. Type `from sdkit.train import merge_models`
|
||||||
|
4. Type `merge_models('C:/path/to/first_model.ckpt', 'C:/path/to/second_model.safetensors', ratio=0.3, 'C:/path/to/merged_model.safetensors', use_fp16=True)
|
||||||
|
|
||||||
|
Set the `ratio` to a number between 0 and 1. This decides the contribution of the two models. A ratio of 0 means only the first model will be used, and a ratio of 1 means only the second model will be used. A ratio of 0.5 means half of each model will be used.
|
||||||
|
|
||||||
|
That's it. Your merged model will be stored at the path you mentioned.
|
||||||
|
|
||||||
|
We're working on providing a UI for this as well.
|
Loading…
x
Reference in New Issue
Block a user