*.prototxt文件中的mean_value的顺序是什么?

layer {
  name: "data"
  type: "Data"
  top: "data"
  top: "label"
  include {
    phase: TRAIN
  }
  transform_param {
    mirror: true
    crop_size: 224
    mean_value: 104   
    mean_value: 117
    mean_value: 123
  }
  data_param {
    source: "examples/imagenet/ilsvrc12_train_lmdb"
    batch_size: 32
    backend: LMDB
  }
}

如果用opencv读取图片,那么读进来的就是BGR,如果时PIL.Image读取的图片就是RGB。

猜你喜欢

转载自blog.csdn.net/qq_18644873/article/details/84583066