Giter VIP home page Giter VIP logo

fengyuentau / opencv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opencv/opencv

0.0 0.0 1.0 523.7 MB

Open Source Computer Vision Library

Home Page: https://opencv.org

License: Apache License 2.0

CMake 2.05% C++ 87.26% Cuda 0.72% Shell 0.05% C 3.26% Objective-C 0.21% Java 1.57% Python 2.73% Objective-C++ 0.84% PowerShell 0.03% Batchfile 0.01% Perl 0.03% TeX 0.01% JavaScript 0.50% HTML 0.08% Prolog 0.01% Dockerfile 0.01% Swift 0.63% Kotlin 0.01%

opencv's People

Contributors

akarsakov avatar alalek avatar asmorkalov avatar berak avatar bitwangyaoyao avatar catree avatar dkurt avatar edgarriba avatar fengyuentau avatar ilya-lavrenov avatar komakai avatar l-bat avatar laurentberger avatar mshabunin avatar obilaniu avatar ozantonkal avatar paroj avatar pli2-intel avatar rogday avatar savuor avatar sovrasov avatar sturkmen72 avatar terfendail avatar tolyatalamanov avatar tomoaki0705 avatar vadimlevin avatar vpisarev avatar vrabaud avatar yashassamaga avatar zihaomu avatar

Forkers

germanmx

opencv's Issues

ERROR during processing node with 2 inputs and 1 outputs: [Gather]:(onnx_node!Gather_383) from domain='ai.onnx'

System Information

OpenCV Python version: 4.6.0-dev
Operating System / Platform: Ubuntu 20.04
Python version: 3.8.10

model conversion with
onnx version: 1.13.1
onnx-simplifier 0.4.17

Detailed description

I try to use your onnx_nms_node branch with my yolov7 converted onnx model which includes the NMS layer, but I am getting an error message regarding a layer named Gather_383, seems like one of the constant input type is not supported there.

Here is the error log:

[ERROR:[email protected]] global /opt/opencv/modules/dnn/src/onnx/onnx_importer.cpp (1043) handleNode DNN/ONNX: ERROR during processing node with 2 inputs and 1 outputs: [Gather]:(onnx_node!Gather_383) from domain='ai.onnx'
Traceback (most recent call last):
  File "opencv_infer_video.py", line 54, in <module>
    vid_infer = video(target_gpu_id)
  File "opencv_infer_video.py", line 16, in __init__
    self.image_infer = Inference(target_gpu_id)
  File "/vision/opencv-inference/opencv_infer.py", line 41, in __init__
    self.net = cv2.dnn.readNetFromONNX(cfg.infer.onnx_model)
cv2.error: OpenCV(4.6.0-dev) /opt/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1065: error: (-2:Unspecified error) in function 'handleNode'
> Node [[email protected]]:(onnx_node!Gather_383) parse error: OpenCV(4.6.0-dev) /opt/opencv/modules/dnn/src/onnx/onnx_importer.cpp:579: error: (-5:Bad argument) Blob 638 not found in const blobs in function 'getBlob'

Attached here is a screenshot of the ONNX graph where node Gather_383 and its input 638 in the NODE Properties panel
link: https://drive.google.com/file/d/1Ar474RQZkuHRiCpmQ8cwZ27Mcs8rz5ij/view?usp=share_link

Steps to reproduce

Python

1. Build OpenCV using   `onnx_nms_node` [branch](https://github.com/opencv/opencv/pull/22473)
2. run

import cv2
net = cv2.dnn.readNetFromONNX(onnx_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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.