-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Closed
Labels
bugcategory: dnnconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete
Milestone
Description
System Information
OpenCV Version: 4.10.0
Operating System / Platform: Windows 11 x64
Compiler & compiler version: VS 2022
Detailed description
With the 4.10.0 release, support for OpenVINO 2024 is included. Compiling and linking against OpenVINO 2024 works, however activating at runtime results in runtime error.s
Steps to reproduce
- Compile OpenVINO 2024. We used 2024.2.0, only using the CPU plugin and compiled it as static libraries.
- Compile OpenCV using OpenVINO, except those necessary for OpenVINO, further CMake configurations are not required.
- Thereafter, run the following code:
import numpy as np
import cv2 as cv
# model is available in models/image_classification_mobilenet inside OpenCV's zoo repository
model = cv.dnn.readNet('image_classification_mobilenetv2_2022apr.onnx')
# use OpenVINO backend (no error if DNN_BACKEND_OPENCV is used instead)
model.setPreferableBackend(cv.dnn.DNN_BACKEND_INFERENCE_ENGINE)
# forward zero image
model.setInput(np.zeros((1,3,224,224), dtype=np.float32))
model.forward()Here, forward() terminates with the following error:
error: OpenCV(4.10.0) opencv\modules\dnn\src\ie_ngraph.cpp:558: error: (-215:Assertion failed) blobIt != allBlobs.end() in function 'cv::dnn::InfEngineNgraphNet::forward'
As both, OpenCV's backend as well as OpenVINO 2023 work fine, the issue is caused by using OpenVINO 2024.
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugcategory: dnnconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete