Message type "caffe.LayerParameter" has no field named "bn_param"

跑新的CNN时,报错

提示caffe没有bn层

可以将bn层的相关文件添加后重新编译,也可以直接用下面的结构替代

作为一个整体,即bn结构

layer {  

  name: "bn_conv1"  

  type: "BatchNorm"  

  bottom: "conv1"  

  top: "conv1"  

  batch_norm_param{  

      use_global_stats:false    

  }

}

layer {  

  name: "scale_conv1"  

  type: "Scale"  

  bottom: "conv1"  

  top: "conv1"  

  scale_param{  

      bias_term:true    

    }

}