Closed Zlin-song closed 2 years ago
你下载的是那个模型?这个模型加载有问题
ppasr
import time import wave
from ppasr.predict import Predictor
predictor = Predictor(model_dir='models/deepspeech2/infer/', vocab_path='dataset/vocabulary.txt', use_model='deepspeech2', decoder='ctc_beam_search', alpha=2.2, beta=4.3, beam_size=300, cutoff_prob=0.99, cutoff_top_n=40, use_gpu=True)
start = time.time() score, text = predictor.predict(audio_path='dataset/test.wav', to_an=True) print("消耗时间:%dms, 识别结果: %s, 得分: %d" % (round((time.time() - start) * 1000), text, score))
你下载的是那个模型?
用pip install ppasr -U安装的 显示版本1.0.0
需要下源码自己训练吗
我主页不是提供模型下载吗?你下载哪个?
我懂了,我下载的是在线预测示例里的models
我用主页里的model试试
大佬,运行时一直报
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value
然后就
ExternalError: CUDA error(719), unspecified launch failure.
[Hint: 'cudaErrorLaunchFailure'. An exception occurred on the device while executing a kernel. Common causes include dereferencing an invalid device pointerand accessing out of bounds shared memory. Less common cases can be system specific - more information about these cases canbe found in the system specific user guide. This leaves the process in an inconsistent state and any further CUDA work willreturn the same error. To continue using CUDA, the process must be terminated and relaunched.] (at ..\paddle\phi\backends\gpu\cuda\cuda_info.cc:258)
[operator < rnn > error]
全部错误我看一下,你下载哪个模型的?
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Traceback (most recent call last):
File "D:/code/VoiceRecognition/PPASR/main.py", line 18, in
File "D:/yeyupiaoling/PyCharm/PPASR/export_model.py", line 24, in <module>
trainer.export(save_model_path=args.save_model, resume_model=args.resume_model)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\trainer.py", line 532, in export
paddle.jit.save(layer=model, path=infer_model_path, input_spec=input_spec)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\jit.py", line 629, in wrapper
func(layer, path, input_spec, **configs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\wrapped_decorator.py", line 25, in __impl__
return wrapped_func(*args, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\base.py", line 51, in __impl__
return func(*args, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\jit.py", line 868, in save
with_hook=with_hook)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 528, in concrete_program_specify_input_spec
*desired_input_spec, with_hook=with_hook)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 436, in get_concrete_program
concrete_program, partial_program_layer = self._program_cache[cache_key]
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 801, in __getitem__
self._caches[item_id] = self._build_once(item)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 790, in _build_once
**cache_key.kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\wrapped_decorator.py", line 25, in __impl__
return wrapped_func(*args, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\base.py", line 51, in __impl__
return func(*args, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 733, in from_func_spec
outputs = static_func(*inputs)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\model_utils\utils.py", line 59, in forward
logits, output_lens, final_chunk_state_h_box, final_chunk_state_c_box = self.model(x, audio_len, init_state_h_box, init_state_c_box)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in __call__
return self._dygraph_call_func(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\model_utils\deepspeech2\model.py", line 53, in forward
x, final_chunk_state_h_box, final_chunk_state_c_box = self.rnn(x, x_lens, init_state_h_box, init_state_c_box)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in __call__
return self._dygraph_call_func(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "C:\Users\1596\AppData\Local\Temp\tmpgfseihj6.py", line 61, in forward
for_loop_condition_0, for_loop_body_0, [init_state_list, i, x_lens, x])
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\convert_operators.py", line 45, in convert_while_loop
loop_vars = _run_py_while(cond, body, loop_vars)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\convert_operators.py", line 59, in _run_py_while
loop_vars = body(*loop_vars)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\model_utils\deepspeech2\rnn.py", line 65, in forward
x, final_state = self.rnn[i](x, x_lens, init_state_list[i])
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in __call__
return self._dygraph_call_func(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\model_utils\deepspeech2\rnn.py", line 21, in forward
x, final_state = self.rnn(x, init_state, x_lens) # [B, T, D]
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in __call__
return self._dygraph_call_func(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\nn\layer\rnn.py", line 1077, in forward
return self._cudnn_impl(inputs, initial_states, sequence_length)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\nn\layer\rnn.py", line 1052, in _cudnn_impl
type="rnn", inputs=inputs, outputs=outputs, attrs=attrs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layer_object_helper.py", line 53, in append_op
stop_gradient=stop_gradient)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\framework.py", line 3621, in append_op
attrs=kwargs.get("attrs", None))
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\framework.py", line 2635, in __init__
for frame in traceback.extract_stack():
ExternalError: CUDA error(719), unspecified launch failure.
[Hint: 'cudaErrorLaunchFailure'. An exception occurred on the device while executing a kernel. Common causes include dereferencing an invalid device pointerand accessing out of bounds shared memory. Less common cases can be system specific - more information about these cases canbe found in the system specific user guide. This leaves the process in an inconsistent state and any further CUDA work willreturn the same error. To continue using CUDA, the process must be terminated and relaunched.] (at ..\paddle\phi\backends\gpu\cuda\cuda_info.cc:258)
[operator < rnn > error]
aishell这个
你的GPU环境正常吗?你用CPU执行看看
试了一下,CUP是可以的,是GPU环境的问题,我重新配置一下
感谢感谢
用conda 安装很方便
conda install paddlepaddle-gpu==2.3.1 cudatoolkit=10.2 --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/
好的,我重新安装一下
很奇怪,CUDA和paddlepaddle都重新安装了,还是报错,会不会和我的版本有关,我的显卡是3060,cuda用的是11.3
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion `b != 0` failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Traceback (most recent call last):
File "D:/code/VoiceRecognition/PPASR/main.py", line 17, in <module>
use_gpu=True)
File "D:\soft\Anoconda\envs\ppasr\lib\site-packages\ppasr\predict.py", line 134, in __init__
self.predict(audio_ndarray=warmup_audio, to_an=False)
File "D:\soft\Anoconda\envs\ppasr\lib\site-packages\ppasr\predict.py", line 202, in predict
self.predictor.run()
OSError: In user code:
File "D:/yeyupiaoling/PyCharm/PPASR/export_model.py", line 24, in <module>
trainer.export(save_model_path=args.save_model, resume_model=args.resume_model)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\trainer.py", line 532, in export
paddle.jit.save(layer=model, path=infer_model_path, input_spec=input_spec)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\jit.py", line 629, in wrapper
func(layer, path, input_spec, **configs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\wrapped_decorator.py", line 25, in __impl__
return wrapped_func(*args, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\base.py", line 51, in __impl__
return func(*args, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\jit.py", line 868, in save
with_hook=with_hook)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 528, in concrete_program_specify_input_spec
*desired_input_spec, with_hook=with_hook)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 436, in get_concrete_program
concrete_program, partial_program_layer = self._program_cache[cache_key]
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 801, in __getitem__
self._caches[item_id] = self._build_once(item)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 790, in _build_once
**cache_key.kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\wrapped_decorator.py", line 25, in __impl__
return wrapped_func(*args, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\base.py", line 51, in __impl__
return func(*args, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 733, in from_func_spec
outputs = static_func(*inputs)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\model_utils\utils.py", line 59, in forward
logits, output_lens, final_chunk_state_h_box, final_chunk_state_c_box = self.model(x, audio_len, init_state_h_box, init_state_c_box)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in __call__
return self._dygraph_call_func(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\model_utils\deepspeech2\model.py", line 53, in forward
x, final_chunk_state_h_box, final_chunk_state_c_box = self.rnn(x, x_lens, init_state_h_box, init_state_c_box)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in __call__
return self._dygraph_call_func(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "C:\Users\1596\AppData\Local\Temp\tmpgfseihj6.py", line 61, in forward
for_loop_condition_0, for_loop_body_0, [init_state_list, i, x_lens, x])
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\convert_operators.py", line 45, in convert_while_loop
loop_vars = _run_py_while(cond, body, loop_vars)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\dygraph_to_static\convert_operators.py", line 59, in _run_py_while
loop_vars = body(*loop_vars)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\model_utils\deepspeech2\rnn.py", line 65, in forward
x, final_state = self.rnn[i](x, x_lens, init_state_list[i])
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in __call__
return self._dygraph_call_func(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "D:\yeyupiaoling\PyCharm\PPASR\ppasr\model_utils\deepspeech2\rnn.py", line 21, in forward
x, final_state = self.rnn(x, init_state, x_lens) # [B, T, D]
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in __call__
return self._dygraph_call_func(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\nn\layer\rnn.py", line 1077, in forward
return self._cudnn_impl(inputs, initial_states, sequence_length)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\nn\layer\rnn.py", line 1052, in _cudnn_impl
type="rnn", inputs=inputs, outputs=outputs, attrs=attrs)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\dygraph\layer_object_helper.py", line 53, in append_op
stop_gradient=stop_gradient)
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\framework.py", line 3621, in append_op
attrs=kwargs.get("attrs", None))
File "E:\ProgramData\Anaconda3\envs\PaddlePaddle\lib\site-packages\paddle\fluid\framework.py", line 2635, in __init__
for frame in traceback.extract_stack():
ExternalError: CUDA error(719), unspecified launch failure.
[Hint: 'cudaErrorLaunchFailure'. An exception occurred on the device while executing a kernel. Common causes include dereferencing an invalid device pointerand accessing out of bounds shared memory. Less common cases can be system specific - more information about these cases canbe found in the system specific user guide. This leaves the process in an inconsistent state and any further CUDA work willreturn the same error. To continue using CUDA, the process must be terminated and relaunched.] (at ..\paddle\phi\backends\gpu\cuda\cuda_info.cc:258)
[operator < rnn > error]
你用的是最新代码吗?
是的
你源码安装的吗?不是的话,试试源码安装
用pip install ppasr -U安装的 显示版本1.0.0 我试试源码安装
当下载的模型和指定的use_model不一样,也会出玩这个错误,你看下
都试过了,还是不行 但在cup上是正常的,我换个电脑试试
你下载的是哪个模型,使用代码,截图给我看看
你下载存放的路径和你指定得路径不一样,你是复制到项目了吗?
是的
你是按照这里安装的吗:https://www.paddlepaddle.org.cn/ 这里没有cuda11.3
我用的11.2,在这里 https://www.paddlepaddle.org.cn/documentation/docs/zh/install/conda/windows-conda.html#anchor-0 可能是paddlepaddle与11.2兼容有问题,我换台电脑用10.2试试
你有跑过其他的GPU任务吗?是否正常?
还没试过,我尝试一下
@Zlin-song 怎么样?
应该就是版本问题,我安装了paddlepaddle-cuda11.1的就可以,11.2有点问题
嗯嗯。
模型是的路径和你下载的模型路径不一样,你是复制过来了吗?
大佬,这个问题怎么解决? Traceback (most recent call last): File "D:/code/VoiceRecognition/PPASR/main.py", line 17, in
use_gpu=True)
File "D:\soft\Anoconda\envs\ppasr\lib\site-packages\ppasr\predict.py", line 119, in init
self.init_state_c_box_handle = self.predictor.get_input_handle('init_state_c_box')
RuntimeError: (PreconditionNotMet) The variable named init_state_c_box is not found in the scope of the executor.
[Hint: scope->FindVar(name) should not be null.] (at ..\paddle\fluid\inference\api\analysis_predictor.cc:1248)