AaronCIH commited on
Commit
60e8306
·
verified ·
1 Parent(s): 2fbb8ae

Upload Models/checkpoints/sd35_conditioning_s1/config.yaml with huggingface_hub

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