AaronCIH commited on
Commit
db516d8
·
verified ·
1 Parent(s): ecad672

Upload Models/checkpoints/sd35_iqair_end2end/sd35m_end2end/config.yaml with huggingface_hub

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