CUDNN_STATUS_BAD_PARAM
yinxiuheng10 发布于2020-06-11 15:54 浏览:493 回复:4
0
收藏
快速回复

raceback (most recent call last):
File "/root/miniconda3/envs/ocr/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/root/miniconda3/envs/ocr/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/root/miniconda3/envs/ocr/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/root/miniconda3/envs/ocr/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/root/miniconda3/envs/ocr/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/root/miniconda3/envs/ocr/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "main_app.py", line 53, in ocr
text_thresh=0.5) # 识别中文文本置信度的阈值;
File "/root/.paddlehub/modules/chinese_ocr_db_crnn_server/module.py", line 194, in recognize_text
images=predicted_data, use_gpu=self.use_gpu, box_thresh=box_thresh)
File "/root/.paddlehub/modules/chinese_text_detection_db_server/module.py", line 204, in detect_text
self.predictor.zero_copy_run()
paddle.fluid.core_avx.EnforceNotMet:

--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
0 std::string paddle::platform::GetTraceBackString(char const*&&, char const*, int)
1 paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int)
2 cudnnActivationStruct* paddle::platform::ScopedActivationDescriptor::descriptor(std::string const&, double)
3 paddle::operators::CUDNNConvFusionOpKernel::Compute(paddle::framework::ExecutionContext const&) const
4 std::_Function_handler, paddle::operators::CUDNNConvFusionOpKernel >::operator()(char const*, char const*, int) const::{lambda(paddle::framework::ExecutionContext const&)#1}>::_M_invoke(std::_Any_data const&, paddle::framework::ExecutionContext const&)
5 paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, paddle::platform::Place const&, paddle::framework::RuntimeContext*) const
6 paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, paddle::platform::Place const&) const
7 paddle::framework::OperatorBase::Run(paddle::framework::Scope const&, paddle::platform::Place const&)
8 paddle::framework::NaiveExecutor::Run()
9 paddle::AnalysisPredictor::ZeroCopyRun()

------------------------------------------
Python Call Stacks (More useful to users):
------------------------------------------
File "/opt/_internal/cpython-3.7.0/lib/python3.7/site-packages/paddle/fluid/framework.py", line 2525, in append_op
attrs=kwargs.get("attrs", None))
File "/opt/_internal/cpython-3.7.0/lib/python3.7/site-packages/paddle/fluid/layer_helper.py", line 43, in append_op
return self.main_program.current_block().append_op(*args, **kwargs)
File "/opt/_internal/cpython-3.7.0/lib/python3.7/site-packages/paddle/fluid/layers/nn.py", line 1405, in conv2d
"data_format": data_format,
File "/paddle/PaddlePaddle/PaddleOCR/ppocr/modeling/backbones/det_resnet_vd.py", line 138, in conv_bn_layer
bias_attr=False)
File "/paddle/PaddlePaddle/PaddleOCR/ppocr/modeling/backbones/det_resnet_vd.py", line 193, in shortcut
return self.conv_bn_layer(input, ch_out, 1, stride, name=name)
File "/paddle/PaddlePaddle/PaddleOCR/ppocr/modeling/backbones/det_resnet_vd.py", line 228, in bottleneck_block
name=name + "_branch1")
File "/paddle/PaddlePaddle/PaddleOCR/ppocr/modeling/backbones/det_resnet_vd.py", line 106, in __call__
name=conv_name)
File "/paddle/PaddlePaddle/PaddleOCR/ppocr/modeling/architectures/det_model.py", line 111, in __call__
conv_feas = self.backbone(image)
File "/paddle/PaddlePaddle/PaddleOCR/tools/program.py", line 193, in build_export
image, outputs = model(mode='export')
File "tools/export_model.py", line 67, in main
config, eval_program, startup_prog)
File "tools/export_model.py", line 93, in
main()

----------------------
Error Message Summary:
----------------------
ExternalError: Cudnn error, CUDNN_STATUS_BAD_PARAM at (/paddle/paddle/fluid/platform/cudnn_helper.h:463)
[operator < conv2d_fusion > error]

收藏
点赞
0
个赞
共4条回复 最后由q1w2e3683回复于2020-07-31 11:34
#5q1w2e3683回复于2020-07-31 11:34:21

我也遇到这个问题了,1.单张图片参数images要加[]  ocr.recognize_text(images=[cv2.imread('D:/PlateDetect/1.jpg')]。2不要有中文路径

0
#4天子骄子fly回复于2020-07-15 15:16:21

应该是CUDNN版本不对吧

0
#3鹿鼎记肯定回复于2020-06-12 11:34:11

本地跑先检查下版本吧

0
#2xiaohongyd回复于2020-06-11 17:08:00

Cudnn error, CUDNN_STATUS_BAD_PARAM ,看错误提示好像是cudnn 没安装好吧,可以根据安装文档检查下:https://www.paddlepaddle.org.cn/install/quick

0
TOP
切换版块