✨ Enjoy Stable Diffusion Train! ✨
v1.5.4
Fork from 秋葉 aaaki/lora-scripts
Modify By Lulynx
Download · Documents · 中文README · AGENTS · FRONTEND
SD-reScripts is a maintained fork / continuation of LoRA-scripts (a.k.a. SD-Trainer).
This is an experimental project currently in beta, and there are tons of bugs.
LoRA & Dreambooth training GUI & scripts preset & one key training environment for kohya-ss/sd-scripts
Stopping... task state feedbackA dedicated desktop launcher is now included for runtime setup, launch control, runtime diagnostics, managed preset import, and safer day-to-day startup flow.

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 it.
| Tensorboard | WD 1.4 Tagger | Tag Editor |
|---|---|---|
A redesigned community UI is also supported through the frontend profile system. You can switch to it from the launcher or your configured frontend profile workflow.

If you use the bundled portable Python runtime in the repo root, system Python is optional.
Otherwise you need:
git clone --recurse-submodules https://github.com/WhitecrowAurora/lora-rescripts.git
Run run_For_≤RTX40series.bat or run_For_SageAttention_Experimental.bat.
python folder already exists in the repo root, the installer will use it firstsetup_embeddable_python.bat is now mainly a repair helper for broken raw embeddable Python installs, not a normal first-run requirementrun run_gui.ps1, then program will open http://127.0.0.1:28000 automanticlly
If you want to try sageattn, there are now dedicated experimental startup scripts on Windows:
run_For_SageAttention_Experimental.bat: general SageAttention runtime for NVIDIA GPUsrun_For_NVIDIA_SageAttention_Experimental.bat: compatibility alias for the same general SageAttention runtimerun_For_Only_Blackwell_SageAttention_Experimental.bat: recommended experimental path for RTX 50 / RTX PRO Blackwell users when xformers is unreliableNotes:
python / python_blackwell / xformers environments untouchedsageattn; launching with a SageAttention script does not force every trainer to stop using sdpa or xformerscheck_sageattention_env.bat or check_sageattention_env.bat --blackwellsageattention-wheels or sageattention_wheelsblackwell or sm120 are preferred automaticallyCurrent validated experimental base stack:
3.11.92.10.0+cu1280.25.0+cu1283.5.1.post241.0.6Run install.bash.
python/bin/python already exists, the installer will use it firstvenv/bin/python if presentvenv automatically unless you explicitly pass --disable-venvRun bash run_gui.sh, then program will open http://127.0.0.1:28000 automatically.
run_gui.sh now auto-detects python/bin/python, venv/bin/python, or system pythoninstall.bash for youinstall_tageditor.shbash run_gui_cn.shrun_gui_cn.bat, run_auto_cn.bat, or run_manual_cn.bat_cn.bat launchersconfig/china_mirror.jsonTensorBoard is already integrated into the GUI startup path.
The launcher Managed tab can connect to a hosted preset site for one-click preset import, rollback, and 24-hour local cache sync.
Reference repository:
Recommended Linux prerequisites for the hosted preset site:
gitNode.js 20+npm 10+build-essential, python3, pkg-config, libvips-devgit clone https://github.com/WhitecrowAurora/lulynx-lora-share.git
cd lulynx-lora-share
Install backend dependencies:
cd backend
npm install
Install frontend dependencies:
cd ../frontend
npm install
Run the backend locally:
cd ../backend
PORT=3000 CORS_ORIGIN=http://127.0.0.1:5173 npm run start
Run the frontend in dev mode:
cd ../frontend
VITE_API_URL=http://127.0.0.1:3000/api npm run dev -- --host 0.0.0.0 --port 5173
Create a production frontend build:
cd frontend
VITE_API_URL=https://your-domain.example/api npm run build
Then configure your reverse proxy to serve frontend/dist and forward /api to the backend server.
After the site is online, create an API key in LORA Share and paste the server URL + API key into the launcher Managed tab.
| 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 |
This project stands on the work of multiple open-source communities. Respect and thanks to:
Special thanks to
for testing the project and helping improve stability during development.