From 156e324bbbf6b14c71dc0446666614a919e7845b Mon Sep 17 00:00:00 2001 From: huangyuxin Date: Thu, 29 Jul 2021 08:29:39 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BA=86sever.sh?= =?UTF-8?q?=E7=9A=8417-21=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/aishell/s0/local/server.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/aishell/s0/local/server.sh b/examples/aishell/s0/local/server.sh index 184a143d..2b881099 100755 --- a/examples/aishell/s0/local/server.sh +++ b/examples/aishell/s0/local/server.sh @@ -15,10 +15,10 @@ if [ $? -ne 0 ]; then fi # download well-trained model -bash local/download_model.sh -if [ $? -ne 0 ]; then - exit 1 -fi +#bash local/download_model.sh +#if [ $? -ne 0 ]; then +# exit 1 +#fi # start demo server CUDA_VISIBLE_DEVICES=0 \ @@ -29,7 +29,7 @@ python3 -u ${BIN_DIR}/deploy/server.py \ --host_ip="localhost" \ --host_port=8086 \ --speech_save_dir="demo_cache" \ ---checkpoint_path ${1} +--checkpoint_path ${1} if [ $? -ne 0 ]; then echo "Failed in starting demo server!" From b13630b1c574d5e2d447364cdbd1faa47494dd4c Mon Sep 17 00:00:00 2001 From: huangyuxin Date: Thu, 29 Jul 2021 09:09:56 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86librispeech?= =?UTF-8?q?=E5=92=8Cmini=5Flibirspeech?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/dataset/librispeech/librispeech.py | 3 ++- examples/dataset/mini_librispeech/mini_librispeech.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/dataset/librispeech/librispeech.py b/examples/dataset/librispeech/librispeech.py index 88852132..e85bbb3a 100644 --- a/examples/dataset/librispeech/librispeech.py +++ b/examples/dataset/librispeech/librispeech.py @@ -116,7 +116,8 @@ def create_manifest(data_dir, manifest_path): subset = os.path.splitext(manifest_path)[1][1:] manifest_dir = os.path.dirname(manifest_path) - meta_path = os.path.join(manifest_dir, dtype) + '.meta' + data_dir_name = os.path.split(data_dir)[-1] + meta_path = os.path.join(manifest_dir, data_dir_name) + '.meta' with open(meta_path, 'w') as f: print(f"{subset}:", file=f) print(f"{total_num} utts", file=f) diff --git a/examples/dataset/mini_librispeech/mini_librispeech.py b/examples/dataset/mini_librispeech/mini_librispeech.py index 0915e5b3..65fee81a 100644 --- a/examples/dataset/mini_librispeech/mini_librispeech.py +++ b/examples/dataset/mini_librispeech/mini_librispeech.py @@ -95,7 +95,8 @@ def create_manifest(data_dir, manifest_path): subset = os.path.splitext(manifest_path)[1][1:] manifest_dir = os.path.dirname(manifest_path) - meta_path = os.path.join(manifest_dir, dtype) + '.meta' + data_dir_name = os.path.split(data_dir)[-1] + meta_path = os.path.join(manifest_dir, data_dir_name) + '.meta' with open(meta_path, 'w') as f: print(f"{subset}:", file=f) print(f"{total_num} utts", file=f)