Plachta commited on
Commit
00edd3a
1 Parent(s): e26b69d

Upload config_dit_mel_seed_facodec_small_wavenet_f0.yml

Browse files
config_dit_mel_seed_facodec_small_wavenet_f0.yml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ log_dir: ""
2
+ save_freq: 1
3
+ log_interval: 10
4
+ save_interval: 1000
5
+ device: "cuda"
6
+ epochs: 1000 # number of epochs for first stage training (pre-training)
7
+ batch_size: 2
8
+ batch_length: 100 # maximum duration of audio in a batch (in seconds)
9
+ max_len: 80 # maximum number of frames
10
+ pretrained_model: ""
11
+ pretrained_encoder: ""
12
+ load_only_params: False # set to true if do not want to load epoch numbers and optimizer parameters
13
+
14
+ preprocess_params:
15
+ sr: 22050
16
+ spect_params:
17
+ n_fft: 1024
18
+ win_length: 1024
19
+ hop_length: 256
20
+ n_mels: 80
21
+
22
+ model_params:
23
+ dit_type: "DiT" # uDiT or DiT
24
+ reg_loss_type: "l1" # l1 or l2
25
+
26
+ speech_tokenizer:
27
+ type: 'facodec'
28
+ path: "speech_tokenizer_v1.onnx"
29
+
30
+ cosyvoice:
31
+ path: "../CosyVoice/pretrained_models/CosyVoice-300M"
32
+
33
+ style_encoder:
34
+ dim: 192
35
+ campplus_path: "campplus_cn_common.bin"
36
+
37
+ DAC:
38
+ encoder_dim: 64
39
+ encoder_rates: [2, 5, 5, 6]
40
+ decoder_dim: 1536
41
+ decoder_rates: [ 6, 5, 5, 2 ]
42
+ sr: 24000
43
+
44
+ length_regulator:
45
+ channels: 512
46
+ is_discrete: true
47
+ content_codebook_size: 1024
48
+ in_frame_rate: 80
49
+ out_frame_rate: 80
50
+ sampling_ratios: [1, 1, 1, 1]
51
+ token_dropout_prob: 0.3 # probability of performing token dropout
52
+ token_dropout_range: 1.0 # maximum percentage of tokens to drop out
53
+ n_codebooks: 3
54
+ quantizer_dropout: 0.5
55
+ f0_condition: true
56
+ n_f0_bins: 512
57
+
58
+ DiT:
59
+ hidden_dim: 512
60
+ num_heads: 8
61
+ depth: 13
62
+ class_dropout_prob: 0.1
63
+ block_size: 8192
64
+ in_channels: 80
65
+ style_condition: true
66
+ final_layer_type: 'wavenet'
67
+ target: 'mel' # mel or codec
68
+ content_dim: 512
69
+ content_codebook_size: 1024
70
+ content_type: 'discrete'
71
+ f0_condition: true
72
+ n_f0_bins: 512
73
+ content_codebooks: 1
74
+ is_causal: false
75
+ long_skip_connection: true
76
+ zero_prompt_speech_token: false # for prompt component, do not input corresponding speech token
77
+ time_as_token: false
78
+ style_as_token: false
79
+ uvit_skip_connection: true
80
+ add_resblock_in_transformer: false
81
+
82
+ wavenet:
83
+ hidden_dim: 512
84
+ num_layers: 8
85
+ kernel_size: 5
86
+ dilation_rate: 1
87
+ p_dropout: 0.2
88
+ style_condition: true
89
+
90
+ loss_params:
91
+ base_lr: 0.0001
92
+ lambda_mel: 45
93
+ lambda_kl: 1.0