我想使用DEX训练网,从 此处. 但我遇到了以下问题,当我使用
net = caffe.Net('dex_imdb_wiki.caffemodel', 1, weights='age.prototxt')
这是错误日志。
[libprotobuf ERROR googleprotobuftext_format.cc:307] 错误解析文本格式caffe.NetParameter: 2:1: 文本中遇到无效控制字符。
[libprotobuf ERROR googleprotobuftext_format.cc:307] 错误解析文本格式caffe.NetParameter: 2:22: 解释非ascii码点162。
[libprotobuf ERROR googleprotobuftext_format.cc:307] 错误解析文本格式caffe.NetParameter:2:22:消息类型 "caffe.NetParameter "没有名为 "VGG_ILSVRC_16_layers "的字段。
警告:InitGoogleLogging()之前的日志记录被写入STDERR。
F0501 15:41:00.689872 5795 upgrade_proto.cpp:90] 。检查失败。ReadProtoFromTextFile(param_file, param) 解析NetParameter文件失败:gender.caffemodel。 * 检查故障堆栈跟踪。*
我使用Ubuntu 20.04 LTS和python 3.8.2。
我已经知道了错误的原因,只要把参数的顺序改成
net = caffe.Net('age.prototxt', 1, weights='dex_imdb_wiki.caffemodel')