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
I'm trying to load a saved Unet model in OpenCV using dnn.readNetFromTensorflow and dnn.readNetFromONNX, but both methods are failing. The first one hangs and the second results in an obscure error.
> Node [Slice@ai.onnx]:(onnx_node!StatefulPartitionedCall/unet/crop_concat_block/strided_slice_6) parse error: OpenCV(4.6.0) /Users/xperience/actions-runner/_work/opencv-python/opencv-python/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1345: error: (-215:Assertion failed) axes[i - 1] == axes[i] - 1 in function 'parseSlice'
Has anyone done this before?
The text was updated successfully, but these errors were encountered:
Thanks for your reply. Changing the slicing didn't help.
I dived into it a bit further and the issue seems to be in OpenCV. It looks like slicing is not properly processed in some cases: issue. It's already fixed, but not in a release yet. It works after building the dev version of OpenCV.
I'm trying to load a saved Unet model in OpenCV using
dnn.readNetFromTensorflow
anddnn.readNetFromONNX
, but both methods are failing. The first one hangs and the second results in an obscure error.Has anyone done this before?
The text was updated successfully, but these errors were encountered: