我从Github上下载caffe源码编译成C++静态库,用静态库测试OpenCV人脸检测Caffe模型,lib报错如下:
[libprotobuf ERROR D:\ThirdPartyLibrary\protobuf\src\google\protobuf\text_format.cc:296] Error parsing text-format caffe.NetParameter: 984:14: Message type "caffe.LayerParameter" has no field named "norm_param".
F0328 02:08:05.225075 24332 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: D:/DATA/PreTrainedModel/cv_facedet/deploy.prototxt
这是否意味着norm_param
字段仅由OpenCV实现,而不是标准的Caffe字段?
最佳答案
norm_param
是来自 SSD Caffe framework 的规范化层的参数: https://github.com/weiliu89/caffe/blob/8a65ae316b34e7c8fdefa6e18bf08a23b78caa0e/src/caffe/proto/caffe.proto#L523
来源 repo :https://github.com/weiliu89/caffe/tree/ssd
origin Caffe 中没有 SSD 对象检测网络.
关于opencv - OpenCV DNN 人脸检测模块无法与 Caffe C++ 库一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55384058/