Strange error in getMemoryShapes function
Hello everyone!
Currently, I'm try to solve the object detection task. The model in used is MobileNetV1 + SSD from https://github.com/qfgaohao/pytorch-s..., The code was written in PyTorch framework.
In order to use this model in OpenvCV library I converted it to ONNX representation by the standard torch.onnx module. But when I'm try to read this .onnx file I get the next error: cv2.error: OpenCV(4.0.1-dev) /home/user/opencv/modules/dnn/src/layers/slice_layer.cpp:129: error: (-215:Assertion failed) inputs.size() == 1 in function 'getMemoryShapes'
I'd like to note that when I'm cnonvert only MobileNetV1 in ONNX representation and read it through the dnn.readNetFromONNX(net) I don't get the above error. All works well.
What am I doing wrong?
Could you please add a model file?
@dkurt yes, of course. Here the graph of the model(MobileNetV1 + SSD) and his .onnx file. https://drive.google.com/drive/folder...
Model input is batch with size (1, 3, 300, 300)