AaronCIH commited on
Commit
bb9364b
·
verified ·
1 Parent(s): faef4a9

Upload Models/checkpoints/sd35_iqair_end2end/output_composite/sd35m_d2c_multi_bf16_lr2e6/config.yaml with huggingface_hub

Browse files
Models/checkpoints/sd35_iqair_end2end/output_composite/sd35m_d2c_multi_bf16_lr2e6/config.yaml ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data:
2
+ data_dir:
3
+ - /home/work/shared-fi-datasets-01/users/hsiang.chen/Project/Datasets/IR
4
+ caption_proportion:
5
+ prompt: 1
6
+ external_caption_suffixes: []
7
+ external_clipscore_suffixes: []
8
+ clip_thr_temperature: 0.1
9
+ clip_thr: 25.0
10
+ del_img_clip_thr: 0.0
11
+ sort_dataset: false
12
+ load_text_feat: false
13
+ load_vae_feat: false
14
+ transform: default_train
15
+ type: IRImgDataset
16
+ image_size: 256
17
+ hq_only: false
18
+ valid_num: 0
19
+ data: null
20
+ extra: null
21
+ dset: train_brief
22
+ max_samples: null
23
+ use_tokens: ALL
24
+ max_tokens: 400
25
+ caption_type: question
26
+ return_meta: true
27
+ need_resize: true
28
+ synthetic_composite: true
29
+ model:
30
+ model: SD35M_D2C
31
+ model_pretrained: ./checkpoints/stable-diffusion-3.5-medium/sd3.5_medium.safetensors
32
+ shift: 3.0
33
+ teacher: null
34
+ input_channel: 16
35
+ image_size: 256
36
+ mixed_precision: bf16
37
+ fp32_attention: true
38
+ load_from: /home/work/shared-fi-datasets-01/users/hsiang.chen/Project/IR/sd35_pix2pix/output/sd35m_d2c_breif/checkpoints/epoch_100_step_302601.pth
39
+ discriminator_model: null
40
+ teacher_model: null
41
+ teacher_model_weight_dtype: null
42
+ resume_from: null
43
+ aspect_ratio_type: ASPECT_RATIO_1024
44
+ multi_scale: false
45
+ pe_interpolation: 1.0
46
+ micro_condition: false
47
+ attn_type: linear
48
+ autocast_linear_attn: false
49
+ ffn_type: glumbconv
50
+ mlp_acts:
51
+ - silu
52
+ - silu
53
+ - null
54
+ mlp_ratio: 2.5
55
+ use_pe: false
56
+ pos_embed_type: sincos
57
+ qk_norm: false
58
+ class_dropout_prob: 0.1
59
+ linear_head_dim: 32
60
+ cross_norm: false
61
+ cross_attn_type: flash
62
+ logvar: false
63
+ cfg_scale: 4
64
+ cfg_embed: false
65
+ cfg_embed_scale: 1.0
66
+ guidance_type: classifier-free
67
+ pag_applied_layers:
68
+ - 8
69
+ ladd_multi_scale: true
70
+ head_block_ids: null
71
+ extra: null
72
+ vae:
73
+ vae_type: SDVAE
74
+ vae_pretrained: ./checkpoints/stable-diffusion-3.5-medium/sd3.5_medium.safetensors
75
+ weight_dtype: float32
76
+ scale_factor: 0.41407
77
+ vae_latent_dim: 16
78
+ vae_downsample_rate: 8
79
+ sample_posterior: true
80
+ extra: null
81
+ text_encoder:
82
+ text_encoder_name: empty
83
+ text_encoder_pretrained: ./checkpoints/stable-diffusion-3.5-medium/text_encoders
84
+ caption_channels: 4096
85
+ y_norm: true
86
+ y_norm_scale_factor: 0.01
87
+ model_max_length: 300
88
+ chi_prompt:
89
+ - a photo of a cat
90
+ - Convenience store entrance at night. On the glass door, a vinyl decal reads
91
+ 'OPEN FOR QUALITY'. Inside, shelves and fluorescent lights; outside, a cyclist
92
+ passing by
93
+ - Sunrise beach, shallow tide washing over smooth sand. A piece of weathered driftwood
94
+ lies near the shoreline with a subtle branded text [SOS] on its surface; wet
95
+ sand reflections, micro-ripples, sun flare at horizon.
96
+ extra: null
97
+ connector:
98
+ model: QFormer
99
+ model_pretrained: None
100
+ input_channel: 4096
101
+ num_input_tokens: 400
102
+ num_query_tokens: 77
103
+ hidden_dim: 1024
104
+ layers: 8
105
+ heads: 16
106
+ resume_from: None
107
+ load_from: /home/work/shared-fi-datasets-01/users/hsiang.chen/Project/IQAIR/sd35_conditioning_s1/output/sd35m_p2p_breif_connector/checkpoints/epoch_100_step_19001.pth
108
+ assessment:
109
+ model: SDQA
110
+ model_config: ./iqa/config.yaml
111
+ scheduler:
112
+ train_sampling_steps: 1000
113
+ predict_flow_v: true
114
+ noise_schedule: linear_flow
115
+ pred_sigma: false
116
+ learn_sigma: true
117
+ vis_sampler: flow_dpm-solver
118
+ flow_shift: 3.0
119
+ weighting_scheme: logit_normal
120
+ weighting_scheme_discriminator: logit_normal_trigflow
121
+ add_noise_timesteps:
122
+ - 1.5708
123
+ logit_mean: 0.0
124
+ logit_std: 1.0
125
+ logit_mean_discriminator: 0.0
126
+ logit_std_discriminator: 1.0
127
+ sigma_data: 0.5
128
+ timestep_norm_scale_factor: 1.0
129
+ extra: null
130
+ recur_round: 4
131
+ recur_truncated: false
132
+ recur_loss_weights:
133
+ - 0.2
134
+ - 0.4
135
+ - 0.6
136
+ - 1.0
137
+ update_image: true
138
+ train:
139
+ train_type: bf16
140
+ resume_from: None
141
+ num_workers: 10
142
+ seed: 1229
143
+ train_batch_size: 1
144
+ num_epochs: 100
145
+ gradient_accumulation_steps: 16
146
+ grad_checkpointing: true
147
+ gradient_clip: 0.1
148
+ gc_step: 1
149
+ optimizer:
150
+ betas:
151
+ - 0.9
152
+ - 0.999
153
+ - 0.9999
154
+ eps:
155
+ - 1.0e-30
156
+ - 1.0e-16
157
+ lr: 2.0e-06
158
+ type: CAMEWrapper
159
+ weight_decay: 0.0
160
+ optimizer_D:
161
+ eps: 1.0e-10
162
+ lr: 0.0001
163
+ type: AdamW
164
+ weight_decay: 0.03
165
+ load_from_optimizer: false
166
+ load_from_lr_scheduler: false
167
+ resume_lr_scheduler: true
168
+ lr_schedule: cosine
169
+ lr_schedule_args:
170
+ num_warmup_steps: 2000
171
+ auto_lr:
172
+ rule: sqrt
173
+ eval_batch_size: 16
174
+ use_fsdp: false
175
+ use_flash_attn: false
176
+ eval_sampling_steps: 1000
177
+ lora_rank: 4
178
+ log_interval: 100
179
+ mask_type: 'null'
180
+ mask_loss_coef: 0.0
181
+ load_mask_index: false
182
+ snr_loss: false
183
+ real_prompt_ratio: 1.0
184
+ early_stop_hours: 10000.0
185
+ save_image_epochs: 1
186
+ save_model_epochs: 1
187
+ save_model_steps: 5000
188
+ visualize: true
189
+ null_embed_root: output/pretrained_models/
190
+ valid_prompt_embed_root: output/tmp_embed/
191
+ validation_prompts:
192
+ - dog
193
+ - portrait photo of a girl, photograph, highly detailed face, depth of field
194
+ - Self-portrait oil painting, a beautiful cyborg with golden hair, 8k
195
+ - Astronaut in a jungle, cold color palette, muted colors, detailed, 8k
196
+ - A photo of beautiful mountain with realistic sunset and blue lake, highly detailed,
197
+ masterpiece
198
+ local_save_vis: true
199
+ deterministic_validation: true
200
+ online_metric: false
201
+ eval_metric_step: 2000
202
+ online_metric_dir: metric_helper
203
+ work_dir: output_c2c/sd35m_d2c_multi
204
+ skip_step: 0
205
+ loss_type: huber
206
+ huber_c: 0.001
207
+ num_ddim_timesteps: 50
208
+ ema_decay: 0.95
209
+ debug_nan: false
210
+ ema_update: false
211
+ ema_rate: 0.9999
212
+ tangent_warmup_steps: 10000
213
+ scm_cfg_scale:
214
+ - 1.0
215
+ cfg_interval: null
216
+ scm_logvar_loss: true
217
+ norm_invariant_to_spatial_dim: true
218
+ norm_same_as_512_scale: false
219
+ g_norm_constant: 0.1
220
+ g_norm_r: 1.0
221
+ show_gradient: false
222
+ lr_scale: null
223
+ adv_lambda: 1.0
224
+ scm_loss: true
225
+ scm_lambda: 1.0
226
+ loss_scale: 1.0
227
+ r1_penalty: false
228
+ r1_penalty_weight: 1.0e-05
229
+ diff_timesteps_D: true
230
+ suffix_checkpoints: disc
231
+ misaligned_pairs_D: false
232
+ discriminator_loss: cross entropy
233
+ largest_timestep: 1.5708
234
+ train_largest_timestep: false
235
+ largest_timestep_prob: 0.5
236
+ extra: null
237
+ controlnet: null
238
+ model_growth: null
239
+ work_dir: output_composite/sd35m_d2c_multi_bf16_lr2e6
240
+ resume_from: null
241
+ load_from: null
242
+ debug: true
243
+ caching: false
244
+ report_to: tensorboard
245
+ tracker_project_name: sana-baseline
246
+ name: tmp
247
+ loss_report_name: loss