chainyo
commited on
Commit
•
09fb42e
1
Parent(s):
7ff4e95
add model
Browse files- CKPT.yaml +5 -0
- brain.ckpt +3 -0
- classifier.ckpt +3 -0
- counter.ckpt +3 -0
- dataloader-TRAIN.ckpt +3 -0
- embedding_model.ckpt +3 -0
- hparams_inference.yaml +55 -0
- label_encoder.txt +4 -0
- normalizer.ckpt +3 -0
- optimizer.ckpt +3 -0
CKPT.yaml
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# yamllint disable
|
2 |
+
end-of-epoch: true
|
3 |
+
error: 0.0
|
4 |
+
loss: 0.058331675827503204
|
5 |
+
unixtime: 1634475037.448386
|
brain.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9e24193f36931b7f57932532efbdcf64971f42732383ba6808825f77db258f6
|
3 |
+
size 28
|
classifier.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f57270fa9ce8a76382228543c9796a559568a1c4af7c130ac1964465090762c5
|
3 |
+
size 1075387
|
counter.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e629fa6598d732768f7c726b4b621285f9c3b85303900aa912017db7617d8bdb
|
3 |
+
size 2
|
dataloader-TRAIN.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ef2d127de37b942baad06145e54b0c619a1f22327b2ebbcfbec78f5564afe39d
|
3 |
+
size 1
|
embedding_model.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c7b47edce468057b2606011073677c8353e86a2d603dc5c6782c240d788383dc
|
3 |
+
size 16875574
|
hparams_inference.yaml
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
pretrained_path: ChainYo/speaker-recognition-meetup
|
2 |
+
|
3 |
+
# Model parameters
|
4 |
+
n_mels: 23
|
5 |
+
sample_rate: 16000
|
6 |
+
n_classes: 2
|
7 |
+
emb_dim: 512
|
8 |
+
|
9 |
+
# Feature extraction
|
10 |
+
compute_features: !new:speechbrain.lobes.features.Fbank
|
11 |
+
n_mels: !ref <n_mels>
|
12 |
+
|
13 |
+
# Mean and std normalization of the input features
|
14 |
+
mean_var_norm: !new:speechbrain.processing.features.InputNormalization
|
15 |
+
norm_type: sentence
|
16 |
+
std_norm: False
|
17 |
+
|
18 |
+
# To design a custom model, either just edit the simple CustomModel
|
19 |
+
# class that's listed here, or replace this `!new` call with a line
|
20 |
+
# pointing to a different file you've defined.
|
21 |
+
embedding_model: !new:custom_model.Xvector
|
22 |
+
in_channels: !ref <n_mels>
|
23 |
+
activation: !name:torch.nn.LeakyReLU
|
24 |
+
tdnn_blocks: 5
|
25 |
+
tdnn_channels: [512, 512, 512, 512, 1500]
|
26 |
+
tdnn_kernel_sizes: [5, 3, 3, 1, 1]
|
27 |
+
tdnn_dilations: [1, 2, 3, 1, 1]
|
28 |
+
lin_neurons: !ref <emb_dim>
|
29 |
+
|
30 |
+
classifier: !new:custom_model.Classifier
|
31 |
+
input_shape: [null, null, !ref <emb_dim>]
|
32 |
+
activation: !name:torch.nn.LeakyReLU
|
33 |
+
lin_blocks: 1
|
34 |
+
lin_neurons: !ref <emb_dim>
|
35 |
+
out_neurons: !ref <n_classes>
|
36 |
+
|
37 |
+
label_encoder: !new:speechbrain.dataio.encoder.CategoricalEncoder
|
38 |
+
|
39 |
+
# Objects in "modules" dict will have their parameters moved to the correct
|
40 |
+
# device, as well as having train()/eval() called on them by the Brain class.
|
41 |
+
modules:
|
42 |
+
compute_features: !ref <compute_features>
|
43 |
+
embedding_model: !ref <embedding_model>
|
44 |
+
classifier: !ref <classifier>
|
45 |
+
mean_var_norm: !ref <mean_var_norm>
|
46 |
+
|
47 |
+
pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer
|
48 |
+
loadables:
|
49 |
+
embedding_model: !ref <embedding_model>
|
50 |
+
classifier: !ref <classifier>
|
51 |
+
label_encoder: !ref <label_encoder>
|
52 |
+
paths:
|
53 |
+
embedding_model: !ref <pretrained_path>/embedding_model.ckpt
|
54 |
+
classifier: !ref <pretrained_path>/classifier.ckpt
|
55 |
+
label_encoder: !ref <pretrained_path>/label_encoder.txt
|
label_encoder.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
'0' => 0
|
2 |
+
'1' => 1
|
3 |
+
================
|
4 |
+
'starting_index' => 0
|
normalizer.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c312ee14b371c04e4c155338b4e9f799bede9154c79f4ffd075ae4dfb94e0d30
|
3 |
+
size 1063
|
optimizer.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:23b207a802f5a78c505cfe6398654280f8ac8696b4064d4e94dc8b0bd15a9c57
|
3 |
+
size 35813937
|