eveningglow / age-and-gender-classification Goto Github PK
View Code? Open in Web Editor NEWCaffe implementation of age and gender classification using convolutional neural network
Caffe implementation of age and gender classification using convolutional neural network
Hi sir!
When I run the "age-and-gender-classification" it's terminated with the following error message:
terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.5) /home/bahman/3rd/opencv-3.4.5/modules/core/src/copy.cpp:254: error: (-215:Assertion failed) channels() == CV_MAT_CN(dtype) in function 'copyTo'
Press to close this window...
What can be the solution to this issue?
My environment:
P.S. I had to define the followings in order to be able to successfully compile the code:
DEFINES += CPU_ONLY \
OPENCV_TRAITS_ENABLE_DEPRECATED
Hi eveningglow,
could tell me which model did use in this project?or how to train the data?
@eveningglow Hi,
I run it in Vs2015 caffe cude8.0 cudnn 5.1 but it cann't ! Error like this:
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0427 14:24:43.715765 3984 common.cpp:36] System entropy source not available, using fallback algorithm to generate seed instead.
[libprotobuf ERROR C:\Users\guillaume\work\caffe-builder\build_v140_x64\packages\protobuf\protobuf_download-prefix\src\protobuf_download\src\google\protobuf\text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:1: Invalid control characters encountered in text.
[libprotobuf ERROR C:\Users\guillaume\work\caffe-builder\build_v140_x64\packages\protobuf\protobuf_download-prefix\src\protobuf_download\src\google\protobuf\text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:10: Invalid control characters encountered in text.
[libprotobuf ERROR C:\Users\guillaume\work\caffe-builder\build_v140_x64\packages\protobuf\protobuf_download-prefix\src\protobuf_download\src\google\protobuf\text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:11: Interpreting non ascii codepoint 177.
[libprotobuf ERROR C:\Users\guillaume\work\caffe-builder\build_v140_x64\packages\protobuf\protobuf_download-prefix\src\protobuf_download\src\google\protobuf\text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:11: Message type "caffe.NetParameter" has no field named "CaffeNet".
F0427 14:24:45.963618 3984 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: gender_net.caffemodel
*** Check failure stack trace: ***
Thanks for your demo, you said if I want to analysis every person's gender and age at one image, I should use a face detection network to extract every person's face firstly, so I can use mtcnn to detect face,but should I preprocess the face image before send it to your network? I mean, should I align the face image, or not? extend the face rectangle, or not? I think I should extend the face rectangle to include more parts of hair,ear and jaw, is it right?
sorry for naive question, i'm only understand python language
Thanks for your demo.I want to get Multi-objective gender and age at one picture. but i have no idea
to do that,Could you give me some advices.
can you provide accuracy and speed of caffe model? or any info about your models
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.