Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Update main.go#956

Open
wgjtyu wants to merge1 commit intohybridgroup:release
base:release
Choose a base branch
Loading
fromwgjtyu:patch-1
Open

Update main.go#956

wgjtyu wants to merge1 commit intohybridgroup:releasefromwgjtyu:patch-1

Conversation

wgjtyu
Copy link
Contributor

when size was iamge.Pt(128, 96), run this example on macOS, gocv v0.29, got error like this:

[ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3907) getLayerShapesRecursively OPENCV/DNN: [Convolution]:(conv8_2_h): getMemoryShapes() post validation failed. inputs=1 outputs=1/1 blobs=2 inplace=0[ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3910) getLayerShapesRecursively     input[0] = [ 1 64 2 2 ][ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3914) getLayerShapesRecursively     output[0] = [ 1 128 0 0 ][ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3918) getLayerShapesRecursively     blobs[0] = CV_32FC1 [ 128 64 3 3 ][ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3918) getLayerShapesRecursively     blobs[1] = CV_32FC1 [ 128 1 ][ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3920) getLayerShapesRecursively Exception message: OpenCV(4.5.5) /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp:3899: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively(int, cv::dnn::dnn4_v20211220::Net::Impl::LayersShapesMap &)'>  (expected: 'total(os[i]) > 0'), where>     'total(os[i])' is 0> must be greater than>     '0' is 0libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.5) /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp:3899: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively(int, cv::dnn::dnn4_v20211220::Net::Impl::LayersShapesMap &)'>  (expected: 'total(os[i]) > 0'), where>     'total(os[i])' is 0> must be greater than>     '0' is 0SIGABRT: abortPC=0x7ff80327700e m=0 sigcode=0signal arrived during cgo executiongoroutine 1 [syscall, locked to thread]:runtime.cgocall(0x4098b30, 0xc00004ab88)/usr/local/Cellar/go/1.17.8/libexec/src/runtime/cgocall.go:156 +0x5c fp=0xc00004ab60 sp=0xc00004ab28 pc=0x40044fcgocv.io/x/gocv._Cfunc_Net_Forward(0x60000000e020, 0x600000004360)_cgo_gotypes.go:5658 +0x4d fp=0xc00004ab88 sp=0xc00004ab60 pc=0x4091d4dgocv.io/x/gocv.(*Net).Forward.func2(0x600000004360, 0xd)/Users/ztyu/workspace/gocv/dnn.go:169 +0x4c fp=0xc00004abc8 sp=0xc00004ab88 pc=0x40931acgocv.io/x/gocv.(*Net).Forward(0x600002624120, {0x40cf057, 0x0})/Users/ztyu/workspace/gocv/dnn.go:169 +0x6d fp=0xc00004ac28 sp=0xc00004abc8 pc=0x40930cdmain.main()/Users/ztyu/workspace/rsAnalyzer/test2.go:83 +0x7cb fp=0xc00004af80 sp=0xc00004ac28 pc=0x40954cbruntime.main()/usr/local/Cellar/go/1.17.8/libexec/src/runtime/proc.go:255 +0x227 fp=0xc00004afe0 sp=0xc00004af80 pc=0x4034367runtime.goexit()/usr/local/Cellar/go/1.17.8/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00004afe8 sp=0xc00004afe0 pc=0x405d9e1rax    0x0rbx    0xf0e7600rcx    0x7ff7bfefe938rdx    0x0rdi    0x103rsi    0x6rbp    0x7ff7bfefe960rsp    0x7ff7bfefe938r8     0x7ff7bfefe800r9     0x7ff80326bf78r10    0x0r11    0x246r12    0x103r13    0x3000000008r14    0x6r15    0x16rip    0x7ff80327700erflags 0x246cs     0x7fs     0x0gs     0x0exit status 2

after change size to image.Pt(300, 300), it running successfully.

when size was iamge.Pt(128, 96), run this example on macOS, gocv v0.29, got error like this:`Start reading device: 0[ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3907) getLayerShapesRecursively OPENCV/DNN: [Convolution]:(conv8_2_h): getMemoryShapes() post validation failed. inputs=1 outputs=1/1 blobs=2 inplace=0[ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3910) getLayerShapesRecursively     input[0] = [ 1 64 2 2 ][ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3914) getLayerShapesRecursively     output[0] = [ 1 128 0 0 ][ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3918) getLayerShapesRecursively     blobs[0] = CV_32FC1 [ 128 64 3 3 ][ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3918) getLayerShapesRecursively     blobs[1] = CV_32FC1 [ 128 1 ][ERROR:0@1.213] global /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp (3920) getLayerShapesRecursively Exception message: OpenCV(4.5.5) /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp:3899: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively(int, cv::dnn::dnn4_v20211220::Net::Impl::LayersShapesMap &)'>  (expected: 'total(os[i]) > 0'), where>     'total(os[i])' is 0> must be greater than>     '0' is 0libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.5) /tmp/opencv-20220307-81903-1l5gslk/opencv-4.5.5/modules/dnn/src/dnn.cpp:3899: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20211220::Net::Impl::getLayerShapesRecursively(int, cv::dnn::dnn4_v20211220::Net::Impl::LayersShapesMap &)'>  (expected: 'total(os[i]) > 0'), where>     'total(os[i])' is 0> must be greater than>     '0' is 0SIGABRT: abortPC=0x7ff80327700e m=0 sigcode=0signal arrived during cgo executiongoroutine 1 [syscall, locked to thread]:runtime.cgocall(0x4098b30, 0xc00004ab88)/usr/local/Cellar/go/1.17.8/libexec/src/runtime/cgocall.go:156 +0x5c fp=0xc00004ab60 sp=0xc00004ab28 pc=0x40044fcgocv.io/x/gocv._Cfunc_Net_Forward(0x60000000e020, 0x600000004360)_cgo_gotypes.go:5658 +0x4d fp=0xc00004ab88 sp=0xc00004ab60 pc=0x4091d4dgocv.io/x/gocv.(*Net).Forward.func2(0x600000004360, 0xd)/Users/ztyu/workspace/gocv/dnn.go:169 +0x4c fp=0xc00004abc8 sp=0xc00004ab88 pc=0x40931acgocv.io/x/gocv.(*Net).Forward(0x600002624120, {0x40cf057, 0x0})/Users/ztyu/workspace/gocv/dnn.go:169 +0x6d fp=0xc00004ac28 sp=0xc00004abc8 pc=0x40930cdmain.main()/Users/ztyu/workspace/rsAnalyzer/test2.go:83 +0x7cb fp=0xc00004af80 sp=0xc00004ac28 pc=0x40954cbruntime.main()/usr/local/Cellar/go/1.17.8/libexec/src/runtime/proc.go:255 +0x227 fp=0xc00004afe0 sp=0xc00004af80 pc=0x4034367runtime.goexit()/usr/local/Cellar/go/1.17.8/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00004afe8 sp=0xc00004afe0 pc=0x405d9e1rax    0x0rbx    0xf0e7600rcx    0x7ff7bfefe938rdx    0x0rdi    0x103rsi    0x6rbp    0x7ff7bfefe960rsp    0x7ff7bfefe938r8     0x7ff7bfefe800r9     0x7ff80326bf78r10    0x0r11    0x246r12    0x103r13    0x3000000008r14    0x6r15    0x16rip    0x7ff80327700erflags 0x246cs     0x7fs     0x0gs     0x0exit status 2`after change size to image.Pt(300, 300), it running successfully.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@wgjtyu

[8]ページ先頭

©2009-2025 Movatter.jp