Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nihedon/sd-webui-weight-helper

The extension allows you to specify Lora or Lyco weight from context menu.
https://github.com/nihedon/sd-webui-weight-helper

stable-diffusion-web-ui stable-diffusion-webui stable-diffusion-webui-plugin

Last synced: 4 days ago
JSON representation

The extension allows you to specify Lora or Lyco weight from context menu.

Awesome Lists containing this project

README

        

[English](README.md) | [日本語](README_JP.md)

# Weight Helper Extension

## Overview

**Weight Helper** is an extension that allows you to visually adjust the weights of Lora and Lyco with mouse operations.

You can adjust the magnification of each weight block through the context menu.

Note: The LoRA Block Weight extension is required to use this extension.

## Installation

1. Open the [Extensions] tab in Stable Diffusion Web UI.
2. Select [Install from URL].
3. Enter the following URL and execute the installation.
```
https://github.com/nihedon/sd-webui-weight-helper.git
```

## Usage

1. Right-click on a Lora or Lyco tag to open the context menu.
- ``
- ``
2. Choose "LoRA" or "LyCORIS" according to the tag, and select "SDXL" if it's for the SDXL version.
3. Move the weight slider to adjust the magnification of each weight block.
4. UNet, Dyn, Start, and Stop will be hidden by default, but if configured, you can display them by pressing the "show more options" button.
5. Save your favorite weight settings by clicking the "★" icon at the top left of the context menu.
Important: Saved settings are stored in LocalStorage, but any unsaved history will be deleted upon refreshing the screen.

## Features

- Easy to set weight values with mouse operations.
- Use of preset values from Lora Block Weight is possible.
- You can check LoRA information and add trigger words from the icons displayed on the preview screen.
- Information from the readme file attached to LoRA can be displayed on the preview screen. ({loraname}.txt, {loraname}.description.txt)
- The SD version of LoRA is displayed based on the metadata of LoRA. (If there is metadata text from Civitai, the SD version registered with Civitai will also be displayed.)

## Known Issues
- The algorithm is deduced from the metadata of LoRA, but it is incomplete. Bug reports and suggestions for the correct algorithm would be appreciated.

## Configuration Options

- Scale adjustment in the context menu.
- Use of the `execCommand` function for text replacement (Note: execCommand is a deprecated function, but it allows for "undo" and "redo").
- Display of UNet, Dyn, Start, and Stop sliders.
- Setting of minimum, maximum, and step values for each weight slider.
- Detailed settings for LBW's Lora and Lyco blocks.
- Option to display or hide previews, and settings for preview size and position.
- Settings for block weight segmentation.

## Guaranteed Operating Environment

- Stable Diffusion AUTOMATIC1111
- Windows
- Google Chrome

## Acknowledgments

We would like to express our deep gratitude to **hako-mikan**, the author of **LoRA Block Weight**, for creating this extension.
```
https://github.com/hako-mikan/sd-webui-lora-block-weight
```

## License

This project is published under the [MIT License](LICENSE).