Default38693 commited on
Commit
efea158
1 Parent(s): 5fd6966

Create LionBase.toml

Browse files
Files changed (1) hide show
  1. Lion/LionBase.toml +56 -0
Lion/LionBase.toml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [Path]
2
+ pretrained_model_name_or_path = "/notebooks/box/Trim.safetensors"
3
+ train_data_dir = "/notebooks/LoRA_Image/"
4
+
5
+ __root_dir = "/notebooks/LoRA/sd-scripts/"
6
+ logging_dir = "calc:f'{__root_dir}logs'"
7
+ output_dir = "calc:f'{__root_dir}outputs'"
8
+ sample_prompts = "/notebooks/LoRA_Setting/A.txt"
9
+
10
+ [Prompt]
11
+ sample_every_n_epochs = 1
12
+ sample_sampler = "k_euler_a"
13
+
14
+ [Else]
15
+ shuffle_caption = true
16
+ caption_extension = ".txt"
17
+ keep_tokens = 1
18
+
19
+ color_aug = true
20
+
21
+ __upper_px = 512
22
+ __resolution_x = "calc:512 + __upper_px"
23
+ __resolution_y = "calc:512 + __upper_px"
24
+
25
+ resolution = "calc:f'{__resolution_x},{__resolution_y}'"
26
+ enable_bucket = true
27
+ min_bucket_reso = "calc:320 + __upper_px"
28
+ bucket_no_upscale = true
29
+ caption_dropout_every_n_epochs = 9
30
+ caption_tag_dropout_rate = 0.2
31
+ save_every_n_epochs = 2
32
+ train_batch_size = 1
33
+ xformers = true
34
+ max_train_epochs = 14
35
+ persistent_data_loader_workers = true
36
+ seed = 987
37
+ mixed_precision = "fp16"
38
+ save_precision = "ref:mixed_precision"
39
+ clip_skip = 2
40
+
41
+ optimizer_type = "Lion"
42
+ __div_rate = 8
43
+ learning_rate = "calc:1.0e-4 / __div_rate"
44
+ text_encoder_lr= "calc:5.0e-5 / __div_rate"
45
+ unet_lr = "ref:learning_rate"
46
+
47
+ lr_scheduler = "cosine_with_restarts"
48
+ lr_warmup_steps = 500
49
+ lr_scheduler_num_cycles = 4
50
+
51
+ network_module = "networks.lora"
52
+ network_dim = 128
53
+ network_alpha = "calc:float(network_dim) / 2.0"
54
+
55
+ __upper_mixed_precision = "calc:mixed_precision.upper()"
56
+ output_name = "calc:f'Akashi_{optimizer_type}Div{__div_rate}1024Px'"