bianxing77 commited on
Commit
9b69ae9
·
verified ·
1 Parent(s): 9e4679b

Upload config.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.yaml +129 -0
config.yaml ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data:
2
+ train: ["audiocaps"]
3
+ val: "audiocaps"
4
+ test: "audiocaps"
5
+ mix_train: "train"
6
+ class_label_indices: "audiocaps"
7
+ dataloader_add_ons: []
8
+ mix_audio: true
9
+ random_empty: 0.0001
10
+
11
+ step:
12
+ validation_every_n_epochs: 1
13
+ save_checkpoint_every_n_steps: 100000
14
+ max_steps: 4000000
15
+ save_top_k: 4
16
+
17
+ preprocessing:
18
+ audio:
19
+ sampling_rate: 16000
20
+ max_wav_value: 32768.0
21
+ duration: 10.24
22
+ stft:
23
+ filter_length: 1024
24
+ hop_length: 160
25
+ win_length: 1024
26
+ mel:
27
+ n_mel_channels: 64
28
+ mel_fmin: 0
29
+ mel_fmax: 8000
30
+
31
+ augmentation:
32
+ mixup: 0.0
33
+
34
+ model:
35
+ target: latent_diffusion.models.ddpm_flow.LatentDiffusion
36
+ params:
37
+ base_learning_rate: 5.0e-05
38
+ sampling_rate: 16000
39
+ batchsize: 8
40
+ linear_start: 0.0015
41
+ linear_end: 0.0195
42
+ num_timesteps_cond: 1
43
+ log_every_t: 200
44
+ timesteps: 1000
45
+ unconditional_prob_cfg: 0.1
46
+ parameterization: eps # [eps, x0, v]
47
+ first_stage_key: fbank
48
+ latent_t_size: 256 # TODO might need to change
49
+ latent_f_size: 16
50
+ channels: 8 # TODO might need to change
51
+ extra_channels: true
52
+ extra_channel_key: mixed_mel
53
+ monitor: val/loss_simple_ema
54
+ scale_by_std: true
55
+ clap_trainable: false
56
+ retrival_num: 0
57
+ use_clap: false
58
+ euler: true
59
+ unet_config:
60
+ target: latent_diffusion.modules.diffusionmodules.openaimodel.UNetModel
61
+ params:
62
+ image_size: 64 # Ignore this parameter
63
+ context_dim:
64
+ - 1024
65
+ in_channels: 16 # The input channel of the UNet model
66
+ out_channels: 16 # TODO might need to change
67
+ model_channels: 128 # TODO might need to change
68
+ attention_resolutions:
69
+ - 8
70
+ - 4
71
+ - 2
72
+ num_res_blocks: 2
73
+ channel_mult:
74
+ - 1
75
+ - 2
76
+ - 3
77
+ - 5
78
+ num_head_channels: 32
79
+ use_spatial_transformer: true
80
+ transformer_depth: 1
81
+ first_stage_config:
82
+ base_learning_rate: 4.5e-05
83
+ target: latent_encoder.autoencoder.AutoencoderKL
84
+ params:
85
+ # reload_from_ckpt: "model_logs/pretrained/vae.ckpt"
86
+ reload_from_ckpt: "/gpfs-flash/hulab/public_datasets/audio_datasets/USS-Qwen/models/FlowSep/vae.ckpt"
87
+ batchsize: 2
88
+ monitor: val/rec_loss
89
+ image_key: fbank
90
+ subband: 1
91
+ embed_dim: 8
92
+ time_shuffle: 1
93
+ lossconfig:
94
+ target: latent_diffusion.modules.losses.LPIPSWithDiscriminator
95
+ params:
96
+ disc_start: 50001
97
+ kl_weight: 1.0
98
+ disc_weight: 0.5
99
+ disc_in_channels: 1
100
+ ddconfig:
101
+ double_z: true
102
+ z_channels: 8
103
+ resolution: 256
104
+ mel_bins: 64
105
+ downsample_time: false
106
+ in_channels: 1
107
+ out_ch: 1
108
+ ch: 128
109
+ ch_mult:
110
+ - 1
111
+ - 2
112
+ - 4
113
+ num_res_blocks: 2
114
+ attn_resolutions: []
115
+ dropout: 0.0
116
+ cond_stage_config:
117
+ crossattn_text:
118
+ cond_stage_key: caption
119
+ conditioning_key: crossattn
120
+ target: latent_diffusion.modules.encoders.modules.FlanT5HiddenState
121
+ params:
122
+ emb_num: 1
123
+ input_caption: true
124
+
125
+
126
+ evaluation_params:
127
+ unconditional_guidance_scale: 1.0 #
128
+ ddim_sampling_steps: 10
129
+ n_candidates_per_samples: 1