未验证 提交 5692b0ff 编写于 作者: 小湉湉's avatar 小湉湉 提交者: GitHub

fix log for t2s (#1219)

上级 bef481e0
...@@ -245,7 +245,7 @@ python3 ${BIN_DIR}/../synthesize_e2e.py \ ...@@ -245,7 +245,7 @@ python3 ${BIN_DIR}/../synthesize_e2e.py \
--lang=en \ --lang=en \
--text=${BIN_DIR}/../sentences_en.txt \ --text=${BIN_DIR}/../sentences_en.txt \
--output_dir=exp/default/test_e2e \ --output_dir=exp/default/test_e2e \
--phones_dict=dump/phone_id_map.txt \ --phones_dict=fastspeech2_nosil_vctk_ckpt_0.5/phone_id_map.txt \
--speaker_dict=dump/speaker_id_map.txt \ --speaker_dict=fastspeech2_nosil_vctk_ckpt_0.5/speaker_id_map.txt \
--spk_id=0 --spk_id=0
``` ```
...@@ -99,7 +99,7 @@ class Log(): ...@@ -99,7 +99,7 @@ class Log():
_call_from_cli = False _call_from_cli = False
_frame = inspect.currentframe() _frame = inspect.currentframe()
while _frame: while _frame:
if 'paddlespeech/cli/__init__.py' in _frame.f_code.co_filename: if 'paddlespeech/cli/__init__.py' in _frame.f_code.co_filename or 'paddlespeech/t2s' in _frame.f_code.co_filename:
_call_from_cli = True _call_from_cli = True
break break
_frame = _frame.f_back _frame = _frame.f_back
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册