swsn21 commited on
Commit
0ca8246
ยท
verified ยท
1 Parent(s): f1ce1b9

Upload momostyle_anima_v3.toml

Browse files
Files changed (1) hide show
  1. momostyle_anima_v3.toml +108 -0
momostyle_anima_v3.toml ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # momostyle_anima_v3 โ€” WAI-ANIMA ๋ฒ ์ด์Šค ์ง์ ‘ ํ•™์ŠตํŒ
2
+ # ๋ณ€๊ฒฝ: ๋ฒ ์ด์Šค anima-base โ†’ WAI-ANIMA(CP_W), ์—ํญ 32โ†’50 (์ด ~15,700์Šคํ…). ๋‚˜๋จธ์ง€ v2 ๋™์ผ
3
+ # ์‚ฐ์‹: 314์žฅ ร— 50ep รท batch1 = 15,700์Šคํ… / ๊ทผ๊ฑฐ: v2๊ฐ€ anima-base ํ•™์Šตโ†’WAI ์ถ”๋ก  ์ „์ด ์‹คํŒจ ์ •ํ™ฉ
4
+ # ๋ฒ ์ด์Šค: v1 ์™„์ฃผ ๊ฒ€์ฆ๋œ ํŠธ๋ ˆ์ด๋„ˆ ํ‚ค ์ฒด๊ณ„. ๋ณ€๊ฒฝ์ ์€ [๋ณ€๊ฒฝ] ์ฃผ์„ ์ฐธ์กฐ.
5
+
6
+ model_train_type = "anima-lora"
7
+ lora_type = "lora"
8
+ pretrained_model_name_or_path = "./sd-models/anima/wai-anima.safetensors"
9
+ vae = "./sd-models/anima/qwen_image_vae.safetensors"
10
+ qwen3 = "./sd-models/anima/qwen_3_06b_base.safetensors"
11
+ qwen3_max_token_length = 512
12
+ t5_max_token_length = 512
13
+
14
+ # --- Rectified Flow [์ •์ •: ์„ฑ๊ณต ์ด๋ ฅ run์˜ sigmoid โ€” shift/3.0์€ '๋˜๋‹ค ๋งŒ' run์˜ ๊ฐ’์ด์—ˆ์Œ] ---
15
+ timestep_sampling = "sigmoid"
16
+ sigmoid_scale = 1
17
+ discrete_flow_shift = 3 # sigmoid ๋ชจ๋“œ์—์„œ๋Š” ๋ฏธ์‚ฌ์šฉ (ํ˜•์‹ ์œ ์ง€)
18
+ weighting_scheme = "uniform"
19
+
20
+ attn_mode = "torch"
21
+ split_attn = false
22
+ vae_disable_cache = false
23
+ unsloth_offload_checkpointing = false
24
+
25
+ # --- ๋ฐ์ดํ„ฐ ---
26
+ train_data_dir = "./train/momostyle"
27
+ prior_loss_weight = 1
28
+ resolution = "1024,1024"
29
+ enable_bucket = true
30
+ min_bucket_reso = 256
31
+ max_bucket_reso = 2048
32
+ bucket_reso_steps = 64
33
+ bucket_no_upscale = true
34
+
35
+ # --- ์ถœ๋ ฅ/์ €์žฅ ---
36
+ output_name = "momostyle_anima_v3"
37
+ output_dir = "./output"
38
+ save_model_as = "safetensors"
39
+ save_precision = "bf16"
40
+ save_every_n_epochs = 1 # ๋งค ์—ํญ ์ €์žฅ โ†’ ๊ณผ์ ํ•ฉ ์ง์ „ ์—ํญ ์‚ฌํ›„ ์„ ํƒ (์•ˆ์ „๋ง)
41
+ save_state = false
42
+
43
+ # --- ํ•™์Šต๋Ÿ‰ [๋ณ€๊ฒฝ: 16โ†’32ep, ์ด ~10,048์Šคํ…] ---
44
+ max_train_epochs = 50
45
+ train_batch_size = 1
46
+ gradient_checkpointing = true
47
+ gradient_accumulation_steps = 1
48
+
49
+ # --- ํ•™์Šต ๋Œ€์ƒ/ํ•™์Šต๋ฅ  [์ •์ •: 8e-5 โ€” ๋ธŒ๋ž˜ํ‚ท ๊ทผ๊ฑฐ๋Š” ํŒŒ์ผ ํ•˜๋‹จ ์ฃผ์„] ---
50
+ network_train_unet_only = true
51
+ network_train_text_encoder_only = false
52
+ learning_rate = 0.00008
53
+ unet_lr = 0.00008 # ์œ ํšจlr ๋ธŒ๋ž˜ํ‚ท: 2.5e-4(๊ณผ๋„ยทbase์†Œ์‹ค) > ? > 2.5e-5(๊ณผ์†Œยท๋˜๋‹ค๋งŒ)
54
+ # 8e-5 = ๋‘ ์‹คํŒจ๊ฐ’์˜ ๊ธฐํ•˜ํ‰๊ท ์ด์ž ์ด์ „ ์„ธ์…˜ ํ™•์ • ๊ฐœ์„ ์•ˆ
55
+ text_encoder_lr = 0.00001 # unet only๋ผ ๋ฌดํšจ, ํ˜•์‹ ์œ ์ง€
56
+ lr_scheduler = "cosine"
57
+ lr_warmup_steps = 250 # ์„ฑ๊ณต ์ด๋ ฅ run์˜ ๊ฐ’ ์ด์‹
58
+
59
+ # --- ์˜ตํ‹ฐ๋งˆ์ด์ € [๋ณ€๊ฒฝ: AdamW8bitโ†’AdamW, ์ปค๋ฎค๋‹ˆํ‹ฐ ์š”๊ตฌ] ---
60
+ optimizer_type = "AdamW" # OOM ๋ฐœ์ƒ ์‹œ์—๋งŒ AdamW8bit๋กœ ํด๋ฐฑ
61
+
62
+ # --- ๋„คํŠธ์›Œํฌ [๋ณ€๊ฒฝ: dim 32โ†’64, alpha 16โ†’64 (๊ฐ์‡„ ์ œ๊ฑฐ)] ---
63
+ network_dim = 64
64
+ network_alpha = 64
65
+ dim_from_weights = false
66
+ network_module = "networks.lora_anima"
67
+ pissa_init = false
68
+
69
+ # --- ์ƒ˜ํ”Œ (์ง„ํ–‰ ์ถ”์ด ๊ด€์ฐฐ โ€” ํ•„์ˆ˜ ์œ ์ง€) ---
70
+ enable_preview = true
71
+ positive_prompts = "momostyle, 1girl, solo, smile, japanese clothes, kimono, blue eyes, closed mouth, upper body, looking at viewer, hair ornament, long hair, yellow kimono, black hair, anime coloring, yukata, choker, split mouth, side ponytail, bow, brown hair"
72
+ negative_prompts = "nsfw, explicit, sexual content, nude, naked, nipples, areola, genitals, cleavage, breasts, ass, buttocks, thighs, underwear, lingerie, bikini, swimsuit, erotic, suggestive, lewd, spread legs, close-up body, transparent clothes, worst quality, low quality, score_1, score_2, score_3, artist name, jpeg artifacts"
73
+ sample_width = 1024
74
+ sample_height = 1024
75
+ sample_cfg = 4.5
76
+ sample_seed = 42
77
+ sample_steps = 40
78
+ sample_sampler = "euler"
79
+ sample_scheduler = "simple"
80
+ sample_at_first = true
81
+ sample_every_n_epochs = 1
82
+
83
+ # --- ๋กœ๊น… ---
84
+ log_with = "tensorboard"
85
+ logging_dir = "./logs"
86
+
87
+ # --- ์บก์…˜ (v1 ๊ฒ€์ฆ๊ฐ’: ์…”ํ”Œ์€ TE ์บ์‹œ์™€ ๋น„ํ˜ธํ™˜์ด๋ผ off) ---
88
+ caption_extension = ".txt"
89
+ shuffle_caption = false
90
+ keep_tokens = 0
91
+ prefer_json_caption = false
92
+
93
+ # --- ๊ธฐํƒ€ (v1 ๊ฒ€์ฆ๊ฐ’ ์œ ์ง€) ---
94
+ seed = 1337
95
+ clip_skip = 1
96
+ mixed_precision = "bf16"
97
+ lowram = false
98
+ cache_latents = true
99
+ cache_latents_to_disk = true
100
+ cache_text_encoder_outputs = true
101
+ cache_text_encoder_outputs_to_disk = true
102
+ persistent_data_loader_workers = false
103
+ fp8_base = false
104
+ fp8_base_unet = false
105
+ max_data_loader_n_workers = 0
106
+ disable_mmap_load_safetensors = false
107
+ cpu_offload_checkpointing = false
108
+ enable_debug_options = false