Content-Length: 304124 | pFad | https://github.com/opencv/opencv/issues/23231

E4 global onnx_importer.cpp:1051 handleNode DNN/ONNX: ERROR during processing node with 2 inputs and 1 outputs: [Add]:(onnx_node!/Add_1) from domain='ai.onnx' · Issue #23231 · opencv/opencv · GitHub
Skip to content

global onnx_importer.cpp:1051 handleNode DNN/ONNX: ERROR during processing node with 2 inputs and 1 outputs: [Add]:(onnx_node!/Add_1) from domain='ai.onnx' #23231

@Neo-Abhishek

Description

@Neo-Abhishek

System Information

OpenCV python version: 4.7.0
Operating System / Platform: Ubuntu 20.04
Python version: 3.8.10

Detailed description

The error happens when reading the .onnx model using cv2.dnn.readNet().

error: OpenCV(4.7.0) /home/astra2/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1073: error: (-2:Unspecified error) in function 'handleNode' 
Node [Add@ai.onnx]:(onnx_node!/Add_1) parse error: OpenCV(4.7.0) /home/astra2/opencv/modules/dnn/src/layers/nary_eltwise_layers.cpp:139: error: (-215:Assertion failed) shape[i] == 1 || outShape[i] == 1 in function 'findCommonShape' 

Whereas onnxruntime doesn't throw any error.
Also this error seems similar to #23227 but with a different layer

Steps to reproduce

Model link - https://drive.google.com/file/d/10hET3jvdCBWyIHZR13lIXaKsQUiN2Wyz/view?usp=share_link

import cv2
model_path = 'clip_visual_dynamic_batch.onnx'
net = cv2.dnn.readNet(model_path)

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/opencv/opencv/issues/23231

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy