Skip to content

读取onnx模型报错 #4

@PL2584718785

Description

@PL2584718785

[ERROR:0] global /home/opencv/modules/dnn/src/onnx/onnx_importer.cpp (1788) handleNode DNN/ONNX: ERROR during processing node with 5 inputs and 1 outputs: [Slice]:(467)
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.0) /home/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1797: error: (-2:Unspecified error) in function 'handleNode'

Node [Slice]:(467) parse error: OpenCV(4.5.0) /home/opencv/modules/dnn/src/onnx/onnx_importer.cpp:697: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20200908::ONNXImporter::handleNode(const opencv_onnx::NodeProto&)'

Slice layer only supports steps = 1 (expected: 'countNonZero(step_blob != 1) == 0'), where
'countNonZero(step_blob != 1)' is 1
must be equal to
'0' is 0

Hello, I have encountered the above problems and hope to get your help. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions