You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenCV does not support ONNX models that have dyanmic input shape and the 'Shape' operator for now. So running YuNet demo will get the following error message although the results are correct:
$ python demo.py
[ERROR:[email protected]] global /Users/xperience/actions-runner/_work/opencv-python/opencv-python/opencv/modules/dnn/src/onnx/onnx_importer.cpp (2516) parseShape DNN/ONNX(Shape): dynamic 'zero' shapes are not supported, input 243 [ 0 0 0 51 ]
[ERROR:[email protected]] global /Users/xperience/actions-runner/_work/opencv-python/opencv-python/opencv/modules/dnn/src/onnx/onnx_importer.cpp (2516) parseShape DNN/ONNX(Shape): dynamic 'zero' shapes are not supported, input 250 [ 0 0 0 34 ]
[ERROR:[email protected]] global /Users/xperience/actions-runner/_work/opencv-python/opencv-python/opencv/modules/dnn/src/onnx/onnx_importer.cpp (2516) parseShape DNN/ONNX(Shape): dynamic 'zero' shapes are not supported, input 257 [ 0 0 0 34 ]
[ERROR:[email protected]] global /Users/xperience/actions-runner/_work/opencv-python/opencv-python/opencv/modules/dnn/src/onnx/onnx_importer.cpp (2516) parseShape DNN/ONNX(Shape): dynamic 'zero' shapes are not supported, input 264 [ 0 0 0 51 ]
[ERROR:[email protected]] global /Users/xperience/actions-runner/_work/opencv-python/opencv-python/opencv/modules/dnn/src/onnx/onnx_importer.cpp (2516) parseShape DNN/ONNX(Shape): dynamic 'zero' shapes are not supported, input 297 [ 0 -4 ]
A patch is made to use YuNet of fixed input shape to bypass the error: opencv/opencv#21607. Although the input shape of ONNX model is fixed, OpenCV DNN infers on the actual input shape.
The text was updated successfully, but these errors were encountered:
Related bug report: opencv/opencv#21340 (comment)
OpenCV does not support ONNX models that have dyanmic input shape and the 'Shape' operator for now. So running YuNet demo will get the following error message although the results are correct:
A patch is made to use YuNet of fixed input shape to bypass the error: opencv/opencv#21607. Although the input shape of ONNX model is fixed, OpenCV DNN infers on the actual input shape.
The text was updated successfully, but these errors were encountered: