LoRA & Dreambooth training scripts & GUI use kohya-ss's trainer, for diffusion model.
 
 
 
 
 
Go to file
Akegarasu a82077d54a
update to cu128
2025-05-15 18:35:00 +08:00
assets move 2024-10-05 11:38:03 +08:00
config example description 2025-01-15 17:56:13 +08:00
frontend@a61f4b8b74 update frontend 2025-02-06 21:52:03 +08:00
huggingface init 2023-01-22 21:45:39 +08:00
logs fix install-cn xformers 2023-01-23 13:45:34 +08:00
mikazuki CAME optimizer 2025-03-24 16:01:02 +08:00
output init 2023-01-22 21:45:39 +08:00
scripts CAME optimizer 2025-03-24 16:01:02 +08:00
sd-models init 2023-01-22 21:45:39 +08:00
.gitattributes crlf 2023-02-10 14:09:27 +08:00
.gitignore chore: update .gitignore and add example preset 2024-11-23 18:21:05 +08:00
.gitmodules change to scripts 2024-08-30 19:45:48 +08:00
Dockerfile update 2024-08-30 19:59:14 +08:00
Dockerfile-for-Mainland-China 加速中国大陆地区 docker 镜像 (#575) 2024-11-21 18:04:47 +08:00
LICENSE Create LICENSE 2023-06-01 20:47:39 +08:00
README-zh.md typo 2025-02-22 11:12:42 +08:00
README.md feat: doc upgrade (#546) 2024-10-15 16:55:27 +08:00
gui.py fix #631 2025-03-18 22:05:35 +08:00
install-cn.ps1 update to cu128 2025-05-15 18:35:00 +08:00
install.bash update to cu128 2025-05-15 18:35:00 +08:00
install.ps1 update to cu128 2025-05-15 18:35:00 +08:00
interrogate.ps1 update train scripts 2024-10-31 15:16:59 +08:00
requirements.txt update bitsandbytes for cu128 2025-05-14 21:59:00 +08:00
resize.ps1 change to scripts 2024-08-30 19:45:48 +08:00
run.ipynb update run.ipynb 2023-11-16 18:02:22 +08:00
run_gui.ps1 fix 2024-09-09 23:05:33 +08:00
run_gui.sh Update run_gui.sh (#123) 2023-05-21 00:30:37 +08:00
run_gui_cn.sh update 2025-02-22 11:14:37 +08:00
svd_merge.ps1 update train scripts 2024-10-31 15:16:59 +08:00
tagger.ps1 update train scripts 2024-10-31 15:16:59 +08:00
tagger.sh update train scripts 2024-10-31 15:16:59 +08:00
tensorboard.ps1 tf log level 2023-04-27 17:39:09 +08:00
train.ipynb update 2024-08-30 19:59:14 +08:00
train.ps1 update train scripts 2024-10-31 15:16:59 +08:00
train.sh update train scripts 2024-10-31 15:16:59 +08:00
train_by_toml.ps1 change to scripts 2024-08-30 19:45:48 +08:00
train_by_toml.sh change to scripts 2024-08-30 19:45:48 +08:00

README.md

SD-Trainer

SD-Trainer

Enjoy Stable Diffusion Train

GitHub Repo stars GitHub forks license release

Download · Documents · 中文README

LoRA-scripts (a.k.a SD-Trainer)

LoRA & Dreambooth training GUI & scripts preset & one key training environment for kohya-ss/sd-scripts

NEW: Train WebUI

The REAL Stable Diffusion Training Studio. Everything in one WebUI.

Follow the installation guide below to install the GUI, then run run_gui.ps1(windows) or run_gui.sh(linux) to start the GUI.

image

Tensorboard WD 1.4 Tagger Tag Editor
image image image

Usage

Required Dependencies

Python 3.10 and Git

Clone repo with submodules

git clone --recurse-submodules https://github.com/Akegarasu/lora-scripts

SD-Trainer GUI

Windows

Installation

Run install.ps1 will automatically create a venv for you and install necessary deps. If you are in China mainland, please use install-cn.ps1

Train

run run_gui.ps1, then program will open http://127.0.0.1:28000 automanticlly

Linux

Installation

Run install.bash will create a venv and install necessary deps.

Train

run bash run_gui.sh, then program will open http://127.0.0.1:28000 automanticlly

Legacy training through run script manually

Windows

Installation

Run install.ps1 will automatically create a venv for you and install necessary deps.

Train

Edit train.ps1, and run it.

Linux

Installation

Run install.bash will create a venv and install necessary deps.

Train

Training script train.sh will not activate venv for you. You should activate venv first.

source venv/bin/activate

Edit train.sh, and run it.

TensorBoard

Run tensorboard.ps1 will start TensorBoard at http://localhost:6006/

Program arguments

Parameter Name Type Default Value Description
--host str "127.0.0.1" Hostname for the server
--port int 28000 Port to run the server
--listen bool false Enable listening mode for the server
--skip-prepare-environment bool false Skip the environment preparation step
--disable-tensorboard bool false Disable TensorBoard
--disable-tageditor bool false Disable tag editor
--tensorboard-host str "127.0.0.1" Host to run TensorBoard
--tensorboard-port int 6006 Port to run TensorBoard
--localization str Localization settings for the interface
--dev bool false Developer mode to disale some checks