Comments (5)
No error : you must simplify model :
onnxsim model(1).onnx a.sim.onnx
opencv onnx importer does not process dynamic shape. You have to substitue w and h
python -m onnxruntime.tools.make_dynamic_shape_fixed --dim_param w --dim_value 640 a.sim.onnx a1.onnx
python -m onnxruntime.tools.make_dynamic_shape_fixed --dim_param h --dim_value 480 a1.onnx a2.onnx
then
python
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2 as cv
>>> x = cv.dnn.readNet("a2.onnx")
>>> import numpy as np
>>> img = np.zeros((1, 3, 480,640))
>>> x.setInput(img)
>>> w = x.forward()
>>>
from opencv.
This bug should be fixed if possible.
bug fixed
from opencv.
This bug should be fixed if possible. dexiened is used to replace hed_pretrained_bsds
model for edge detection. Do we have other public onnx models without manual modification for edge detection? Use public model link will save our traffic.
from opencv.
This bug should be fixed if possible.
from opencv.
This bug should be fixed if possible.
OK, Thanks! Replaced model PR is crested #25515
from opencv.
Related Issues (20)
- Cover NormHamming with accuracy and perfomance test
- Strange behaviour with OpenVINO and int64 custom layers
- Some dnn tests doesn't work with OpenVINO 2024.0.0 HOT 1
- OpenCV specify environment variables inside python file wrong documentation (OPENCV_FFMPEG_READ_ATTEMPTS) HOT 7
- Can not set trackBarPos, if two trackbar in the same window HOT 7
- Off by ~0.5 pixel error in `cv2.aruco.CharucoDetector` compared to `cv2.findChessboardCorners`
- cv_hal_minMaxIdx has no channel count argument
- bug when build opencv: QT 6.7, UNICODE, __itt_domain_create HOT 3
- AttributeError: module 'cv2.optflow' has no attribute 'writeOpticalFlow' HOT 2
- findHomography returns bad homography and ouliers in the inlier mask HOT 2
- Several videoio MPEG encoding tests fails with Gstreamer on Ubuntu 24.04
- highgui: wayland: opencv_test_highgui fails HOT 3
- The rectified image with the pinhole model 8 parameters will have curved boundary HOT 2
- parallel_for_ flagNestedParallelFor cause multi task in difference thread may not parallel HOT 3
- highgui: wayland: Exception when showing too small width image
- Unable to install OpenCV Java on Mac HOT 8
- Om
- Om object track
- Is it possible to raise cmake_minimum_version in opencv 5.0? HOT 2
- get a classifier cascade parameters from original Cascase XML file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencv.