Upload lora-scripts/config/default.toml with huggingface_hub
Browse files
lora-scripts/config/default.toml
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[model]
|
2 |
+
v2 = false
|
3 |
+
v_parameterization = false
|
4 |
+
pretrained_model_name_or_path = "./sd-models/model.ckpt"
|
5 |
+
|
6 |
+
[dataset]
|
7 |
+
train_data_dir = "./train/input"
|
8 |
+
reg_data_dir = ""
|
9 |
+
prior_loss_weight = 1
|
10 |
+
cache_latents = true
|
11 |
+
shuffle_caption = true
|
12 |
+
enable_bucket = true
|
13 |
+
|
14 |
+
[additional_network]
|
15 |
+
network_dim = 32
|
16 |
+
network_alpha = 16
|
17 |
+
network_train_unet_only = false
|
18 |
+
network_train_text_encoder_only = false
|
19 |
+
network_module = "networks.lora"
|
20 |
+
network_args = []
|
21 |
+
|
22 |
+
[optimizer]
|
23 |
+
unet_lr = 1e-4
|
24 |
+
text_encoder_lr = 1e-5
|
25 |
+
optimizer_type = "AdamW8bit"
|
26 |
+
lr_scheduler = "cosine_with_restarts"
|
27 |
+
lr_warmup_steps = 0
|
28 |
+
lr_restart_cycles = 1
|
29 |
+
|
30 |
+
[training]
|
31 |
+
resolution = "512,512"
|
32 |
+
train_batch_size = 1
|
33 |
+
max_train_epochs = 10
|
34 |
+
noise_offset = 0.0
|
35 |
+
keep_tokens = 0
|
36 |
+
xformers = true
|
37 |
+
lowram = false
|
38 |
+
clip_skip = 2
|
39 |
+
mixed_precision = "fp16"
|
40 |
+
save_precision = "fp16"
|
41 |
+
|
42 |
+
[sample_prompt]
|
43 |
+
sample_sampler = "euler_a"
|
44 |
+
sample_every_n_epochs = 1
|
45 |
+
|
46 |
+
[saving]
|
47 |
+
output_name = "output_name"
|
48 |
+
save_every_n_epochs = 1
|
49 |
+
save_n_epoch_ratio = 0
|
50 |
+
save_last_n_epochs = 499
|
51 |
+
save_state = false
|
52 |
+
save_model_as = "safetensors"
|
53 |
+
output_dir = "./output"
|
54 |
+
logging_dir = "./logs"
|
55 |
+
log_prefix = "output_name"
|
56 |
+
|
57 |
+
[others]
|
58 |
+
min_bucket_reso = 256
|
59 |
+
max_bucket_reso = 1024
|
60 |
+
caption_extension = ".txt"
|
61 |
+
max_token_length = 225
|
62 |
+
seed = 1337
|