fengyuentau / opencv Goto Github PK
View Code? Open in Web Editor NEWThis project forked from opencv/opencv
Open Source Computer Vision Library
Home Page: https://opencv.org
License: Apache License 2.0
This project forked from opencv/opencv
Open Source Computer Vision Library
Home Page: https://opencv.org
License: Apache License 2.0
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
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
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.