Duskfallcrew
commited on
Commit
•
b3bcaf5
1
Parent(s):
b939125
Fantasy D&D Style for SDXL/Pony XL
Browse files
FantasyBook_lora_config/config_file.toml
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[sdxl_arguments]
|
2 |
+
cache_text_encoder_outputs = false
|
3 |
+
no_half_vae = true
|
4 |
+
min_timestep = 0
|
5 |
+
max_timestep = 1000
|
6 |
+
shuffle_caption = true
|
7 |
+
lowram = false
|
8 |
+
|
9 |
+
[model_arguments]
|
10 |
+
pretrained_model_name_or_path = "stablediffusionapi/pony-diffusion-v6-xl"
|
11 |
+
vae = "/content/vae/sdxl_vae.safetensors"
|
12 |
+
|
13 |
+
[dataset_arguments]
|
14 |
+
debug_dataset = false
|
15 |
+
in_json = "/content/LoRA/meta_lat.json"
|
16 |
+
train_data_dir = "/content/LoRA/train_data"
|
17 |
+
dataset_repeats = 4
|
18 |
+
keep_tokens = 0
|
19 |
+
resolution = "1024,1024"
|
20 |
+
color_aug = false
|
21 |
+
token_warmup_min = 1
|
22 |
+
token_warmup_step = 0
|
23 |
+
|
24 |
+
[training_arguments]
|
25 |
+
output_dir = "/content/drive/MyDrive/kohya-trainer/output/FantasyBook_lora"
|
26 |
+
output_name = "FantasyBook_lora"
|
27 |
+
save_precision = "fp16"
|
28 |
+
save_every_n_epochs = 1
|
29 |
+
train_batch_size = 8
|
30 |
+
max_token_length = 225
|
31 |
+
mem_eff_attn = false
|
32 |
+
sdpa = true
|
33 |
+
xformers = false
|
34 |
+
max_train_epochs = 4
|
35 |
+
max_data_loader_n_workers = 8
|
36 |
+
persistent_data_loader_workers = true
|
37 |
+
gradient_checkpointing = true
|
38 |
+
gradient_accumulation_steps = 1
|
39 |
+
mixed_precision = "fp16"
|
40 |
+
|
41 |
+
[logging_arguments]
|
42 |
+
log_with = "wandb"
|
43 |
+
log_tracker_name = "FantasyBook_lora"
|
44 |
+
logging_dir = "/content/LoRA/logs"
|
45 |
+
|
46 |
+
[sample_prompt_arguments]
|
47 |
+
sample_every_n_epochs = 1
|
48 |
+
sample_sampler = "euler_a"
|
49 |
+
|
50 |
+
[saving_arguments]
|
51 |
+
save_model_as = "safetensors"
|
52 |
+
|
53 |
+
[optimizer_arguments]
|
54 |
+
optimizer_type = "AdaFactor"
|
55 |
+
learning_rate = 0.0005
|
56 |
+
max_grad_norm = 0
|
57 |
+
optimizer_args = [ "scale_parameter=False", "relative_step=False", "warmup_init=False",]
|
58 |
+
lr_scheduler = "cosine_with_restarts"
|
59 |
+
lr_warmup_steps = 100
|
60 |
+
lr_scheduler_num_cycles = 3
|
61 |
+
|
62 |
+
[additional_network_arguments]
|
63 |
+
no_metadata = false
|
64 |
+
network_module = "networks.lora"
|
65 |
+
network_dim = 32
|
66 |
+
network_alpha = 16
|
67 |
+
network_args = []
|
68 |
+
network_train_unet_only = true
|
69 |
+
|
70 |
+
[advanced_training_config]
|
71 |
+
save_state = false
|
72 |
+
save_last_n_epochs_state = false
|
73 |
+
noise_offset = 0.1
|
74 |
+
adaptive_noise_scale = 0.00357
|
75 |
+
caption_dropout_rate = 0
|
76 |
+
caption_tag_dropout_rate = 0.5
|
77 |
+
caption_dropout_every_n_epochs = 0
|
78 |
+
min_snr_gamma = 5
|
FantasyBook_lora_config/sample_prompt.toml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[prompt]
|
2 |
+
negative_prompt = "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, "
|
3 |
+
width = 1024
|
4 |
+
height = 1024
|
5 |
+
scale = 12
|
6 |
+
sample_steps = 28
|
7 |
+
[[prompt.subset]]
|
8 |
+
prompt = "masterpiece, best quality, FantasyBookCover Style, black hair, jewelry, weapon, male focus, multiple boys, sword, 2boys, cape, armor, muscular, knife, polearm, monster, spear, dagger, manly, loincloth"
|
9 |
+
|
10 |
+
[[prompt.subset]]
|
11 |
+
prompt = "masterpiece, best quality, FantasyBookCover Style, 1girl, long hair, brown hair, hair ornament, long sleeves, 1boy, hat, dress, bare shoulders, jewelry, medium breasts, outdoors, day, necklace, white dress, bracelet, tree, strapless, facial hair, beard, realistic, mustache, fine art parody"
|
12 |
+
|
13 |
+
[[prompt.subset]]
|
14 |
+
prompt = "masterpiece, best quality, FantasyBookCover Style, brown hair, holding, weapon, multiple boys, sword, hood, 2boys, cape, holding weapon, armor, 3boys, helmet, polearm, staff, shield, spear, dragon"
|
15 |
+
|
16 |
+
[[prompt.subset]]
|
17 |
+
prompt = "masterpiece, best quality, FantasyBookCover Style, 1girl, long hair, blonde hair, 1boy, navel, jewelry, ponytail, weapon, earrings, boots, midriff, sword, armor, moon, planet, tiger"
|
18 |
+
|