PaddlePaddle / X2Paddle

Deep learning model converter for PaddlePaddle. (『飞桨』深度学习模型转换工具)
http://www.paddlepaddle.org/
Apache License 2.0
732 stars 164 forks source link

onnx模型opencv4.3.0加载报错 #305

Closed amandazw closed 4 years ago

amandazw commented 4 years ago

paddleOCR模型转onnx后用opencv4.3.0加载报错, cv2.error: OpenCV(4.3.0) C:\projects\opencv-python\opencv\modules\dnn\src\layers\reshape_layer.cpp:149: error: (-215:Assertion failed) dstTotal != 0 in function 'cv::dnn::computeShapeByReshapeMask'

请问模型要怎么修改呢?

jiangjiajun commented 4 years ago

paddleOCR模型转onnx后用opencv4.3.0加载报错, cv2.error: OpenCV(4.3.0) C:\projects\opencv-python\opencv\modules\dnn\src\layers\reshape_layer.cpp:149: error: (-215:Assertion failed) dstTotal != 0 in function 'cv::dnn::computeShapeByReshapeMask'

请问模型要怎么修改呢?

目前转换采用的是ONNX的最新OP标准11, 建议使用onnxruntime进行加载预测

amandazw commented 4 years ago

paddleOCR模型转onnx后用opencv4.3.0加载报错, cv2.error: OpenCV(4.3.0) C:\projects\opencv-python\opencv\modules\dnn\src\layers\reshape_layer.cpp:149: error: (-215:Assertion failed) dstTotal != 0 in function 'cv::dnn::computeShapeByReshapeMask' 请问模型要怎么修改呢?

目前转换采用的是ONNX的最新OP标准11, 建议使用onnxruntime进行加载预测

好的~

amandazw commented 4 years ago

onnxruntime加载成功