-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Can't create layer "Range_404" of type "Range" in function 'getLayerInstance' #22361
Copy link
Copy link
Closed
Labels
Description
System information (version)
- OpenCV = 4.5.5.dev
- torch = 1.6.0
Steps to reproduce
net = cv2.dnn.readNetFromONNX(onnx_path)
Issue
I am getting the following error. when I updated the PyTorch to the latest version like 1.12.0 I am getting a new error (-215:Assertion failed) inputs.size() in function 'getMemoryShapes' . Any help on this would be appreciated.
`cv2.error: OpenCV(4.5.5-dev) /home/nsight/YOLOX/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1021: error: (-2:Unspecified error) in function 'handleNode'
Node [Range@ai.onnx]:(Range_404) parse error: OpenCV(4.5.5-dev) /home/nsight/YOLOX/opencv/modules/dnn/src/layer_internals.hpp:110: error: (-2:Unspecified error) Can't create layer "Range_404" of type "Range" in function 'getLayerInstance'
`
Here is a snapshot of layer 404 in ONNX graph
Reactions are currently unavailable