Akegarasu/lora-scripts

★ 6,159⑂ 703

SD-Trainer. LoRA & Dreambooth training scripts & GUI use kohya-ss's trainer, for diffusion model.

About Akegarasu/lora-scripts

Akegarasu/lora-scripts is an open-source project on GitHub, mainly written in Python. SD-Trainer. LoRA & Dreambooth training scripts & GUI use kohya-ss's trainer, for diffusion model. It currently holds 6,159 stars and 703 forks with 138 open issues, and was last pushed on 2026-09-28 (repository created 2023-01-22).

Project Overview

Git Homed tracks it on the Image Trending board and on the AI Image Trending list.

GitHub Repository Details

Repository Akegarasu/lora-scripts · default branch main · size 8498 KB · watchers 37 · source: GitHub REST API and repository README

README

https://github.com/Akegarasu/lora-scripts/blob/HEAD/SD-Trainer

SD-Trainer

_✨ Enjoy Stable Diffusion Train! ✨_

https://github.com/Akegarasu/lora-scripts/blob/HEAD/GitHub Repo stars https://github.com/Akegarasu/lora-scripts/blob/HEAD/GitHub forks https://github.com/Akegarasu/lora-scripts/blob/HEAD/license https://github.com/Akegarasu/lora-scripts/blob/HEAD/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 |

GitHub Stars & Activity

6,159Stars
703Forks
138Open issues
PythonLanguage

GitHub Popularity

GitHub stars6,159
Forks703
Open issues138
Primary languagePython
LicenseAGPL-3.0
Stars gained today0
Created2023-01-22
Last pushed2026-09-28

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1
→
2

Comfy-Org / ComfyUI

Python★ 136,784⑂ 0
→
3

unslothai / unsloth

Python★ 77,708⑂ 0
→
4

ultralytics / ultralytics

Python★ 62,361⑂ 0
→
5

ultralytics / yolov5

Python★ 58,135⑂ 0
→
6

roboflow / supervision

Python★ 51,168⑂ 0
→
7

huggingface / diffusers

Python★ 34,701⑂ 0
→
8

ATH-MaaS / Pixelle-Video

Python★ 28,829⑂ 0
→

More Trending Repositories