caffe编译时json_parser_read.hpp报错

来源:互联网 发布:黑魂3捏脸 防火女 数据 编辑:程序博客网 时间:2024/06/06 10:45

报错原因:

json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array escape

因为是在公共服务器上,没有权限修改json_parser_read.hpp,可以通过修改caffe源码来解决这个错误。
在caffe_root/src/caffe/layers/下打开detection_output_layer.cpp和detection_output_layer.cu 注释掉:

write_json(ss,output);

这一行。

在caffe_root/include/caffe/layers/下打开detection_output_layer.hpp注释掉:

#include <boost/property_tree/json_parser.hpp>

重新编译即可。

阅读全文
0 0
原创粉丝点击