flexthink
commited on
Commit
·
c33d085
1
Parent(s):
772ca28
Initial import of the model
Browse files- hyperparams.yaml +57 -0
- model.ckpt +3 -0
hyperparams.yaml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ############################################################################
|
| 2 |
+
# Model: SSL with Wav2Vec (training from scratch)
|
| 3 |
+
# Authors: Artem Ploujnikov, Yingzhi Wang
|
| 4 |
+
# # ############################################################################
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
# Seed needs to be set at top of yaml, before objects with parameters are instantiated
|
| 8 |
+
seed: 42
|
| 9 |
+
__set_seed: !apply:torch.manual_seed [!ref <seed>]
|
| 10 |
+
|
| 11 |
+
train_regression_metric: True
|
| 12 |
+
batch_size: 4
|
| 13 |
+
num_workers: 4
|
| 14 |
+
src_sample_rate: 24000
|
| 15 |
+
tgt_sample_rate: 16000
|
| 16 |
+
contrastive: False
|
| 17 |
+
|
| 18 |
+
lr: 0.00001
|
| 19 |
+
|
| 20 |
+
number_of_epochs: 10
|
| 21 |
+
ckpt_interval_minutes: 15
|
| 22 |
+
activation: !name:torch.nn.LeakyReLU
|
| 23 |
+
|
| 24 |
+
d_model: 512
|
| 25 |
+
d_ffn: 2048
|
| 26 |
+
num_layers: 3
|
| 27 |
+
nhead: 4
|
| 28 |
+
dropout: 0.5
|
| 29 |
+
|
| 30 |
+
wavlm_source: microsoft/wavlm-large
|
| 31 |
+
wavlm_save_path: .
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
splits: ["train", "valid", "test"]
|
| 35 |
+
subset: "full"
|
| 36 |
+
skip_prep: False
|
| 37 |
+
|
| 38 |
+
wavlm: !new:speechbrain.lobes.models.huggingface_transformers.wavlm.WavLM
|
| 39 |
+
source: !ref <wavlm_source>
|
| 40 |
+
output_norm: True
|
| 41 |
+
save_path: !ref <wavlm_save_path>
|
| 42 |
+
|
| 43 |
+
model: !new:speechbrain.lobes.models.eval.ssl.TransformerRegression
|
| 44 |
+
base_model: !ref <wavlm>
|
| 45 |
+
d_model: !ref <d_model>
|
| 46 |
+
d_ffn: !ref <d_ffn>
|
| 47 |
+
num_layers: !ref <num_layers>
|
| 48 |
+
nhead: !ref <nhead>
|
| 49 |
+
dropout: !ref <dropout>
|
| 50 |
+
activation: !ref <activation>
|
| 51 |
+
|
| 52 |
+
modules:
|
| 53 |
+
model: !ref <model>
|
| 54 |
+
|
| 55 |
+
pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer
|
| 56 |
+
loadables:
|
| 57 |
+
model: !ref <model>
|
model.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92a1dbd86f911d1c261b7638282f1f5ceb0aea95a7337602263ca50bf43d2374
|
| 3 |
+
size 1281843773
|