upload to HF
Browse files
anima_sdxl_config/config_file.toml
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[sdxl_arguments]
|
2 |
+
cache_text_encoder_outputs = true
|
3 |
+
enable_bucket = true
|
4 |
+
no_half_vae = true
|
5 |
+
cache_latents = true
|
6 |
+
cache_latents_to_disk = true
|
7 |
+
vae_batch_size = 4
|
8 |
+
min_timestep = 0
|
9 |
+
max_timestep = 1000
|
10 |
+
shuffle_caption = false
|
11 |
+
|
12 |
+
[model_arguments]
|
13 |
+
pretrained_model_name_or_path = "/content/pretrained_model/sd_xl_base_0.9.safetensors"
|
14 |
+
vae = "/content/vae/sdxl_vae.safetensors"
|
15 |
+
|
16 |
+
[dataset_arguments]
|
17 |
+
debug_dataset = false
|
18 |
+
in_json = "/content/fine_tune/meta_clean.json"
|
19 |
+
train_data_dir = "/content/fine_tune/train_data"
|
20 |
+
dataset_repeats = 1
|
21 |
+
keep_tokens = 0
|
22 |
+
resolution = "1024,1024"
|
23 |
+
caption_dropout_rate = 0
|
24 |
+
caption_tag_dropout_rate = 0
|
25 |
+
caption_dropout_every_n_epochs = 0
|
26 |
+
color_aug = false
|
27 |
+
token_warmup_min = 1
|
28 |
+
token_warmup_step = 0
|
29 |
+
|
30 |
+
[training_arguments]
|
31 |
+
output_dir = "/content/fine_tune/output"
|
32 |
+
output_name = "anima_sdxl"
|
33 |
+
save_precision = "fp16"
|
34 |
+
save_every_n_steps = 1000
|
35 |
+
train_batch_size = 4
|
36 |
+
max_token_length = 225
|
37 |
+
mem_eff_attn = false
|
38 |
+
xformers = true
|
39 |
+
max_train_steps = 10000
|
40 |
+
max_data_loader_n_workers = 8
|
41 |
+
persistent_data_loader_workers = true
|
42 |
+
gradient_checkpointing = true
|
43 |
+
gradient_accumulation_steps = 1
|
44 |
+
mixed_precision = "no"
|
45 |
+
|
46 |
+
[logging_arguments]
|
47 |
+
log_with = "tensorboard"
|
48 |
+
logging_dir = "/content/fine_tune/logs"
|
49 |
+
log_prefix = "anima_sdxl"
|
50 |
+
|
51 |
+
[sample_prompt_arguments]
|
52 |
+
sample_every_n_steps = 100
|
53 |
+
sample_sampler = "euler_a"
|
54 |
+
|
55 |
+
[saving_arguments]
|
56 |
+
save_model_as = "safetensors"
|
57 |
+
|
58 |
+
[optimizer_arguments]
|
59 |
+
optimizer_type = "AdaFactor"
|
60 |
+
learning_rate = 1e-6
|
61 |
+
max_grad_norm = 1.0
|
62 |
+
optimizer_args = [ "scale_parameter=False", "relative_step=False", "warmup_init=False",]
|
63 |
+
lr_scheduler = "cosine_with_restarts"
|
64 |
+
lr_warmup_steps = 100
|
65 |
+
lr_scheduler_num_cycles = 0
|
66 |
+
|
67 |
+
[advanced_training_config]
|
anima_sdxl_config/sample_prompt.toml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[prompt]
|
2 |
+
negative_prompt = " 3d render, smooth, plastic, blurry, grainy, low-resolution, deep-fried, oversaturated"
|
3 |
+
width = 1024
|
4 |
+
height = 1024
|
5 |
+
scale = 7
|
6 |
+
sample_steps = 28
|
7 |
+
[[prompt.subset]]
|
8 |
+
prompt = "masterpiece, best quality, a woman in a red and white outfit is dancing in the air with a moon in the background and a red and gold scarf"
|
9 |
+
|