PaddlePaddle / PaddleSpeech

Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation and Keyword Spotting. Won NAACL2022 Best Demo Award.
https://paddlespeech.readthedocs.io
Apache License 2.0
11k stars 1.83k forks source link

[TTS]报错 Killed #2898

Closed nanfeng closed 1 year ago

nanfeng commented 1 year ago

环境: python 3.7.13 PaddlePaddle 2.4.1 gcc version 8.2.0

以下是版本信息:

λ 4d007693f246 /paddle/PaddleSpeech python -V
Python 3.7.13

λ 4d007693f246 /paddle/PaddleSpeech paddle
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
PaddlePaddle 2.4.1, compiled with
    with_avx: ON
    with_gpu: OFF
    with_mkl: ON
    with_mkldnn: ON
    with_python: ON

λ 4d007693f246 /paddle/PaddleSpeech gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-8.2/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-8.2.0/configure --prefix=/usr/local/gcc-8.2 --enable-threads=posix --disable-checking --disable-multilib
Thread model: posix
gcc version 8.2.0 (GCC)

语音识别可以正常使用

λ 4d007693f246 /paddle/PaddleSpeech paddlespeech asr --lang zh --input zh.wav
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
/usr/local/lib/python3.7/dist-packages/librosa/core/constantq.py:1059: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  dtype=np.complex,
/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/math_op_patch.py:277: UserWarning: The dtype of left and right variables are not the same, left dtype is paddle.int64, but right dtype is paddle.bool, the right dtype will convert to paddle.int64
  .format(lhs_dtype, rhs_dtype, lhs_dtype))
我认为跑步最重要的就是给我带来了身体健康

语音合并报错

λ 4d007693f246 /paddle/PaddleSpeech paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
/usr/local/lib/python3.7/dist-packages/librosa/core/constantq.py:1059: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  dtype=np.complex,
[2023-02-08 09:22:51] [DEBUG] [retry.py:351] Converted retries value: 0 -> Retry(total=0, connect=None, read=None, redirect=None, status=None)
[2023-02-08 09:22:51] [DEBUG] [retry.py:351] Converted retries value: 0 -> Retry(total=0, connect=None, read=None, redirect=None, status=None)
[2023-02-08 09:22:51] [DEBUG] [connectionpool.py:232] Starting new HTTP connection (1): paddlepaddle.org.cn:80
[2023-02-08 09:22:51,477] [   DEBUG] - File /root/.paddlespeech/models/fastspeech2_csmsc-zh/1.0/fastspeech2_nosil_baker_ckpt_0.4.zip md5 checking...
[2023-02-08 09:22:51] [DEBUG] [connectionpool.py:465] http://paddlepaddle.org.cn:80 "GET /paddlehub/stat?task=tts&version=0.0.0&from=ppspeech&model=fastspeech2_csmsc&extra=%7B%22paddle_version%22%3A+%222.4.1%22%2C+%22lang%22%3A+%22zh%22%2C+%22vocoder%22%3A+%22hifigan_csmsc%22%2C+%22cache_info%22%3A+%221e698915b313efe46c239944b3ec9f13-1675842853%22%7D HTTP/1.1" 301 186
[2023-02-08 09:22:51] [DEBUG] [connectionpool.py:1007] Starting new HTTPS connection (1): paddlepaddle.org.cn:443
[2023-02-08 09:22:51] [DEBUG] [connectionpool.py:465] https://paddlepaddle.org.cn:443 "GET /paddlehub/stat?task=tts&version=0.0.0&from=ppspeech&model=fastspeech2_csmsc&extra=%7B%22paddle_version%22%3A+%222.4.1%22%2C+%22lang%22%3A+%22zh%22%2C+%22vocoder%22%3A+%22hifigan_csmsc%22%2C+%22cache_info%22%3A+%221e698915b313efe46c239944b3ec9f13-1675842853%22%7D HTTP/1.1" 200 13
[2023-02-08 09:22:52,865] [   DEBUG] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/1.0/fastspeech2_nosil_baker_ckpt_0.4
[2023-02-08 09:22:52,865] [   DEBUG] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/1.0/fastspeech2_nosil_baker_ckpt_0.4/default.yaml
[2023-02-08 09:22:52,866] [   DEBUG] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/1.0/fastspeech2_nosil_baker_ckpt_0.4/snapshot_iter_76000.pdz
[2023-02-08 09:22:52,867] [   DEBUG] - File /root/.paddlespeech/models/hifigan_csmsc-zh/1.0/hifigan_csmsc_ckpt_0.1.1.zip md5 checking...
[2023-02-08 09:22:55,460] [   DEBUG] - /root/.paddlespeech/models/hifigan_csmsc-zh/1.0/hifigan_csmsc_ckpt_0.1.1
[2023-02-08 09:22:55,460] [   DEBUG] - /root/.paddlespeech/models/hifigan_csmsc-zh/1.0/hifigan_csmsc_ckpt_0.1.1/default.yaml
[2023-02-08 09:22:55,460] [   DEBUG] - /root/.paddlespeech/models/hifigan_csmsc-zh/1.0/hifigan_csmsc_ckpt_0.1.1/snapshot_iter_2500000.pdz
[2023-02-08 09:22:56,918] [   DEBUG] - File /root/.paddlespeech/models/G2PWModel_1.1.zip md5 checking...
[2023-02-08 09:23:00,512] [    INFO] - Already cached /root/.paddlenlp/models/bert-base-chinese/bert-base-chinese-vocab.txt
[2023-02-08 09:23:00,560] [    INFO] - tokenizer config file saved in /root/.paddlenlp/models/bert-base-chinese/tokenizer_config.json
[2023-02-08 09:23:00,561] [    INFO] - Special tokens file saved in /root/.paddlenlp/models/bert-base-chinese/special_tokens_map.json
Killed
yt605155624 commented 1 year ago
nanfeng commented 1 year ago

这次报错更详细些了,可是还是不知道哪里的问题

λ 4d007693f246 /paddle/PaddleSpeech paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
/usr/local/lib/python3.7/dist-packages/librosa/core/constantq.py:1059: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  dtype=np.complex,
[2023-02-08 09:22:51] [DEBUG] [retry.py:351] Converted retries value: 0 -> Retry(total=0, connect=None, read=None, redirect=None, status=None)
[2023-02-08 09:22:51] [DEBUG] [retry.py:351] Converted retries value: 0 -> Retry(total=0, connect=None, read=None, redirect=None, status=None)
[2023-02-08 09:22:51] [DEBUG] [connectionpool.py:232] Starting new HTTP connection (1): paddlepaddle.org.cn:80
[2023-02-08 09:22:51,477] [   DEBUG] - File /root/.paddlespeech/models/fastspeech2_csmsc-zh/1.0/fastspeech2_nosil_baker_ckpt_0.4.zip md5 checking...
[2023-02-08 09:22:51] [DEBUG] [connectionpool.py:465] http://paddlepaddle.org.cn:80 "GET /paddlehub/stat?task=tts&version=0.0.0&from=ppspeech&model=fastspeech2_csmsc&extra=%7B%22paddle_version%22%3A+%222.4.1%22%2C+%22lang%22%3A+%22zh%22%2C+%22vocoder%22%3A+%22hifigan_csmsc%22%2C+%22cache_info%22%3A+%221e698915b313efe46c239944b3ec9f13-1675842853%22%7D HTTP/1.1" 301 186
[2023-02-08 09:22:51] [DEBUG] [connectionpool.py:1007] Starting new HTTPS connection (1): paddlepaddle.org.cn:443
[2023-02-08 09:22:51] [DEBUG] [connectionpool.py:465] https://paddlepaddle.org.cn:443 "GET /paddlehub/stat?task=tts&version=0.0.0&from=ppspeech&model=fastspeech2_csmsc&extra=%7B%22paddle_version%22%3A+%222.4.1%22%2C+%22lang%22%3A+%22zh%22%2C+%22vocoder%22%3A+%22hifigan_csmsc%22%2C+%22cache_info%22%3A+%221e698915b313efe46c239944b3ec9f13-1675842853%22%7D HTTP/1.1" 200 13
[2023-02-08 09:22:52,865] [   DEBUG] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/1.0/fastspeech2_nosil_baker_ckpt_0.4
[2023-02-08 09:22:52,865] [   DEBUG] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/1.0/fastspeech2_nosil_baker_ckpt_0.4/default.yaml
[2023-02-08 09:22:52,866] [   DEBUG] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/1.0/fastspeech2_nosil_baker_ckpt_0.4/snapshot_iter_76000.pdz
[2023-02-08 09:22:52,867] [   DEBUG] - File /root/.paddlespeech/models/hifigan_csmsc-zh/1.0/hifigan_csmsc_ckpt_0.1.1.zip md5 checking...
[2023-02-08 09:22:55,460] [   DEBUG] - /root/.paddlespeech/models/hifigan_csmsc-zh/1.0/hifigan_csmsc_ckpt_0.1.1
[2023-02-08 09:22:55,460] [   DEBUG] - /root/.paddlespeech/models/hifigan_csmsc-zh/1.0/hifigan_csmsc_ckpt_0.1.1/default.yaml
[2023-02-08 09:22:55,460] [   DEBUG] - /root/.paddlespeech/models/hifigan_csmsc-zh/1.0/hifigan_csmsc_ckpt_0.1.1/snapshot_iter_2500000.pdz
[2023-02-08 09:22:56,918] [   DEBUG] - File /root/.paddlespeech/models/G2PWModel_1.1.zip md5 checking...
[2023-02-08 09:23:00,512] [    INFO] - Already cached /root/.paddlenlp/models/bert-base-chinese/bert-base-chinese-vocab.txt
[2023-02-08 09:23:00,560] [    INFO] - tokenizer config file saved in /root/.paddlenlp/models/bert-base-chinese/tokenizer_config.json
[2023-02-08 09:23:00,561] [    INFO] - Special tokens file saved in /root/.paddlenlp/models/bert-base-chinese/special_tokens_map.json
Killed
yt605155624 commented 1 year ago

一般这种情况可能是你的硬件配置不够(内存等),可以在 aistudio 上试一下

nanfeng commented 1 year ago

一般这种情况可能是你的硬件配置不够(内存等),可以在 aistudio 上试一下

您说的对,非常感谢