Comments (8)
我安装了 paddlepaddle-gpu==1.7.2.post97,但是运行时报错:
Traceback (most recent call last):
File "tools/infer/predict_system.py", line 116, in
dt_boxes, rec_res = text_sys(img)
File "tools/infer/predict_system.py", line 67, in call
dt_boxes, elapse = self.text_detector(img)
File "/home/import/gh/project/PaddleOCR-develop/tools/infer/predict_det.py", line 109, in call
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*&&, 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<void (paddle::framework::ExecutionContext const&), paddle::framework::OpKernelRegistrarFunctor<paddle::platform::CUDAPlace, false, 0ul, paddle::operators::CUDNNConvFusionOpKernel, 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 "/root/miniconda3/envs/ocrpy36/lib/python3.6/site-packages/paddle/fluid/framework.py", line 2525, in append_op
attrs=kwargs.get("attrs", None))
File "/root/miniconda3/envs/ocrpy36/lib/python3.6/site-packages/paddle/fluid/layer_helper.py", line 43, in append_op
return self.main_program.current_block().append_op(*args, **kwargs)
File "/root/miniconda3/envs/ocrpy36/lib/python3.6/site-packages/paddle/fluid/layers/nn.py", line 1405, in conv2d
"data_format": data_format,
File "/paddle/PaddleOCR/github/PaddleOCR/ppocr/modeling/backbones/det_mobilenet_v3.py", line 153, in conv_bn_layer
bias_attr=False)
File "/paddle/PaddleOCR/github/PaddleOCR/ppocr/modeling/backbones/det_mobilenet_v3.py", line 98, in call
name='conv1')
File "/paddle/PaddleOCR/github/PaddleOCR/ppocr/modeling/architectures/det_model.py", line 111, in call
conv_feas = self.backbone(image)
File "/paddle/PaddleOCR/github/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:
Error: An error occurred here. There is no accurate error hint for this error yet. We are continuously in the process of increasing hint for this kind of error check. It would be helpful if you could inform us of how this conversion went by opening a github issue. And we will resolve it with high priority.New issue link: https://github.com/PaddlePaddle/Paddle/issues/new
Recommended issue content: all error stack information
[Hint: CUDNN_STATUS_BAD_PARAM] at (/paddle/paddle/fluid/platform/cudnn_helper.h:463)
[operator < conv2d_fusion > error]
请问有人遇到过这个问题吗?
from paddleocr.
设置 use_gpu=False 再试试可以不
python3 tools/infer/predict_system.py --image_dir="./doc/imgs/11.jpg" --det_model_dir="./inference/det/" --rec_model_dir="./inference/rec/" --use_gpu=False
像是cudnn的问题
from paddleocr.
use_gpu=False
设置use_gpu=False时,可以运行成功,但是速度慢,怎么让它在GPU上跑呢。我的cuda是9.0的,有没有问题?
from paddleocr.
您的cuDNN版本是多少呢?paddle要求使用 cuDNN 7.3+
from paddleocr.
您的cuDNN版本是多少呢?paddle要求使用 cuDNN 7.3+
我的是7.0.5的,我升级一下试试
from paddleocr.
您的cuDNN版本是多少呢?paddle要求使用 cuDNN 7.3+
升级cudnn之后,问题解决了,多谢 @tink2123 @LDOUBLEV
from paddleocr.
好的~ 不客气
from paddleocr.
好的~ 不客气
你好,请问你升级到了cudnn多少呀,我升级了也发现依然报错
from paddleocr.
Related Issues (20)
- CPU版本下的报错信息:`Segmentation fault` is detected by the operating system HOT 5
- 2.7.5报错:NameError: name 'predict_system' is not defined HOT 2
- Mac mini m2 下运行 Demo,CPU 干到 99.8%,30 分钟过去了,但还是未见结果 HOT 5
- 测试时如何摒弃掉纵向框 HOT 3
- 文字检测训练总是报错,检查数据文件没有问题 HOT 7
- 支持网络图片获得每个文字的位置吗?谢谢 HOT 2
- 新人求解,训练模型时,在打印完日志‘During the training process, after the 0th iteration, an evaluation is run every 400 iterations’后,卡住了 HOT 3
- ch_PP-OCRv4_rec文本识别,模型训练前40epoch时,验证精度可以达到90%以上,现在验证精度接近0. HOT 3
- The Hmean is very high (around 93%) but can't infer anything with DB++ model. However, the infer code did great with DB HOT 2
- 使用pyinstaller打包PaddleOCR报错 HOT 1
- papddleocr deploy/slim/quantization/export_model.py
- Suggestion for preprocessing of Image. HOT 2
- 模型参数自动更新 HOT 1
- PPOCRLabel 报错 HOT 1
- 发票关键信息抽取.md FileNotFoundError: configuration file<config.json> or <model_config.json> not found HOT 5
- ch_PP-OCRv4_rec_infer识别乱码 HOT 4
- 文字识别训练在初始化dataset的索引时时报错list index out of range,然后会卡在During the training process, after the 0th iteration, an evaluation is run every 2000 iterations HOT 1
- 训练蒙古文,预训练模型应该怎样选择啊
- 导出模型 缺少inference.pdiparams
- 官方是否可以发布一个ppocrlabel的exe文件,我看issues里面很多人都有这个需求 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddleocr.