Create hyperparams.yaml
Browse files- hyperparams.yaml +60 -0
hyperparams.yaml
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Feature parameters
|
| 2 |
+
n_mels: 24
|
| 3 |
+
|
| 4 |
+
# Pretrain folder (HuggingFace)
|
| 5 |
+
pretrained_path: Ocelotr/xvec_ver3
|
| 6 |
+
|
| 7 |
+
# Output parameters
|
| 8 |
+
out_n_neurons: 2917
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
# Model params
|
| 13 |
+
compute_features: !new:speechbrain.lobes.features.Fbank
|
| 14 |
+
n_mels: !ref <n_mels>
|
| 15 |
+
|
| 16 |
+
mean_var_norm: !new:speechbrain.processing.features.InputNormalization
|
| 17 |
+
norm_type: sentence
|
| 18 |
+
std_norm: False
|
| 19 |
+
|
| 20 |
+
embedding_model: !new:speechbrain.lobes.models.Xvector.Xvector
|
| 21 |
+
in_channels: !ref <n_mels>
|
| 22 |
+
activation: !name:torch.nn.LeakyReLU
|
| 23 |
+
tdnn_blocks: 5
|
| 24 |
+
tdnn_channels: [512, 512, 512, 512, 1500]
|
| 25 |
+
tdnn_kernel_sizes: [5, 3, 3, 1, 1]
|
| 26 |
+
tdnn_dilations: [1, 2, 3, 1, 1]
|
| 27 |
+
lin_neurons: 512
|
| 28 |
+
|
| 29 |
+
classifier: !new:speechbrain.lobes.models.Xvector.Classifier
|
| 30 |
+
input_shape: [null, null, 512]
|
| 31 |
+
activation: !name:torch.nn.LeakyReLU
|
| 32 |
+
lin_blocks: 1
|
| 33 |
+
lin_neurons: 512
|
| 34 |
+
out_neurons: !ref <out_n_neurons>
|
| 35 |
+
|
| 36 |
+
mean_var_norm_emb: !new:speechbrain.processing.features.InputNormalization
|
| 37 |
+
norm_type: global
|
| 38 |
+
std_norm: False
|
| 39 |
+
|
| 40 |
+
modules:
|
| 41 |
+
compute_features: !ref <compute_features>
|
| 42 |
+
mean_var_norm: !ref <mean_var_norm>
|
| 43 |
+
embedding_model: !ref <embedding_model>
|
| 44 |
+
mean_var_norm_emb: !ref <mean_var_norm_emb>
|
| 45 |
+
classifier: !ref <classifier>
|
| 46 |
+
|
| 47 |
+
label_encoder: !new:speechbrain.dataio.encoder.CategoricalEncoder
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer
|
| 51 |
+
loadables:
|
| 52 |
+
embedding_model: !ref <embedding_model>
|
| 53 |
+
mean_var_norm_emb: !ref <mean_var_norm_emb>
|
| 54 |
+
classifier: !ref <classifier>
|
| 55 |
+
label_encoder: !ref <label_encoder>
|
| 56 |
+
paths:
|
| 57 |
+
embedding_model: !ref <pretrained_path>/embedding_model.ckpt
|
| 58 |
+
mean_var_norm_emb: !ref <pretrained_path>/mean_var_norm_emb.ckpt
|
| 59 |
+
classifier: !ref <pretrained_path>/classifier.ckpt
|
| 60 |
+
label_encoder: !ref <pretrained_path>/label_encoder.txt
|