Skip to content

opencv4.2.0版本运行出错 #1

Description

@viviayi

感谢分享,最近也想通过opencv调用DB模型,但是在使用您提供的模型以后出现以下报错,请问这个是opencv版本问题吗?
Traceback (most recent call last):
File "main.py", line 145, in
net = dbnet(binaryThreshold=args.binaryThreshold, polygonThreshold=args.polygonThreshold, unclipRatio=args.unclipRatio, maxCandidates=args.maxCandidates)
File "main.py", line 115, in init
self.model = cv2.dnn.readNet('DB_TD500_resnet50.onnx')
cv2.error: OpenCV(4.2.0) /tmp/opencv-4.2.0/modules/dnn/src/layers/pooling_layer.cpp:1174: error: (-215:Assertion failed) (outShape[2 + i] - 1) * strides[i] < inpShape[i] + pads_end[i] in function 'getMemoryShapes'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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