PaddleSpeech
PaddleSpeech copied to clipboard
请帮忙分析下报错:IndexError: (OutOfRange) The starting index 0 of slice is out of bounds in tensor 0-th axis, it shound be in the range of [0, 0). (at ..\paddle/fluid/pybind/slice_utils.h:214)
General Question
E:\Anaconda\installation\envs\Audio\lib\site-packages_distutils_hack_init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
[2024-01-18 13:51:22,092] [ INFO] - Already cached C:\Users\47053.paddlenlp\models\bert-base-chinese\bert-base-chinese-vocab.txt
[2024-01-18 13:51:22,105] [ INFO] - tokenizer config file saved in C:\Users\47053.paddlenlp\models\bert-base-chinese\tokenizer_config.json
[2024-01-18 13:51:22,105] [ INFO] - Special tokens file saved in C:\Users\47053.paddlenlp\models\bert-base-chinese\special_tokens_map.json
E:\Anaconda\installation\envs\Audio\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for encoder.embed.1.alpha. encoder.embed.1.alpha receives a shape [1], but the expected shape is [].
warnings.warn(f"Skip loading for {key}. " + str(err))
E:\Anaconda\installation\envs\Audio\lib\site-packages\paddle\nn\layer\layers.py:2084: UserWarning: Skip loading for decoder.embed.0.alpha. decoder.embed.0.alpha receives a shape [1], but the expected shape is [].
warnings.warn(f"Skip loading for {key}. " + str(err))
Building prefix dict from the default dictionary ...
[2024-01-18 13:51:31,117] [ DEBUG] init.py:113 - Building prefix dict from the default dictionary ...
Dumping model to file cache C:\Users\47053\AppData\Local\Temp\jieba.cache
[2024-01-18 13:51:31,822] [ DEBUG] init.py:146 - Dumping model to file cache C:\Users\47053\AppData\Local\Temp\jieba.cache
Loading model cost 0.757 seconds.
[2024-01-18 13:51:31,875] [ DEBUG] init.py:164 - Loading model cost 0.757 seconds.
Prefix dict has been built successfully.
[2024-01-18 13:51:31,875] [ DEBUG] init.py:166 - Prefix dict has been built successfully.
Traceback (most recent call last):
File "D:\Develop\Python\Audio\PaddleSpeech\demo.py", line 6, in