-
-
Notifications
You must be signed in to change notification settings - Fork 56.3k
Closed
Labels
Description
System Information
OpenCV python version: opencv-python-rolling-4.7.0.20230415 and 4.x dev version
Operating System / Platform: MacOS and Ubuntu
Python version: 3.8
Detailed description
run yunet demo from https://github.com/opencv/opencv_zoo/tree/master/models/face_detection_yunet
4.7.0 stable run correctly, but current 4.x branch or opencv-python-rolling is wrong
Traceback (most recent call last):
File "demo.py", line 136, in <module>
results = model.infer(frame) # results is a tuple
File "/Users/wanli/Desktop/OpenCV_China/opencv_zoo/models/face_detection_yunet/yunet.py", line 54, in infer
faces = self._model.detect(image)
cv2.error: OpenCV(4.7.0-dev) /Users/wanli/Desktop/OpenCV_China/opencv/modules/dnn/src/net_impl.cpp:275: error: (-204:Requested object was not found) Layer with requested id=-1 not found in function 'getLayerData'
Steps to reproduce
run demo.cpp or demo.py in opencv_zoo
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)