martinkersner / train-DeepLab

Train DeepLab for Semantic Image Segmentation
MIT License
172 stars 76 forks source link

how to add BN layers to this version? #34

Closed MuseCP closed 7 years ago

MuseCP commented 7 years ago

I meet this error when I try to add BN layer to this version:

In file included from src/caffe/layers/batch_norm_layer.cpp:4:0:
./include/caffe/layers/batch_norm_layer.hpp: In instantiation of ‘class caffe::BatchNormLayer<float>’:
src/caffe/layers/batch_norm_layer.cpp:249:1:   required from here
./include/caffe/layers/batch_norm_layer.hpp:49:30: error: conflicting return type specified for ‘const char* caffe::BatchNormLayer<Dtype>::type() const [with Dtype = float]’
   virtual inline const char* type() const { return "BatchNorm"; }

I really have no idea how to solve it because I believe it is correct.