-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathhcp_lokr.yaml
73 lines (58 loc) · 1.4 KB
/
hcp_lokr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
_base_:
- example_configs/training_configs/hcp/base_dataset.yaml
- example_configs/training_configs/hcp/train_base.yaml
- example_configs/training_configs/hcp/tuning_base.yaml
plugin_unet:
lokr:
_target_: lycoris.hcp.LokrBlock.wrap_model
_partial_: True
lr: 1e-4
dim: 10000
alpha: 0
factor: 8
layers:
- 're:.*\.attn.?$'
- 're:.*\.ff$'
plugin_TE:
lokr:
_target_: lycoris.hcp.LokrBlock.wrap_model
_partial_: True
lr: 1e-4
dim: 10000
alpha: 0
factor: 8
layers:
- 're:.*self_attn$'
- 're:.*mlp$'
tokenizer_pt:
train: null
train:
train_steps: 100
gradient_accumulation_steps: 1
save_step: 100
scheduler:
name: 'constant'
num_training_steps: 100
loss:
criterion: # min SNR loss
_target_: hcpdiff.loss.MinSNRLoss
gamma: 5.0
model:
pretrained_model_name_or_path: 'KBlueLeaf/kohaku-v4-rev1.2'
clip_skip: 1
tokenizer_repeats: 1
ema_unet: 0
ema_text_encoder: 0
data:
dataset1:
batch_size: 4
cache_latents: False
source:
data_source1:
img_root: 'F:\dataset\yog_lora\10_yog_pre'
prompt_template: 'example_configs/training_configs/hcp/hcp_caption.txt'
caption_file: 'F:\dataset\yog_lora\10_yog_pre'
bucket:
_target_: hcpdiff.data.bucket.RatioBucket.from_files # aspect ratio bucket
target_area: ${hcp.eval:"512*512"}
num_bucket: 12