Skip to content

Commit 0143857

Browse files
authored
Merge pull request #177 from TensorSpeech/fix/refactor
Refactor repository
2 parents ac06a8b + 11d6afc commit 0143857

File tree

136 files changed

+3508
-7975
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+3508
-7975
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ TensorFlowASR implements some automatic speech recognition architectures such as
2121

2222
## What's New?
2323

24+
- (04/17/2021) Refactor repository with new version 1.x
2425
- (02/16/2021) Supported for TPU training
2526
- (12/27/2020) Supported _naive_ token level timestamp, see [demo](./examples/demonstration/conformer.py) with flag `--timestamp`
2627
- (12/17/2020) Supported ContextNet [http://arxiv.org/abs/2005.03191](http://arxiv.org/abs/2005.03191)

examples/conformer/config.yml

+15-21
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ speech_config:
2424
normalize_per_feature: False
2525

2626
decoder_config:
27-
vocabulary: null
27+
vocabulary: ./vocabularies/librispeech/librispeech_train_10_1008.subwords
2828
target_vocab_size: 1000
2929
max_subword_length: 10
3030
blank_at_zero: True
31-
beam_width: 5
31+
beam_width: 0
3232
norm_score: True
3333
corpus_files:
34-
- /media/nlhuy/Data/ML/Datasets/ASR/Raw/LibriSpeech/train-clean-100/transcripts.tsv
34+
- /mnt/h/ML/Datasets/ASR/Raw/LibriSpeech/train-clean-100/transcripts.tsv
3535

3636
model_config:
3737
name: conformer
@@ -40,7 +40,7 @@ model_config:
4040
filters: 144
4141
kernel_size: 3
4242
strides: 2
43-
encoder_positional_encoding: sinusoid_concat_v2
43+
encoder_positional_encoding: sinusoid_concat
4444
encoder_dmodel: 144
4545
encoder_num_blocks: 16
4646
encoder_head_size: 36
@@ -66,7 +66,7 @@ learning_config:
6666
train_dataset_config:
6767
use_tf: True
6868
augmentation_config:
69-
after:
69+
feature_augment:
7070
time_masking:
7171
num_masks: 10
7272
mask_factor: 100
@@ -75,19 +75,18 @@ learning_config:
7575
num_masks: 1
7676
mask_factor: 27
7777
data_paths:
78-
- /mnt/Data/ML/Datasets/ASR/Raw/LibriSpeech/train-clean-100/transcripts.tsv
79-
tfrecords_dir: /mnt/Miscellanea/Datasets/Speech/LibriSpeech/tfrecords
78+
- /mnt/h/ML/Datasets/ASR/Raw/LibriSpeech/train-clean-100/transcripts.tsv
79+
tfrecords_dir: null
8080
shuffle: True
8181
cache: True
82-
cache_percent: 0.2
8382
buffer_size: 100
8483
drop_remainder: True
8584
stage: train
8685

8786
eval_dataset_config:
8887
use_tf: True
8988
data_paths: null
90-
tfrecords_dir: /mnt/Miscellanea/Datasets/Speech/LibriSpeech/tfrecords
89+
tfrecords_dir: null
9190
shuffle: False
9291
cache: True
9392
buffer_size: 100
@@ -97,7 +96,7 @@ learning_config:
9796
test_dataset_config:
9897
use_tf: True
9998
data_paths: null
100-
tfrecords_dir: /mnt/Miscellanea/Datasets/Speech/LibriSpeech/tfrecords
99+
tfrecords_dir: null
101100
shuffle: False
102101
cache: True
103102
buffer_size: 100
@@ -106,26 +105,21 @@ learning_config:
106105

107106
optimizer_config:
108107
warmup_steps: 40000
109-
beta1: 0.9
110-
beta2: 0.98
108+
beta_1: 0.9
109+
beta_2: 0.98
111110
epsilon: 1e-9
112111

113112
running_config:
114113
batch_size: 2
115-
accumulation_steps: 4
116114
num_epochs: 50
117-
outdir: /mnt/Miscellanea/Models/local/conformer
118-
log_interval_steps: 300
119-
eval_interval_steps: 500
120-
save_interval_steps: 1000
121115
checkpoint:
122-
filepath: /mnt/Miscellanea/Models/local/conformer/checkpoints/{epoch:02d}.h5
116+
filepath: /mnt/e/Models/local/conformer/checkpoints/{epoch:02d}.h5
123117
save_best_only: True
124-
save_weights_only: False
118+
save_weights_only: True
125119
save_freq: epoch
126-
states_dir: /mnt/Miscellanea/Models/local/conformer/states
120+
states_dir: /mnt/e/Models/local/conformer/states
127121
tensorboard:
128-
log_dir: /mnt/Miscellanea/Models/local/conformer/tensorboard
122+
log_dir: /mnt/e/Models/local/conformer/tensorboard
129123
histogram_freq: 1
130124
write_graph: True
131125
write_images: True

examples/conformer/masking/README.md

-5
This file was deleted.

examples/conformer/masking/masking.py

-32
This file was deleted.

examples/conformer/masking/train_ga_masking_conformer.py

-131
This file was deleted.

0 commit comments

Comments
 (0)