AgeGender example of learnopencv blog

asked 2019-09-27 16:05:37 -0600

frengo gravatar image

Hi group, i am trying the AgeGender example of learnopencv blog and i am stuck on a runtime problem. The error says:

OpenCV(4.1.0) Error: Unspecified error (Requested layer "detection.out" not found) in cv::dnn::dnn4_v20190122::Net::Impl::getLayerData

I didn't apply any change at the original source files so I don't know how to solve it. My OpenCV version is: 4.1.0 and I compile the source code with Visual Studio 2015 32 bits I hope to get some help here. Thanx in advace and good work

edit retag flag offensive close merge delete

Comments

You could try on prebuild binnaries - i dont know how much this helps you...

holger gravatar imageholger ( 2019-09-27 17:03:53 -0600 )edit

"detection.out" not found

supra56 gravatar imagesupra56 ( 2019-09-27 20:35:43 -0600 )edit

even with the prebuild binaries? - If so i think there's maybe something wrong with your model / code. Which version of open cv does this tutorial use? BTW its hard to help without your code.

How often i thought "How could this be - i am doing 100% the same like they do". But then it was only 99.87% and i missed a minor thing :-)

holger gravatar imageholger ( 2019-09-27 21:07:18 -0600 )edit
1

Hmm if i find the time i can try and follow this tutorial too.

holger gravatar imageholger ( 2019-09-27 21:32:33 -0600 )edit
1

btw, it's called detection_out, not detection.out . it's probably just a typo.

you could also simply drop the name from the net.forward() call, it's the last layer anyway.

berak gravatar imageberak ( 2019-09-28 02:38:33 -0600 )edit