Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Gold-YOLO Inference Error in Clip Operator #25278

@oHotel

Description

@oHotel

System Information

OpenCV version: 4.9.0
Operating System / Platform: Ubuntu 22.04.3 LTS
Compiler & compiler version: G++ 11.4.0

Detailed description

I am trying to deploy a Gold-YOLO model. I use the model gold_yolo_n_body_0459_0.4328_1x3x384x640.onnx from PINTO model zoo.

Alternative link

Parsing and building the network with works fine; but running an inference yields to the following error:

terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.9.0-dev) /home/ohotel/OpenCV4.x/opencv-4.x/modules/dnn/src/layers/elementwise_layers.cpp:260: error: (-215:Assertion failed) src.size == dst.size && src.type() == dst.type() && src.isContinuous() && dst.isContinuous() && src.type() == CV_32F in function 'forward'
Aborted (core dumped)

Any suggestions to solve this issue would be greatly appreciated.

Steps to reproduce

#include <opencv2/opencv.hpp>

int main(void)
{
    cv::dnn::Net net(cv::dnn::readNetFromONNX("gold_yolo_n_body_0459_0.4328_1x3x384x640.onnx"));

    cv::Mat inputImage(384, 640, CV_8UC3);

    net.setInput(cv::dnn::blobFromImage(inputImage, 1.0 / 255.0, cv::Size(640, 384), cv::Scalar(), true));

    cv::Mat outputBloB = net.forward();
}

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions