kiriyamaX commited on
Commit
4b1f882
1 Parent(s): 71289a2

Upload bench_config.yaml

Browse files
Files changed (1) hide show
  1. bench_config.yaml +130 -0
bench_config.yaml ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: test-run
2
+
3
+ trainer:
4
+ model_path: "nai_diffusers"
5
+ # model_url: ""
6
+ # init_batch_size: 12
7
+ batch_size: 6
8
+ resolution: 512
9
+ center_crop: false
10
+ gradient_checkpointing: true
11
+ clip_skip: 2
12
+ seed: 1138
13
+ use_ema: false
14
+ use_hivemind: false
15
+ use_xformers: true
16
+ lr_scale: sqrt
17
+ train_text_encoder: false
18
+ attention_slicing: false
19
+ vae_slicing: true
20
+
21
+ offset_noise: true
22
+ offset_noise_val: 0.06
23
+ min_snr: true
24
+ min_snr_val: 3
25
+
26
+ checkpoint:
27
+ monitor: 'epoch'
28
+ dirpath: checkpoint_bench
29
+ filename: 'sample-nd-epoch{epoch:02d}'
30
+ auto_insert_metric_name: false
31
+ every_n_epochs: 1
32
+ save_top_k: -1
33
+ mode: 'max'
34
+ save_last: False
35
+
36
+ lightning:
37
+ accelerator: gpu
38
+ devices: -1
39
+ auto_select_gpus: true
40
+ # limit_train_batches: 100
41
+ max_epochs: 20
42
+ precision: 16
43
+ log_every_n_steps: 1
44
+ accumulate_grad_batches: 1
45
+ gradient_clip_val: 0
46
+ auto_scale_batch_size: false
47
+ auto_lr_find: false
48
+
49
+ arb:
50
+ enabled: true
51
+ debug: false
52
+ base_res: [512, 512]
53
+ max_size: [768, 512]
54
+ divisible: 64
55
+ max_ar_error: 4
56
+ min_dim: 256
57
+ dim_limit: 1024
58
+
59
+ dataset:
60
+ img_path:
61
+ - "/home/ec2-user/SageMaker/minibench/images"
62
+ center_crop: false
63
+ ucg: 0.07
64
+ debug_arb: false
65
+ num_workers: 6
66
+ process_tags: true
67
+ important_tags: []
68
+ allow_duplicates: false
69
+ augment:
70
+ enabled: true
71
+ debug: false
72
+ dropout: 0.8
73
+ methods:
74
+ adjust_brightness: 0.04
75
+ adjust_contrast: 0.05
76
+ rotate_with_crop: 3
77
+
78
+ optimizer:
79
+ name: lion_pytorch.lion_pytorch.Lion
80
+ params:
81
+ lr: 1.7e-7
82
+ weight_decay: 1e-2
83
+ # eps: 1e-8
84
+
85
+ lr_scheduler:
86
+ name: torch.optim.lr_scheduler.CosineAnnealingLR
87
+ warmup:
88
+ enabled: true
89
+ init_lr: 2e-8
90
+ num_warmup: 50
91
+ strategy: "cos"
92
+ params:
93
+ T_max: 6
94
+ eta_min: 1e-7
95
+ last_epoch: -1
96
+
97
+ monitor:
98
+ wandb_id: ""
99
+ huggingface_repo: ""
100
+ hf_auth_token: ""
101
+ store_checkpoints: true
102
+
103
+ sampling:
104
+ enabled: true
105
+ use_wandb: true
106
+ every_n_steps: 112
107
+ every_n_epochs: 1
108
+ save_dir: "samples"
109
+ seed: 1139
110
+ height: 768
111
+ width: 512
112
+ steps: 20
113
+ cfg_scale: 7
114
+ negative_prompts:
115
+ - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
116
+ - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
117
+ - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
118
+ - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
119
+ - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
120
+ prompts:
121
+ - "best quality, a girl with a yellow hat and a yellow shirt, sitting, white legwear, uniform, jacket, thighhighs, bare shoulders, high contrast, paint splatter"
122
+ - "best quality, 1girl, solo, loli, cat girl, silver hair ,blue eyes, flat chest, solo, beautiful detailed background, messy hair, long hair"
123
+ - "masterpiece, best quality, 1girl, a clean painting of a girl with long white hair drinking coffee in a coffee bar"
124
+ - "best quality, 1girl, a clean painting of a girl with long white hair drinking coffee in a coffee bar"
125
+ - "1girl, a clean painting of a girl with long white hair drinking coffee in a coffee bar"
126
+
127
+ encoder:
128
+ # Leave blank to load from model
129
+ text:
130
+ vae: