kunnark commited on
Commit
b80774a
1 Parent(s): e794638

Update inference_wav2vec.yaml

Browse files
Files changed (1) hide show
  1. inference_wav2vec.yaml +7 -7
inference_wav2vec.yaml CHANGED
@@ -10,7 +10,7 @@
10
  # #################################
11
 
12
  # pretrain folders:
13
- pretrained_path: ./
14
 
15
  # Model parameters
16
  sample_rate: 16000
@@ -22,8 +22,8 @@ compute_features: !new:speechbrain.lobes.features.Fbank
22
 
23
  ######################## Wav2Vec ########################
24
  # URL for the wav2vec2 model.
25
- wav2vec2_hub: TalTechNLP/voxlingua107-xls-r-300m-wav2vec
26
- freeze_wav2vec: True # False
27
  save_folder: ./save
28
 
29
  wav2vec2: !new:speechbrain.lobes.models.huggingface_wav2vec.HuggingFaceWav2Vec2
@@ -48,11 +48,11 @@ attentive: !new:speechbrain.lobes.models.ECAPA_TDNN.AttentiveStatisticsPooling
48
  attention_channels: 64
49
 
50
  modules:
51
- wav2vec2: !ref <wav2vec2> # Added
52
  compute_features: !ref <compute_features>
53
  classifier: !ref <classifier>
54
- attentive: !ref <attentive> # Added
55
- softmax: !ref <softmax> # Added
56
 
57
  model: !new:torch.nn.ModuleList
58
  - [!ref <attentive>, !ref <classifier>]
@@ -66,7 +66,7 @@ pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer
66
  paths:
67
  wav2vec2: !ref <pretrained_path>/wav2vec2.ckpt
68
  classifier: !ref <pretrained_path>/classifier.ckpt
69
- label_encoder: <pretrained_path>/label_encoder.txt
70
  model: !ref <pretrained_path>/model.ckpt
71
 
72
  ##################
 
10
  # #################################
11
 
12
  # pretrain folders:
13
+ pretrained_path: TalTechNLP/voxlingua107-xls-r-300m-wav2vec
14
 
15
  # Model parameters
16
  sample_rate: 16000
 
22
 
23
  ######################## Wav2Vec ########################
24
  # URL for the wav2vec2 model.
25
+ wav2vec2_hub: facebook/wav2vec2-xls-r-300m
26
+ freeze_wav2vec: True
27
  save_folder: ./save
28
 
29
  wav2vec2: !new:speechbrain.lobes.models.huggingface_wav2vec.HuggingFaceWav2Vec2
 
48
  attention_channels: 64
49
 
50
  modules:
51
+ wav2vec2: !ref <wav2vec2>
52
  compute_features: !ref <compute_features>
53
  classifier: !ref <classifier>
54
+ attentive: !ref <attentive>
55
+ softmax: !ref <softmax>
56
 
57
  model: !new:torch.nn.ModuleList
58
  - [!ref <attentive>, !ref <classifier>]
 
66
  paths:
67
  wav2vec2: !ref <pretrained_path>/wav2vec2.ckpt
68
  classifier: !ref <pretrained_path>/classifier.ckpt
69
+ label_encoder: !ref <pretrained_path>/label_encoder.txt
70
  model: !ref <pretrained_path>/model.ckpt
71
 
72
  ##################