Skip to content

Assertion failed (inputs.size()) in cv::dnn::dnn4_v20190122::Layer::getMemoryShapes #14713

@Aeroxander

Description

@Aeroxander
System information (version)
  • OpenCV => 4.1.0 C++
  • Operating System / Platform => Mac OS High Sierra (also had this issue on Windows 10)
  • Compiler => XCode
Detailed description

So I have 3 PyTorch models where 2 of them give me trouble when loading in ONNX, the inference works fine in PyTorch and the conversion is all ok too.

So in the first model I get this error when reading the ONNX model in OpenCV:

Assertion failed (inputs.size()) in cv::dnn::dnn4_v20190122::Layer::getMemoryShapese

With the other model I get this error:

Blob 64 not found in const blobs

This has all something to do with the input where in the first error the inputs.size() is 0 and in the second model the blob isn't big enough somehow.
I don't know which framework or action I did I can pinpoint the error to..

Steps to reproduce

Read the decoder ONNX model

Standalone project

https://github.com/Aeroxander/decodererror

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions