From 0e341d42aa4daaeada8be077c21864f34e0f74eb Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Tue, 18 May 2021 05:54:40 +0000 Subject: [PATCH] fix config --- deepspeech/training/gradclip.py | 3 ++- examples/aishell/s0/README.md | 9 +++++---- examples/aishell/s0/conf/augmentation.json | 9 +++++++++ examples/tiny/s1/conf/augmentation.json | 16 ++++++++-------- 4 files changed, 24 insertions(+), 13 deletions(-) diff --git a/deepspeech/training/gradclip.py b/deepspeech/training/gradclip.py index 912861f64..d0f9803d2 100644 --- a/deepspeech/training/gradclip.py +++ b/deepspeech/training/gradclip.py @@ -46,7 +46,8 @@ class ClipGradByGlobalNormWithLog(paddle.nn.ClipGradByGlobalNorm): # debug log if i < 10: - logger.debug(f"Grad Before Clip: {p.name}: {float(sum_square.sqrt()) }") + logger.debug( + f"Grad Before Clip: {p.name}: {float(sum_square.sqrt()) }") # all parameters have been filterd out if len(sum_square_list) == 0: diff --git a/examples/aishell/s0/README.md b/examples/aishell/s0/README.md index 6d67d19a9..fd4cf6a7f 100644 --- a/examples/aishell/s0/README.md +++ b/examples/aishell/s0/README.md @@ -1,7 +1,8 @@ # Aishell-1 ## CTC -| Model | Config | Test set | CER | -| --- | --- | --- | --- | -| DeepSpeech2 | conf/deepspeech2.yaml | test | 0.078977 | -| DeepSpeech2 | release 1.8.5 | test | 0.080447 | +| Model | release | Config | Test set | CER | +| --- | --- | --- | --- | --- | +| DeepSpeech2 | 2.1 | conf/deepspeech2.yaml | test | 0.080428 | +| DeepSpeech2 | 2.0 | conf/deepspeech2.yaml | test | 0.078977 | +| DeepSpeech2 | 1.8.5 | - | test | 0.080447 | diff --git a/examples/aishell/s0/conf/augmentation.json b/examples/aishell/s0/conf/augmentation.json index a1a759e67..5635d9c84 100644 --- a/examples/aishell/s0/conf/augmentation.json +++ b/examples/aishell/s0/conf/augmentation.json @@ -1,4 +1,13 @@ [ + { + "type": "speed", + "params": { + "min_speed_rate": 0.9, + "max_speed_rate": 1.1, + "num_rates": 3 + }, + "prob": 0.0 + }, { "type": "shift", "params": { diff --git a/examples/tiny/s1/conf/augmentation.json b/examples/tiny/s1/conf/augmentation.json index c1078393d..1987ad424 100644 --- a/examples/tiny/s1/conf/augmentation.json +++ b/examples/tiny/s1/conf/augmentation.json @@ -1,12 +1,4 @@ [ - { - "type": "shift", - "params": { - "min_shift_ms": -5, - "max_shift_ms": 5 - }, - "prob": 1.0 - }, { "type": "speed", "params": { @@ -16,6 +8,14 @@ }, "prob": 0.0 }, + { + "type": "shift", + "params": { + "min_shift_ms": -5, + "max_shift_ms": 5 + }, + "prob": 1.0 + }, { "type": "specaug", "params": {