Skip to content

Unable to load Style transfer models from ONNX Model Zoo #16707

@ashishkrshrivastava

Description

@ashishkrshrivastava
System information (version)
  • OpenCV => 3.4
  • Operating System / Platform => Ubuntu 18.
Detailed description

Problem : Loading any model from ONNX model zoo / Image Manipulation / Fast Neural style transfer for example , Candy model (direct link) gives error -

cv2.error: OpenCV(4.2.0-dev) /home/usr/opencv/modules/dnn/src/dnn.cpp:4600: error: (-215:Assertion failed) inputs.size() in function 'getMemoryShapes'

Steps to reproduce
import cv2
net = cv2.dnn.readNetFromONNX("/Path_to_model/candy.onnx")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions