Skip to content

Can't create layer "Range_404" of type "Range" in function 'getLayerInstance' #22361

@Nuwan1654

Description

@Nuwan1654

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions