Upload 19 files
Browse files- docs/artists-kxl-delta.json +0 -0
- docs/bucket.txt +92 -0
- docs/lyco_config.toml +48 -0
- docs/train_script.sh +56 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00002000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00004000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00006000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00008000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00010000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00012000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00014000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00016000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00018000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00020000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00022000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00024000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00026000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco-step00028000.safetensors +3 -0
- lyco-ckpts/kohaku-xl-delta-lyco.safetensors +3 -0
docs/artists-kxl-delta.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
docs/bucket.txt
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
bucket 0: resolution (256, 3328), count: 177
|
2 |
+
bucket 1: resolution (256, 3392), count: 20
|
3 |
+
bucket 2: resolution (256, 3456), count: 19
|
4 |
+
bucket 3: resolution (256, 3520), count: 9
|
5 |
+
bucket 4: resolution (256, 3584), count: 25
|
6 |
+
bucket 5: resolution (256, 3648), count: 22
|
7 |
+
bucket 6: resolution (256, 3712), count: 11
|
8 |
+
bucket 7: resolution (256, 3776), count: 16
|
9 |
+
bucket 8: resolution (256, 3840), count: 12
|
10 |
+
bucket 9: resolution (256, 3904), count: 12
|
11 |
+
bucket 10: resolution (256, 3968), count: 9
|
12 |
+
bucket 11: resolution (256, 4032), count: 12
|
13 |
+
bucket 12: resolution (256, 4096), count: 393
|
14 |
+
bucket 13: resolution (320, 2752), count: 309
|
15 |
+
bucket 14: resolution (320, 2816), count: 37
|
16 |
+
bucket 15: resolution (320, 2880), count: 45
|
17 |
+
bucket 16: resolution (320, 2944), count: 34
|
18 |
+
bucket 17: resolution (320, 3008), count: 25
|
19 |
+
bucket 18: resolution (320, 3072), count: 36
|
20 |
+
bucket 19: resolution (320, 3136), count: 46
|
21 |
+
bucket 20: resolution (320, 3200), count: 74
|
22 |
+
bucket 21: resolution (320, 3264), count: 185
|
23 |
+
bucket 22: resolution (384, 2368), count: 483
|
24 |
+
bucket 23: resolution (384, 2432), count: 87
|
25 |
+
bucket 24: resolution (384, 2496), count: 64
|
26 |
+
bucket 25: resolution (384, 2560), count: 81
|
27 |
+
bucket 26: resolution (384, 2624), count: 66
|
28 |
+
bucket 27: resolution (384, 2688), count: 282
|
29 |
+
bucket 28: resolution (448, 2112), count: 1185
|
30 |
+
bucket 29: resolution (448, 2176), count: 121
|
31 |
+
bucket 30: resolution (448, 2240), count: 191
|
32 |
+
bucket 31: resolution (448, 2304), count: 449
|
33 |
+
bucket 32: resolution (512, 1856), count: 1301
|
34 |
+
bucket 33: resolution (512, 1920), count: 323
|
35 |
+
bucket 34: resolution (512, 1984), count: 290
|
36 |
+
bucket 35: resolution (512, 2048), count: 872
|
37 |
+
bucket 36: resolution (576, 1664), count: 8969
|
38 |
+
bucket 37: resolution (576, 1728), count: 5854
|
39 |
+
bucket 38: resolution (576, 1792), count: 7437
|
40 |
+
bucket 39: resolution (640, 1536), count: 13187
|
41 |
+
bucket 40: resolution (640, 1600), count: 9038
|
42 |
+
bucket 41: resolution (704, 1408), count: 53679
|
43 |
+
bucket 42: resolution (704, 1472), count: 26199
|
44 |
+
bucket 43: resolution (768, 1280), count: 200880
|
45 |
+
bucket 44: resolution (768, 1344), count: 127072
|
46 |
+
bucket 45: resolution (832, 1216), count: 1351708
|
47 |
+
bucket 46: resolution (896, 1152), count: 543197
|
48 |
+
bucket 47: resolution (960, 1088), count: 223327
|
49 |
+
bucket 48: resolution (1024, 1024), count: 306486
|
50 |
+
bucket 49: resolution (1088, 960), count: 114596
|
51 |
+
bucket 50: resolution (1152, 896), count: 205301
|
52 |
+
bucket 51: resolution (1216, 832), count: 252788
|
53 |
+
bucket 52: resolution (1280, 768), count: 60456
|
54 |
+
bucket 53: resolution (1344, 768), count: 106301
|
55 |
+
bucket 54: resolution (1408, 704), count: 19124
|
56 |
+
bucket 55: resolution (1472, 704), count: 9013
|
57 |
+
bucket 56: resolution (1536, 640), count: 5820
|
58 |
+
bucket 57: resolution (1600, 640), count: 2820
|
59 |
+
bucket 58: resolution (1664, 576), count: 1632
|
60 |
+
bucket 59: resolution (1728, 576), count: 969
|
61 |
+
bucket 60: resolution (1792, 576), count: 709
|
62 |
+
bucket 61: resolution (1856, 512), count: 483
|
63 |
+
bucket 62: resolution (1920, 512), count: 101
|
64 |
+
bucket 63: resolution (1984, 512), count: 78
|
65 |
+
bucket 64: resolution (2048, 512), count: 288
|
66 |
+
bucket 65: resolution (2112, 448), count: 129
|
67 |
+
bucket 66: resolution (2176, 448), count: 44
|
68 |
+
bucket 67: resolution (2240, 448), count: 46
|
69 |
+
bucket 68: resolution (2304, 448), count: 95
|
70 |
+
bucket 69: resolution (2368, 384), count: 48
|
71 |
+
bucket 70: resolution (2432, 384), count: 11
|
72 |
+
bucket 71: resolution (2496, 384), count: 11
|
73 |
+
bucket 72: resolution (2560, 384), count: 13
|
74 |
+
bucket 73: resolution (2624, 384), count: 9
|
75 |
+
bucket 74: resolution (2688, 384), count: 32
|
76 |
+
bucket 75: resolution (2752, 320), count: 31
|
77 |
+
bucket 76: resolution (2816, 320), count: 1
|
78 |
+
bucket 77: resolution (2880, 320), count: 2
|
79 |
+
bucket 78: resolution (2944, 320), count: 4
|
80 |
+
bucket 79: resolution (3008, 320), count: 4
|
81 |
+
bucket 80: resolution (3072, 320), count: 4
|
82 |
+
bucket 81: resolution (3136, 320), count: 2
|
83 |
+
bucket 82: resolution (3200, 320), count: 8
|
84 |
+
bucket 83: resolution (3264, 320), count: 17
|
85 |
+
bucket 84: resolution (3328, 256), count: 7
|
86 |
+
bucket 85: resolution (3392, 256), count: 3
|
87 |
+
bucket 86: resolution (3456, 256), count: 1
|
88 |
+
bucket 87: resolution (3520, 256), count: 1
|
89 |
+
bucket 88: resolution (3712, 256), count: 2
|
90 |
+
bucket 89: resolution (3776, 256), count: 2
|
91 |
+
bucket 90: resolution (3840, 256), count: 2
|
92 |
+
bucket 91: resolution (4096, 256), count: 34
|
docs/lyco_config.toml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
enable_conv = true
|
2 |
+
|
3 |
+
# An example for use different algo/settings in "full" preset
|
4 |
+
unet_target_module = [
|
5 |
+
"Transformer2DModel",
|
6 |
+
"ResnetBlock2D",
|
7 |
+
"Downsample2D",
|
8 |
+
"Upsample2D",
|
9 |
+
]
|
10 |
+
unet_target_name = [
|
11 |
+
".*time_embed\\..+",
|
12 |
+
".*label_emb\\..+",
|
13 |
+
".*input_blocks\\.0.+",
|
14 |
+
"^out\\..+"
|
15 |
+
]
|
16 |
+
text_encoder_target_module = [
|
17 |
+
"CLIPAttention",
|
18 |
+
"CLIPMLP",
|
19 |
+
]
|
20 |
+
text_encoder_target_name = [
|
21 |
+
# "token_embedding", # not supported, Embedding module in CLIP
|
22 |
+
]
|
23 |
+
|
24 |
+
|
25 |
+
[module_algo_map]
|
26 |
+
[module_algo_map.CrossAttention]
|
27 |
+
algo = "lokr"
|
28 |
+
dim = 10000
|
29 |
+
alpha = 10000
|
30 |
+
factor = 4
|
31 |
+
|
32 |
+
[module_algo_map.FeedForward] # MLP Layer in UNet
|
33 |
+
algo = "lokr"
|
34 |
+
dim = 10000
|
35 |
+
alpha = 10000
|
36 |
+
factor = 2
|
37 |
+
|
38 |
+
[module_algo_map.CLIPAttention] # Attention Layer in TE
|
39 |
+
algo = "lokr"
|
40 |
+
dim = 10000
|
41 |
+
alpha = 10000
|
42 |
+
factor = 8
|
43 |
+
|
44 |
+
[module_algo_map.CLIPMLP] # MLP Layer in TE
|
45 |
+
algo = "lokr"
|
46 |
+
dim = 10000
|
47 |
+
alpha = 10000
|
48 |
+
factor = 8
|
docs/train_script.sh
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python3 -m accelerate.commands.launch \
|
2 |
+
--multi_gpu \
|
3 |
+
--num_processes=2 \
|
4 |
+
--num_cpu_threads_per_process=16 sdxl_train_network.py \
|
5 |
+
--enable_bucket \
|
6 |
+
--optimizer_type Lion8bit \
|
7 |
+
--save_state \
|
8 |
+
--network_args \
|
9 |
+
conv_dim=10000 \
|
10 |
+
conv_alpha=10000 \
|
11 |
+
algo=lokr \
|
12 |
+
dropout=0 \
|
13 |
+
factor=8 \
|
14 |
+
train_norm=True \
|
15 |
+
preset=./sdxl-base.toml \
|
16 |
+
--noise_offset 0.05 \
|
17 |
+
--min_snr_gamma 5 \
|
18 |
+
--pretrained_model_name_or_path=sd-models/kohaku-xl-delta-pre2.safetensors \
|
19 |
+
--train_data_dir=datasets/danbooru/kxl-delta \
|
20 |
+
--output_dir=output \
|
21 |
+
--logging_dir=./logs \
|
22 |
+
--log_prefix=kohaku-xl-delta-lyco \
|
23 |
+
--resolution=1024,1024 \
|
24 |
+
--network_module=lycoris.kohya \
|
25 |
+
--max_train_epochs=1 \
|
26 |
+
--save_every_n_steps=2000 \
|
27 |
+
--unet_lr=4e-5 \
|
28 |
+
--text_encoder_lr=1e-5 \
|
29 |
+
--lr_scheduler=constant_with_warmup \
|
30 |
+
--lr_warmup_steps=100 \
|
31 |
+
--lr_scheduler_num_cycles=1 \
|
32 |
+
--network_dim=10000 \
|
33 |
+
--network_alpha=10000 \
|
34 |
+
--output_name=kohaku-xl-delta-lyco \
|
35 |
+
--train_batch_size=4 \
|
36 |
+
--gradient_accumulation_steps=16 \
|
37 |
+
--save_every_n_epochs=1 \
|
38 |
+
--mixed_precision=fp16 \
|
39 |
+
--save_precision=fp16 \
|
40 |
+
--full_fp16 \
|
41 |
+
--seed=1337 \
|
42 |
+
--prior_loss_weight=1 \
|
43 |
+
--max_token_length=225 \
|
44 |
+
--caption_extension=.txt \
|
45 |
+
--save_model_as=safetensors \
|
46 |
+
--min_bucket_reso=256 \
|
47 |
+
--max_bucket_reso=4096 \
|
48 |
+
--keep_tokens=0 \
|
49 |
+
--xformers \
|
50 |
+
--gradient_checkpointing \
|
51 |
+
--shuffle_caption \
|
52 |
+
--caption_tag_dropout_rate=0.1 \
|
53 |
+
--keep_tokens_separator="|||" \
|
54 |
+
--optimizer_args weight_decay=0.1 betas=0.9,0.95 \
|
55 |
+
--ddp_gradient_as_bucket_view \
|
56 |
+
--ddp_timeout 10080
|
lyco-ckpts/kohaku-xl-delta-lyco-step00002000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f9c149cc8434bde3ecabe57bd3e2a32776255051fabc262339c2c6d37fe2ca16
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00004000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb5a4d7aaf6d2ec00899ba1d69714c6c6ef07c8bef2e72b4ff8b7f3c95f637c0
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00006000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:316b8393ec70dc50e29167e54716e639b3e66242f2cdedeb8789018aec5cafed
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00008000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c456935595be57fe5bde82eef6af30df75c7033a3e83411db8df8c1424f437f3
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00010000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aada94008e97a42135d775ec3c331ef5724a1faa1c220700b1505313b89a43e1
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00012000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e36d0b85403024629da334d8c5a723f9dac10a2b3a94b297c5d9efb028cd578
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00014000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0d82802ac04b66589db8c746ad466917cfbe2227eca0058ca43ef842476470cb
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00016000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:df76e94bf87bccfdcb6445ad6404101b7c28c6ae656cbd9110b6b43ceac5abfe
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00018000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c89e706f8e6b261866c28bc205883571acecb34b661573f5f312480729543b7
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00020000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:467450b843bc0fdf49760e80c444afa5e6755896c6618d172b764e95a4a419f9
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00022000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ecf375b79692c39f98f4c0737a98aa89e938684d85e86634e3356372d1e39bb
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00024000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aa327210f54614aeac65c3a4f57e882b479673c8472f880aa0394df83f9c4a71
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00026000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9eb67e8d4414d1556906778c96b08c91b679e82c399ab6fd16b9d77063998147
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco-step00028000.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51e828deacf45435dd33bea4f1e0140343042fdd819eed4aa70197f58b4f7d0e
|
3 |
+
size 782617220
|
lyco-ckpts/kohaku-xl-delta-lyco.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1208d778405b50e768479eb577a1a0659d1c9630e5ac72a210ea02ba11b1adf4
|
3 |
+
size 782617220
|