Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

采用dnn加载onnx模型失败 #2

Open
yangjian1218 opened this issue Feb 23, 2022 · 2 comments
Open

采用dnn加载onnx模型失败 #2

yangjian1218 opened this issue Feb 23, 2022 · 2 comments

Comments

@yangjian1218
Copy link

File "d:\AI\Face\Face_detect\SCRFD\scrfd-opencv\main.py", line 12, in init
self.net = cv2.dnn.readNet(onnxmodel) #加载失败
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\dnn\include\opencv2/dnn/dnn.inl.hpp:349: error: (-204:Requested object was not found) Required argument "starts" not found into dictionary in function 'cv::dnn::dnn4_v20191202::Dict::get'

我试了其他scrfd的onnx模型,加载都是各种报错.不懂你有没有出现这种问题. onnxruntime 加载是正常的

@hpc203
Copy link
Owner

hpc203 commented Feb 24, 2022 via email

@ixNeo
Copy link

ixNeo commented Feb 24, 2022

我已经升级opencv到4.5.5, 在mac电脑上仍然报错,请问接下来如何修改呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants