feat: upload kohya lora model
Browse files
kohya_config/config_file.toml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[model_arguments]
|
2 |
+
v2 = true
|
3 |
+
v_parameterization = true
|
4 |
+
pretrained_model_name_or_path = "/content/drive/MyDrive/pretrained_model/Anything-v3-1.safetensors"
|
5 |
+
|
6 |
+
[additional_network_arguments]
|
7 |
+
no_metadata = false
|
8 |
+
unet_lr = 0.0001
|
9 |
+
text_encoder_lr = 5e-5
|
10 |
+
network_module = "networks.lora"
|
11 |
+
network_dim = 64
|
12 |
+
network_alpha = 32
|
13 |
+
network_train_unet_only = false
|
14 |
+
network_train_text_encoder_only = false
|
15 |
+
|
16 |
+
[optimizer_arguments]
|
17 |
+
optimizer_type = "AdamW"
|
18 |
+
learning_rate = 0.0001
|
19 |
+
max_grad_norm = 1.0
|
20 |
+
lr_scheduler = "constant"
|
21 |
+
lr_warmup_steps = 0
|
22 |
+
|
23 |
+
[dataset_arguments]
|
24 |
+
cache_latents = true
|
25 |
+
debug_dataset = false
|
26 |
+
|
27 |
+
[training_arguments]
|
28 |
+
output_dir = "/content/drive/MyDrive/LoRA/output"
|
29 |
+
output_name = "kohya"
|
30 |
+
save_precision = "fp16"
|
31 |
+
save_every_n_epochs = 1
|
32 |
+
train_batch_size = 6
|
33 |
+
max_token_length = 225
|
34 |
+
mem_eff_attn = false
|
35 |
+
xformers = true
|
36 |
+
max_train_epochs = 10
|
37 |
+
max_data_loader_n_workers = 8
|
38 |
+
persistent_data_loader_workers = true
|
39 |
+
gradient_checkpointing = false
|
40 |
+
gradient_accumulation_steps = 1
|
41 |
+
mixed_precision = "fp16"
|
42 |
+
logging_dir = "/content/LoRA/logs"
|
43 |
+
log_prefix = "kohya"
|
44 |
+
lowram = false
|
45 |
+
|
46 |
+
[sample_prompt_arguments]
|
47 |
+
sample_every_n_epochs = 1
|
48 |
+
sample_sampler = "euler_a"
|
49 |
+
|
50 |
+
[dreambooth_arguments]
|
51 |
+
prior_loss_weight = 1.0
|
52 |
+
|
53 |
+
[saving_arguments]
|
54 |
+
save_model_as = "safetensors"
|
kohya_config/dataset_config.toml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[[datasets]]
|
2 |
+
resolution = 512
|
3 |
+
min_bucket_reso = 256
|
4 |
+
max_bucket_reso = 1024
|
5 |
+
caption_dropout_rate = 0
|
6 |
+
caption_tag_dropout_rate = 0
|
7 |
+
caption_dropout_every_n_epochs = 0
|
8 |
+
flip_aug = false
|
9 |
+
color_aug = false
|
10 |
+
[[datasets.subsets]]
|
11 |
+
image_dir = "/content/drive/MyDrive/LoRA/train_data"
|
12 |
+
class_tokens = "mksks style"
|
13 |
+
num_repeats = 10
|
14 |
+
|
15 |
+
[[datasets.subsets]]
|
16 |
+
is_reg = true
|
17 |
+
image_dir = "/content/drive/MyDrive/LoRA/reg_data"
|
18 |
+
class_tokens = " style"
|
19 |
+
num_repeats = 1
|
20 |
+
|
21 |
+
|
22 |
+
[general]
|
23 |
+
enable_bucket = true
|
24 |
+
caption_extension = ".txt"
|
25 |
+
shuffle_caption = true
|
26 |
+
keep_tokens = 0
|
27 |
+
bucket_reso_steps = 64
|
28 |
+
bucket_no_upscale = false
|
kohya_config/sample_prompt.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
|
2 |
+
1girl, solo, long_hair, breasts, looking_at_viewer, blush, open_mouth, bangs, hair_ornament, long_sleeves, dress, hair_between_eyes, bare_shoulders, twintails, collarbone, pink_hair, sidelocks, thighs, small_breasts, dark_skin, spread_legs, wide_sleeves, off_shoulder, dark-skinned_female, orange_eyes, sash, cosplay, kneeling, no_panties, chinese_clothes, squatting, scrunchie, pelvic_curtain, purple_dress, hair_scrunchie, shawl, yellow_scrunchie, hanfu --n lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry --w 512 --h 768 --l 7 --s 28
|