GaelleLaperriere commited on
Commit
3d717aa
1 Parent(s): a7299af

Create hyperparams.yaml

Browse files
Files changed (1) hide show
  1. hyperparams.yaml +63 -0
hyperparams.yaml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ################################
2
+ # Model: Wav2Vec + DNN + CTC + Softmax
3
+ # Authors:
4
+ # Gaelle Laperriere 2023
5
+ # ################################
6
+
7
+ wav2vec_url: LeBenchmark/wav2vec2-FR-3K-large
8
+
9
+ # Feature parameters:
10
+ sample_rate: 16000
11
+ feats_dim: 1024
12
+
13
+ # Model parameters:
14
+ activation: !name:torch.nn.LeakyReLU
15
+ dnn_blocks: 3
16
+ dnn_neurons: 512
17
+
18
+ # Decoding parameters:
19
+ blank_index: 0
20
+
21
+ # Outputs:
22
+ output_neurons: 67
23
+
24
+ # ------ Functions and classes
25
+
26
+ wav2vec2: !new:speechbrain.lobes.models.huggingface_wav2vec.HuggingFaceWav2Vec2
27
+ source: !ref <wav2vec_url>
28
+ output_norm: True
29
+ freeze: Freeze
30
+ save_path: !ref <save_folder>/wav2vec2_checkpoint
31
+
32
+ enc: !new:speechbrain.lobes.models.VanillaNN.VanillaNN
33
+ input_shape: [null, null, !ref <feats_dim>]
34
+ activation: !ref <activation>
35
+ dnn_blocks: !ref <dnn_blocks>
36
+ dnn_neurons: !ref <dnn_neurons>
37
+
38
+ output_lin: !new:speechbrain.nnet.linear.Linear
39
+ input_size: !ref <dnn_neurons>
40
+ n_neurons: !ref <output_neurons>
41
+ bias: True
42
+
43
+ log_softmax: !new:speechbrain.nnet.activations.Softmax
44
+ apply_log: True
45
+
46
+ ctc_cost: !name:speechbrain.nnet.losses.ctc_loss
47
+ blank_index: !ref <blank_index>
48
+
49
+ modules:
50
+ wav2vec2: !ref <wav2vec2>
51
+ enc: !ref <enc>
52
+ output_lin: !ref <output_lin>
53
+
54
+ model: !new:torch.nn.ModuleList
55
+ - [!ref <enc>, !ref <output_lin>]
56
+
57
+ model_wav2vec2: !new:torch.nn.ModuleList
58
+ - [!ref <wav2vec2>]
59
+
60
+ pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer
61
+ loadables:
62
+ wav2vec2: !ref <wav2vec2>
63
+ model: !ref <model>