Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tf-serving-retinaface_mbv2.onnx model not READ to opencv DNN #3

Open
fti-sbargule opened this issue Jul 28, 2023 · 0 comments
Open

Comments

@fti-sbargule
Copy link

I try to used [tf-serving-retinaface_mbv2.onnx] this model in openCV DNN but ERROR on load model .

opencv_net_retinaface = cv2.dnn.readNetFromONNX("./tf-serving-retinaface_mbv2.onnx")
[ERROR:[email protected]] global onnx_importer.cpp:1051 handleNode DNN/ONNX: ERROR during processing node with 1 inputs and 1 outputs: [Shape]:(onnx_node!StatefulPartitionedCall/RetinaFaceModel/tf_op_layer_Shape_1/Shape_1) from domain='ai.onnx'
Traceback (most recent call last):
  File "/home/suyog/facedetection/POSE/Face_Pose/pose_detection_retinaface.py", line 21, in <module>
    opencv_net_emotion = cv2.dnn.readNetFromONNX("./tf-serving-retinaface_mbv2.onnx")
cv2.error: OpenCV(4.7.0) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1073: error: (-2:Unspecified error) in function 'handleNode'
> Node [[email protected]]:(onnx_node!StatefulPartitionedCall/RetinaFaceModel/tf_op_layer_Shape_1/Shape_1) parse error: OpenCV(4.7.0) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:2630: error: (-215:Assertion failed) !isDynamicShape in function 'parseShape'
> 
@fti-sbargule fti-sbargule changed the title tf-serving-retinaface_mbv2.onnx model not load in opencv DNN tf-serving-retinaface_mbv2.onnx model not READ on opencv DNN Jul 28, 2023
@fti-sbargule fti-sbargule changed the title tf-serving-retinaface_mbv2.onnx model not READ on opencv DNN tf-serving-retinaface_mbv2.onnx model not READ to opencv DNN Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant