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

opencv 版本 #1

Open
OutBreak-hui opened this issue Oct 16, 2021 · 11 comments
Open

opencv 版本 #1

OutBreak-hui opened this issue Oct 16, 2021 · 11 comments

Comments

@OutBreak-hui
Copy link

请问大佬用的opencv的版本号是多少

@GerogeLiu
Copy link

python==3.8.0
certifi==2021.10.8
numpy==1.22.1
opencv-python==4.5.1.48
wincertstore==0.2

测试可以运行

@snowjake
Copy link

wincertstore

大佬您好 为啥我跑完结果是黑屏呢? 你那边可以吗

@snowjake
Copy link

已解决 乘以255即可

@sliontc
Copy link

sliontc commented Mar 28, 2022

我无法运行成功,麻烦看看什么原因

[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\dnn.cpp (3875) cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively OPENCV/DNN: [Permute]:(Mean/nhwc): getMemoryShapes() throws exception. inputs=1 outputs=0/1 blobs=0
[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\dnn.cpp (3878) cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively input[0] = [ 1 2 20 384 384 ]
[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\dnn.cpp (3888) cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively Exception message: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\layers\permute_layer.cpp:140: error: (-215:Assertion failed) (int)_numAxes == inputs[0].size() in function 'cv::dnn::PermuteLayerImpl::getMemoryShapes'

Traceback (most recent call last):
File "main.py", line 431, in
segm_image = parse_human(person_img, args.segmentation_model)
File "C:\Users\Administrator\Downloads\virtual_try_on_use_deep_learning-main\human_parsing.py", line 105, in parse_human
output = run_net(input, model_path, backend, target)
File "C:\Users\Administrator\Downloads\virtual_try_on_use_deep_learning-main\human_parsing.py", line 28, in run_net
out = net.forward()
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\layers\permute_layer.cpp:140: error: (-215:Assertion failed) (int)_numAxes == inputs[0].size() in function 'cv::dnn::PermuteLayerImpl::getMemoryShapes'

@fun-code-ai
Copy link

wincertstore

大佬您好 为啥我跑完结果是黑屏呢? 你那边可以吗

大佬您好,请问下这个代码应该怎么跑?

@fun-code-ai
Copy link

我无法运行成功,麻烦看看什么原因

[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\dnn.cpp (3875) cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively OPENCV/DNN: [Permute]:(Mean/nhwc): getMemoryShapes() throws exception. inputs=1 outputs=0/1 blobs=0 [ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\dnn.cpp (3878) cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively input[0] = [ 1 2 20 384 384 ] [ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\dnn.cpp (3888) cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively Exception message: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\layers\permute_layer.cpp:140: error: (-215:Assertion failed) (int)_numAxes == inputs[0].size() in function 'cv::dnn::PermuteLayerImpl::getMemoryShapes'

Traceback (most recent call last): File "main.py", line 431, in segm_image = parse_human(person_img, args.segmentation_model) File "C:\Users\Administrator\Downloads\virtual_try_on_use_deep_learning-main\human_parsing.py", line 105, in parse_human output = run_net(input, model_path, backend, target) File "C:\Users\Administrator\Downloads\virtual_try_on_use_deep_learning-main\human_parsing.py", line 28, in run_net out = net.forward() cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\layers\permute_layer.cpp:140: error: (-215:Assertion failed) (int)_numAxes == inputs[0].size() in function 'cv::dnn::PermuteLayerImpl::getMemoryShapes'

请问下解决了吗,我也遇到这个问题

@snowjake
Copy link

snowjake commented Apr 1, 2022

没遇到这个 我直接就能跑 就是黑屏 乘以255就好了

@GerogeLiu
Copy link

请确认下opencv的版本 是如下版本吗?
opencv-python==4.5.1.48

@fun-code-ai
Copy link

没遇到这个 我直接就能跑 就是黑屏 乘以255就好了

感谢,已经解决了

@fun-code-ai
Copy link

请确认下opencv的版本 是如下版本吗? opencv-python==4.5.1.48
感谢,是版本的问题

@snowjake
Copy link

snowjake commented Apr 1, 2022

certifi 2021.10.8
numpy 1.22.2
opencv-python 4.5.1.48
pip 21.2.2
pyasn1 0.4.8
pyDes 2.0.1
rsa 4.7.2
setuptools 58.0.4
wheel 0.37.1
wincertstore 0.2

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

5 participants