0xspeedrunner / sdweb-merge-board

Multi-step automation merge tool. Extension/Script for Stable Diffusion UI by AUTOMATIC1111 https://github.com/AUTOMATIC1111/stable-diffusion-webui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marge Board

Multi Merge Merge Recipe (Import/Export) Checkpoint List

How to Install

  • Go to Extensions tab on your web UI

  • Install from URL with this repo URL

  • Install

Features

  • Multiple step marge support ( up to 10 step)
  • Save and Load your merging combination as Recipe, which is simple text.

Multi-Marge

  • 10 lane of merge settings

    • merge start from lane 1 to 10

    • If A (model A) or B (model B) is blank, this lane will be ignored.

    • If C (model C) is blank and Method is "Add Diff", this lane is ignored

  • with Run Merge, all merge is processed one by one.

  • you can use variables for former lane's Output(O) to later lanes Input(A,B,C)

    • choose variable as ckpt in dropdown, __O1__ form. (number correspond to lane)

      • i.e.) in second lane, you can specify model as modelA(A2): __O1__
    • can not use future output as variable

      • bad example) in second lane, modelA(A2): __O3__
    Select checkpoint by Dropdown. You can select Output checkpoint of each lane by variables like __O1__.
    Multiplier digit is extended to 0.001 step.
    Merging method. Weighted Sum, Add difference, Sigmoid. Implementation of "Sigmoid" is from old-days A1111 code, and this value is exchanged by inv-sigmoid in merging process and used as Weighted Sum.

Recipe

  • Treat Your complicated model merging Recipe as 1 text

  • with this UI, Read, Load, Savefile in Recipe format.

Recipe file Format

  • this is sample Recipe

  • each line represents one marge process.

  • you can use variable for former line output,

  • With recipe, you can share your Variables.

Variables

  • you can use other variables in Recipe

System variables

Variable Note
__O1__ Output ckpt-file of Lane.1
__Ox__ Output ckpt-file of Lane.x

User variables

  • You can use variables as form below.

  • By variables, User can set own ckpt to variables.

Sample Note
__SD15__ Use it as variable of Stable Diffusion v1.5.
User can select ckpt file by Dropdown.

Comments and Note

  • You can add comment/note by start line with # mark. This line will be ignored.
# These
# Lines
# is ignored

Recipe sample

# Sample Recipe
a14 = __SD14__ + __F222__, 0.5
a15 = __SD15__ + __F222__, 0.5
mix14 = __O1__ + __WD13__ + __SD14__, 1.0
mix15 = __O2__ + __WD13__ + __SD14__, 1.0

# variables
__F222__ # You can use F111 instead.
__SD14__ # use stable diffusion v1.5, as you like.

About

Multi-step automation merge tool. Extension/Script for Stable Diffusion UI by AUTOMATIC1111 https://github.com/AUTOMATIC1111/stable-diffusion-webui


Languages

Language:Python 99.2%Language:JavaScript 0.8%