- Notifications
You must be signed in to change notification settings - Fork877
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:releaseChoose a base branch fromwgjtyu:patch-1
base:release
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Open
Update main.go#956
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
when size was iamge.Pt(128, 96), run this example on macOS, gocv v0.29, got error like this:
after change size to image.Pt(300, 300), it running successfully.