EvGUT commited on
Commit
fc19c02
·
1 Parent(s): 6e521d2

Create hyperparams.yaml

Browse files
Files changed (1) hide show
  1. hyperparams.yaml +53 -0
hyperparams.yaml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ############################################################################
2
+ # Model: ResNet for Speaker verification
3
+ # ############################################################################
4
+
5
+ # Feature parameters
6
+ n_mels: 80
7
+
8
+ # Pretrain folder (HuggingFace)
9
+ pretrained_path: EvGUT/speechbrain_bcm5
10
+
11
+ # Output parameters
12
+ out_n_neurons: 235
13
+
14
+ # Model params
15
+ compute_features: !new:speechbrain.lobes.features.Fbank
16
+ n_mels: !ref <n_mels>
17
+
18
+ mean_var_norm: !new:speechbrain.processing.features.InputNormalization
19
+ norm_type: sentence
20
+ std_norm: False
21
+
22
+ embedding_model: !new:speechbrain.lobes.models.ResNet.ResNet
23
+ input_size: !ref <n_mels>
24
+ channels: [128, 128, 256, 256]
25
+ strides: [1, 2, 2, 2]
26
+ block_sizes: [3, 4, 6, 3]
27
+ lin_neurons: 512
28
+
29
+ classifier: !new:speechbrain.lobes.models.ResNet.Classifier
30
+ input_size: 512
31
+ out_neurons: !ref <out_n_neurons>
32
+
33
+ mean_var_norm_emb: !new:speechbrain.processing.features.InputNormalization
34
+ norm_type: global
35
+ std_norm: False
36
+
37
+ modules:
38
+ compute_features: !ref <compute_features>
39
+ mean_var_norm: !ref <mean_var_norm>
40
+ embedding_model: !ref <embedding_model>
41
+ mean_var_norm_emb: !ref <mean_var_norm_emb>
42
+ classifier: !ref <classifier>
43
+
44
+ label_encoder: !new:speechbrain.dataio.encoder.CategoricalEncoder
45
+
46
+
47
+ pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer
48
+ loadables:
49
+ embedding_model: !ref <embedding_model>
50
+ classifier: !ref <classifier>
51
+ paths:
52
+ embedding_model: !ref <pretrained_path>/embedding_model.ckpt
53
+ classifier: !ref <pretrained_path>/classifier.ckpt