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

pytorch和OpenCV-python版本 #2

Open
sleepy-syr opened this issue Oct 30, 2020 · 2 comments
Open

pytorch和OpenCV-python版本 #2

sleepy-syr opened this issue Oct 30, 2020 · 2 comments

Comments

@sleepy-syr
Copy link

遇到报错

Traceback (most recent call last): File "D:/Project/10kinds-light-face-detector-align-recognition-master/10kinds-light-face-detector-align-recognition-master/Run_all_compare_time.py", line 35, in <module> retinaface_dnn_detect = retinaface_dnn(align=align) File "D:\Project\10kinds-light-face-detector-align-recognition-master\10kinds-light-face-detector-align-recognition-master\retinaface_detect_align_module.py", line 45, in __init__ self.net = RetinafaceDetector_dnn() File "D:\Project\10kinds-light-face-detector-align-recognition-master\10kinds-light-face-detector-align-recognition-master\retinaface\detector.py", line 121, in __init__ self.model = cv2.dnn.readNetFromONNX(model_path)

cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\dnn\src\layers\eltwise_layer.cpp:116: error: (-215:Assertion failed) inputs[0] == inputs[i] in function 'cv::dnn::EltwiseLayerImpl::getMemoryShapes'

是OpenCV版本问题么

@hpc203
Copy link
Owner

hpc203 commented Oct 31, 2020

这个是opencv版本的问题,建议更新到最新版的opencv4.4.0
在终端输入pip install --upgrade opencv-python

@sleepy-syr
Copy link
Author

已解决,谢谢

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

2 participants