未验证 提交 8432b9b2 编写于 作者: H Hui Zhang 提交者: GitHub

Merge pull request #737 from Jackwaterveg/fixing_bug

Fixing bug
...@@ -15,10 +15,10 @@ if [ $? -ne 0 ]; then ...@@ -15,10 +15,10 @@ if [ $? -ne 0 ]; then
fi fi
# download well-trained model # download well-trained model
bash local/download_model.sh #bash local/download_model.sh
if [ $? -ne 0 ]; then #if [ $? -ne 0 ]; then
exit 1 # exit 1
fi #fi
# start demo server # start demo server
CUDA_VISIBLE_DEVICES=0 \ CUDA_VISIBLE_DEVICES=0 \
...@@ -29,7 +29,7 @@ python3 -u ${BIN_DIR}/deploy/server.py \ ...@@ -29,7 +29,7 @@ python3 -u ${BIN_DIR}/deploy/server.py \
--host_ip="localhost" \ --host_ip="localhost" \
--host_port=8086 \ --host_port=8086 \
--speech_save_dir="demo_cache" \ --speech_save_dir="demo_cache" \
--checkpoint_path ${1} --checkpoint_path ${1}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed in starting demo server!" echo "Failed in starting demo server!"
......
...@@ -116,7 +116,8 @@ def create_manifest(data_dir, manifest_path): ...@@ -116,7 +116,8 @@ def create_manifest(data_dir, manifest_path):
subset = os.path.splitext(manifest_path)[1][1:] subset = os.path.splitext(manifest_path)[1][1:]
manifest_dir = os.path.dirname(manifest_path) 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: with open(meta_path, 'w') as f:
print(f"{subset}:", file=f) print(f"{subset}:", file=f)
print(f"{total_num} utts", file=f) print(f"{total_num} utts", file=f)
......
...@@ -95,7 +95,8 @@ def create_manifest(data_dir, manifest_path): ...@@ -95,7 +95,8 @@ def create_manifest(data_dir, manifest_path):
subset = os.path.splitext(manifest_path)[1][1:] subset = os.path.splitext(manifest_path)[1][1:]
manifest_dir = os.path.dirname(manifest_path) 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: with open(meta_path, 'w') as f:
print(f"{subset}:", file=f) print(f"{subset}:", file=f)
print(f"{total_num} utts", file=f) print(f"{total_num} utts", file=f)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册