eveningglow / age-and-gender-classification

Caffe implementation of age and gender classification using convolutional neural network
113 stars 48 forks source link

run in VS2015 can not read the model files #5

Open hsqaihkl opened 6 years ago

hsqaihkl commented 6 years ago

@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:

ghost commented 5 years ago

hi. I have the same problem too.

zj376879088 commented 3 years ago

[libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:1: Invalid control characters encountered in text. [libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:10: Invalid control characters encountered in text. [libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:11: Interpreting non ascii codepoint 177. [libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:11: Message type "caffe.NetParameter" has no field named "CaffeNet". WARNING: Logging before InitGoogleLogging() is written to STDERR F1111 10:59:28.480849 8008 upgrade_proto.cpp:90] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: ../model/gender_net.caffemodel Check failure stack trace: ./run.sh: line 7: 8008 Aborted (core dumped) ./start "../model/gender_net.caffemodel" "../model/deploy_gender2.prototxt" "../model/age_net.caffemodel" "../model/deploy_age2.prototxt" "../model/mean.binaryproto" "../img/0000.jpg" me too!!!!!!!!! The code has issue!

zj376879088 commented 3 years ago

auther said: model files(prototxt file), weight files(caffemodel file) and mean file(binaryproto file) so, run cmd should like this (./start ../model/deploy_gender2.prototxt ../model/gender_net.caffemodel ../model/deploy_age2.prototxt ../model/age_net.caffemodel ../model/mean.binaryproto ../img/0000.jpg)

OK !