Credit:
This script package from bdsqlsz
use kohya-ss/sd-scripts (github.com) for core
original script from Akegarasu/lora-scripts: LoRA training scripts use kohya-ss's trainer, for diffusion model. (github.com)
How to use:
0、(windows)Give unrestricted script access to powershell so venv can work:
Open an administrator powershell window
Type
Set-ExecutionPolicy Unrestrictedand answer AClose admin powershell window
1、Unzip this to anyway you want(Recommend with other train program which has venv)
if you Update it,just Rerun install-cn-qinglong.ps1.then enter N
2、Run install-cn-qinglong.ps1 in windows(linux just use commnd line)
it will automatically install environment(if you has venv,just put to over it)
3、Put your datesets in /input dir.
a formattting:
./input/2_lora/(datasets images)
4、Run tagger.ps1 for tagger them,automatically.(linux use tagger.sh)
5、Edit your datesets if your want
6、Edit train script(train_8Glora or train_16G_DB)(linux use train_tacanime)
just for
train_mode(lora、db、sdxl_lora、sdxl_db、cn3l)
pretrained_model
train_data_dir
a formatting ./input/
resolution(SDXL for 1024*1024,sd1.5 for 576*576)
max and min bucket repo(SDXL 640~1536,sd1.5:256~1024)
optimizer(SDXL:adaFactor for batch size1,Pagedadamw8bit for batch size 4)
other dont need more change if you dont know it
if i can help you ,i will very happy that~
Support 青龍聖者@bdsqlsz on Ko-fi! ❤️. ko-fi.com/bdsqlsz - Ko-fi ❤️ Where creators get support from fans through donations, memberships, shop sales and more! The original 'Buy Me a Coffee' Page.
Description
FAQ
Comments (8)
Copy-Item: C:\Users\****\Downloads\sdxlLoraTrain8GBAnd_v40\install-cn-qinglong.ps1:57
Line |
57 | cp .\bitsandbytes_windows\functional.py ..\venv\Lib\site-packages\bit …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path 'C:\Users\****\Downloads\sdxlLoraTrain8GBAnd_v40\sd-scripts\bitsandbytes_windows\functional.py'
| because it does not exist.
I was able to copy a file that I think is what it wanted
i fixed it now.
RuntimeError: NaN detected in latents...
i think it makes error in cache latent
@bdsqlsz Strange, all I did really was change it from bf16 to fp16 because my GPU is older
Can install.bat be used instead? The install script suggested uses Baidu mirrors in China, as I live half way across the world (United States) it is very slow. The normal Install script seemed to have some lines missing that looked important
ill add for us,you can use install.ps1
