LoRA & Dreambooth training scripts & GUI use kohya-ss's trainer, for diffusion model.
 
 
 
 
 
Go to file
Akegarasu 5c77f649ba
rename: flux-lora
2024-11-23 11:29:08 +08:00
assets move 2024-10-05 11:38:03 +08:00
config major: rename toml folder to config 2023-08-31 10:35:24 +08:00
frontend@91fa1da4cb update 2024-09-22 10:36:45 +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 rename: flux-lora 2024-11-23 11:29:08 +08:00
output init 2023-01-22 21:45:39 +08:00
scripts update sd-scripts 2024-10-30 21:42:07 +08:00
sd-models init 2023-01-22 21:45:39 +08:00
.gitattributes crlf 2023-02-10 14:09:27 +08:00
.gitignore update 2024-08-30 19:59:14 +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 加速中国大陆地区 docker 镜像 (#575) 2024-11-21 18:04:47 +08:00
README.md feat: doc upgrade (#546) 2024-10-15 16:55:27 +08:00
gui.py update 2024-10-05 12:45:26 +08:00
install-cn.ps1 fix install-cn.ps1 (#555) 2024-10-15 16:31:16 +08:00
install.bash fix 2024-10-15 09:53:57 +08:00
install.ps1 Update install.ps1 (#539) 2024-10-15 09:55:40 +08:00
interrogate.ps1 update train scripts 2024-10-31 15:16:59 +08:00
requirements.txt update requirements 2024-09-19 16:13:23 +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
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