未声明caffe-segnet错误'BNParameter_BNMode_LEARN'

时间:2018-12-18 12:24:29

标签: build caffe image-segmentation ubuntu-18.04

说明:

我尝试在Ubuntu 18.04上编译caffe-segnet
我使用cmake-gui配置并生成了它。
一切似乎都很好。
但是我在构建过程中遇到了此错误:

/opt/caffe-segnet/include/caffe/common_layers.hpp:96:13: error: ‘BNParameter_BNMode_LEARN’ was not declared in this scope
             BNParameter_BNMode_LEARN) ? 3 : 1;

在此犯罪文件(/opt/caffe-segnet/include/caffe/common_layers.hpp.hpp的第14行时,确实包含文件caffe.pb.h
#include "caffe/proto/caffe.pb.h"
该对象(BNParameter_BNMode_LEARN似乎出现的位置,因为它是我在源代码目录中对其进行grep的唯一文件:

/opt/caffe-segnet/build$ grep -inr "BNParameter_BNMode_LEARN" *
include/caffe/proto/caffe.pb.h:174:  BNParameter_BNMode_LEARN = 0,
include/caffe/proto/caffe.pb.h:178:const BNParameter_BNMode BNParameter_BNMode_BNMode_MIN = BNParameter_BNMode_LEARN;
include/caffe/proto/caffe.pb.h:3896:    BNParameter_BNMode_LEARN;

问题:

如何修复?
(我已经按照以下说明从来源安装了caffehttp://caffe.berkeleyvision.org/installation.html
我精确地说我是在没有NVidia GPU的笔记本电脑上,因此CUDA已禁用。)

0 个答案:

没有答案