yangwang825 commited on
Commit
7f5fd22
1 Parent(s): 57c1dac

Create hyperparams.yaml

Browse files
Files changed (1) hide show
  1. hyperparams.yaml +62 -0
hyperparams.yaml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ############################################################################
2
+ # Model: ECAPA small for Speaker verification
3
+ # Authors: Yang Wang
4
+ # ############################################################################
5
+
6
+ # Feature parameters
7
+ n_mels: 80
8
+ deltas: False
9
+
10
+ # Pretrain folder (HuggingFace)
11
+ pretrained_path: yangwang825/ecapa-tdnn-vox2
12
+
13
+ # Output parameters
14
+ out_n_neurons: 5994
15
+
16
+ # Model params
17
+ compute_features: !new:speechbrain.lobes.features.Fbank
18
+ n_mels: !ref <n_mels>
19
+ deltas: !ref <deltas>
20
+
21
+ mean_var_norm: !new:speechbrain.processing.features.InputNormalization
22
+ norm_type: sentence
23
+ std_norm: False
24
+
25
+ embedding_model: !new:speechbrain.lobes.models.ECAPA_TDNN.ECAPA_TDNN
26
+ input_size: !ref <n_mels>
27
+ channels: [512, 512, 512, 512, 1536]
28
+ kernel_sizes: [5, 3, 3, 3, 1]
29
+ dilations: [1, 2, 3, 4, 1]
30
+ groups: [1, 1, 1, 1, 1]
31
+ attention_channels: 128
32
+ lin_neurons: 192
33
+
34
+ classifier: !new:speechbrain.lobes.models.ECAPA_TDNN.Classifier
35
+ input_size: 192
36
+ out_neurons: !ref <out_n_neurons>
37
+
38
+ mean_var_norm_emb: !new:speechbrain.processing.features.InputNormalization
39
+ norm_type: global
40
+ std_norm: False
41
+
42
+ modules:
43
+ compute_features: !ref <compute_features>
44
+ mean_var_norm: !ref <mean_var_norm>
45
+ embedding_model: !ref <embedding_model>
46
+ mean_var_norm_emb: !ref <mean_var_norm_emb>
47
+ classifier: !ref <classifier>
48
+
49
+ label_encoder: !new:speechbrain.dataio.encoder.CategoricalEncoder
50
+
51
+
52
+ pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer
53
+ loadables:
54
+ embedding_model: !ref <embedding_model>
55
+ mean_var_norm_emb: !ref <mean_var_norm_emb>
56
+ classifier: !ref <classifier>
57
+ label_encoder: !ref <label_encoder>
58
+ paths:
59
+ embedding_model: !ref <pretrained_path>/embedding_model.ckpt
60
+ mean_var_norm_emb: !ref <pretrained_path>/mean_var_norm_emb.ckpt
61
+ classifier: !ref <pretrained_path>/classifier.ckpt
62
+ label_encoder: !ref <pretrained_path>/label_encoder.txt