diff --git a/examples/aishell/s0/local/server.sh b/examples/aishell/s0/local/server.sh index 184a143dafa3ed7edb9ffee5c2f3a986d41c4c03..2b88109932e619881128054bd23a012b27cb672d 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!" diff --git a/examples/dataset/librispeech/librispeech.py b/examples/dataset/librispeech/librispeech.py index 8885213250d7d2fff686b12bd593d1ad95a0dd0f..e85bbb3aa44d0bd775698ac0c79ce5b690f83a00 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 0915e5b302ee44e828a37e10710a54e32d3933a0..65fee81a70bd96e01d0cf119c5081179230e5708 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)