Upload lora-scripts/README.md with huggingface_hub
Browse files- lora-scripts/README.md +131 -0
lora-scripts/README.md
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div align="center">
|
2 |
+
|
3 |
+
<img src="https://github.com/Akegarasu/lora-scripts/assets/36563862/3b177f4a-d92a-4da4-85c8-a0d163061a40" width="200" height="200" alt="SD-Trainer" style="border-radius: 25px">
|
4 |
+
|
5 |
+
# SD-Trainer
|
6 |
+
|
7 |
+
_✨ Enjoy Stable Diffusion Train! ✨_
|
8 |
+
|
9 |
+
</div>
|
10 |
+
|
11 |
+
<p align="center">
|
12 |
+
<a href="https://github.com/Akegarasu/lora-scripts" style="margin: 2px;">
|
13 |
+
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/Akegarasu/lora-scripts">
|
14 |
+
</a>
|
15 |
+
<a href="https://github.com/Akegarasu/lora-scripts" style="margin: 2px;">
|
16 |
+
<img alt="GitHub forks" src="https://img.shields.io/github/forks/Akegarasu/lora-scripts">
|
17 |
+
</a>
|
18 |
+
<a href="https://raw.githubusercontent.com/Akegarasu/lora-scripts/master/LICENSE" style="margin: 2px;">
|
19 |
+
<img src="https://img.shields.io/github/license/Akegarasu/lora-scripts" alt="license">
|
20 |
+
</a>
|
21 |
+
<a href="https://github.com/Akegarasu/lora-scripts/releases" style="margin: 2px;">
|
22 |
+
<img src="https://img.shields.io/github/v/release/Akegarasu/lora-scripts?color=blueviolet&include_prereleases" alt="release">
|
23 |
+
</a>
|
24 |
+
</p>
|
25 |
+
|
26 |
+
<p align="center">
|
27 |
+
<a href="https://github.com/Akegarasu/lora-scripts/releases">Download</a>
|
28 |
+
·
|
29 |
+
<a href="https://github.com/Akegarasu/lora-scripts/blob/main/README.md">Documents</a>
|
30 |
+
·
|
31 |
+
<a href="https://github.com/Akegarasu/lora-scripts/blob/main/README-zh.md">中文README</a>
|
32 |
+
</p>
|
33 |
+
|
34 |
+
LoRA-scripts (a.k.a SD-Trainer)
|
35 |
+
|
36 |
+
LoRA & Dreambooth training GUI & scripts preset & one key training environment for [kohya-ss/sd-scripts](https://github.com/kohya-ss/sd-scripts.git)
|
37 |
+
|
38 |
+
## ✨NEW: Train WebUI
|
39 |
+
|
40 |
+
The **REAL** Stable Diffusion Training Studio. Everything in one WebUI.
|
41 |
+
|
42 |
+
Follow the installation guide below to install the GUI, then run `run_gui.ps1`(windows) or `run_gui.sh`(linux) to start the GUI.
|
43 |
+
|
44 |
+
![image](https://github.com/Akegarasu/lora-scripts/assets/36563862/d3fcf5ad-fb8f-4e1d-81f9-c903376c19c6)
|
45 |
+
|
46 |
+
| Tensorboard | WD 1.4 Tagger | Tag Editor |
|
47 |
+
| ------------ | ------------ | ------------ |
|
48 |
+
| ![image](https://github.com/Akegarasu/lora-scripts/assets/36563862/b2ac5c36-3edf-43a6-9719-cb00b757fc76) | ![image](https://github.com/Akegarasu/lora-scripts/assets/36563862/9504fad1-7d77-46a7-a68f-91fbbdbc7407) | ![image](https://github.com/Akegarasu/lora-scripts/assets/36563862/4597917b-caa8-4e90-b950-8b01738996f2) |
|
49 |
+
|
50 |
+
|
51 |
+
# Usage
|
52 |
+
|
53 |
+
### Required Dependencies
|
54 |
+
|
55 |
+
Python 3.10 and Git
|
56 |
+
|
57 |
+
### Clone repo with submodules
|
58 |
+
|
59 |
+
```sh
|
60 |
+
git clone --recurse-submodules https://github.com/Akegarasu/lora-scripts
|
61 |
+
```
|
62 |
+
|
63 |
+
## ✨ SD-Trainer GUI
|
64 |
+
|
65 |
+
### Windows
|
66 |
+
|
67 |
+
#### Installation
|
68 |
+
|
69 |
+
Run `install.ps1` will automaticilly create a venv for you and install necessary deps.
|
70 |
+
If you are in China mainland, please use `install-cn.ps1`
|
71 |
+
|
72 |
+
#### Train
|
73 |
+
|
74 |
+
run `run_gui.ps1`, then program will open [http://127.0.0.1:28000](http://127.0.0.1:28000) automanticlly
|
75 |
+
|
76 |
+
### Linux
|
77 |
+
|
78 |
+
#### Installation
|
79 |
+
|
80 |
+
Run `install.bash` will create a venv and install necessary deps.
|
81 |
+
|
82 |
+
#### Train
|
83 |
+
|
84 |
+
run `bash run_gui.bash`, then program will open [http://127.0.0.1:28000](http://127.0.0.1:28000) automanticlly
|
85 |
+
|
86 |
+
## Legacy training through run script manually
|
87 |
+
|
88 |
+
### Windows
|
89 |
+
|
90 |
+
#### Installation
|
91 |
+
|
92 |
+
Run `install.ps1` will automaticilly create a venv for you and install necessary deps.
|
93 |
+
|
94 |
+
#### Train
|
95 |
+
|
96 |
+
Edit `train.ps1`, and run it.
|
97 |
+
|
98 |
+
### Linux
|
99 |
+
|
100 |
+
#### Installation
|
101 |
+
|
102 |
+
Run `install.bash` will create a venv and install necessary deps.
|
103 |
+
|
104 |
+
#### Train
|
105 |
+
|
106 |
+
Training script `train.sh` **will not** activate venv for you. You should activate venv first.
|
107 |
+
|
108 |
+
```sh
|
109 |
+
source venv/bin/activate
|
110 |
+
```
|
111 |
+
|
112 |
+
Edit `train.sh`, and run it.
|
113 |
+
|
114 |
+
#### TensorBoard
|
115 |
+
|
116 |
+
Run `tensorboard.ps1` will start TensorBoard at http://localhost:6006/
|
117 |
+
|
118 |
+
## Program arguments
|
119 |
+
|
120 |
+
| Parameter Name | Type | Default Value | Description |
|
121 |
+
|-------------------------------|-------|---------------|--------------------------------------------------|
|
122 |
+
| `--host` | str | "127.0.0.1" | Hostname for the server |
|
123 |
+
| `--port` | int | 28000 | Port to run the server |
|
124 |
+
| `--listen` | bool | false | Enable listening mode for the server |
|
125 |
+
| `--skip-prepare-environment` | bool | false | Skip the environment preparation step |
|
126 |
+
| `--disable-tensorboard` | bool | false | Disable TensorBoard |
|
127 |
+
| `--disable-tageditor` | bool | false | Disable tag editor |
|
128 |
+
| `--tensorboard-host` | str | "127.0.0.1" | Host to run TensorBoard |
|
129 |
+
| `--tensorboard-port` | int | 6006 | Port to run TensorBoard |
|
130 |
+
| `--localization` | str | | Localization settings for the interface |
|
131 |
+
| `--dev` | bool | false | Developer mode to disale some checks |
|