forked from TensorSpeech/TensorFlowASR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
executable file
·111 lines (103 loc) · 2.89 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Copyright 2020 Huy Le Nguyen (@usimarit)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
speech_config:
sample_rate: 16000
frame_ms: 25
stride_ms: 10
num_feature_bins: 80
feature_type: log_mel_spectrogram
preemphasis: 0.97
normalize_signal: True
normalize_feature: True
normalize_per_frame: False
decoder_config:
vocabulary: null
blank_at_zero: False
beam_width: 500
lm_config:
model_path: null
alpha: 2.0
beta: 1.0
model_config:
name: jasper
dense: True
first_additional_block_channels: 256
first_additional_block_kernels: 11
first_additional_block_strides: 2
first_additional_block_dilation: 1
first_additional_block_dropout: 0.2
nsubblocks: 3
block_channels: [256, 384, 512, 640, 768]
block_kernels: [11, 13, 17, 21, 25]
block_dropout: [0.2, 0.2, 0.2, 0.3, 0.3]
second_additional_block_channels: 896
second_additional_block_kernels: 1
second_additional_block_strides: 1
second_additional_block_dilation: 2
second_additional_block_dropout: 0.4
third_additional_block_channels: 1024
third_additional_block_kernels: 1
third_additional_block_strides: 1
third_additional_block_dilation: 1
third_additional_block_dropout: 0.4
learning_config:
train_dataset_config:
use_tf: True
data_paths:
- /mnt/h/ML/Datasets/ASR/Raw/LibriSpeech/train-clean-100/transcripts.tsv
tfrecords_dir: null
shuffle: True
cache: True
buffer_size: 100
drop_remainder: True
stage: train
eval_dataset_config:
use_tf: True
data_paths: null
tfrecords_dir: null
shuffle: False
cache: True
buffer_size: 100
drop_remainder: True
stage: eval
test_dataset_config:
use_tf: True
data_paths:
- /mnt/h/ML/Datasets/ASR/Raw/LibriSpeech/test-clean/transcripts.tsv
tfrecords_dir: null
shuffle: False
cache: True
buffer_size: 100
drop_remainder: True
stage: test
optimizer_config:
class_name: adam
config:
learning_rate: 0.0001
running_config:
batch_size: 4
num_epochs: 20
checkpoint:
filepath: /mnt/e/Models/local/jasper/checkpoints/{epoch:02d}.h5
save_best_only: True
save_weights_only: True
save_freq: epoch
states_dir: /mnt/e/Models/local/jasper/states
tensorboard:
log_dir: /mnt/e/Models/local/jasper/tensorboard
histogram_freq: 1
write_graph: True
write_images: True
update_freq: epoch
profile_batch: 2