Caffe train.prototxt 中平均值的顺序是什么?
What is the order of mean values in Caffe's train.prototxt?
在我的 Caffe 'train.prototxt'
我正在做一些输入数据转换,像这样:
transform_param {
mirror: true
crop_size: 321
mean_value: 104 # Red ?
mean_value: 116 # Blue ?
mean_value: 122 # Green ?
}
现在我想存储输入图像的修改版本,以便将某些图像区域设置为那些平均值。合理的是,这些区域然后在均值减法期间被设置为 0。但是我不知道 caffe 在这样的 prototxt 文件中期望的通道顺序是什么,我也无法在 caffe 代码中查找它。
现在有人知道上面给出的 3 个值是按 RGB 还是 BGR 顺序排列的吗?
(我不确定,因为 caffe 在内部使用 opencv,它以不寻常的 BGR 格式存储图像)
https://groups.google.com/forum/#!topic/caffe-users/9opH6AW3Irw(Evan Shelhamer 的回答):
[Mean] values are BGR for historical reasons -- the original CaffeNet training lmdb was made with image processing by OpenCV which defaults to BGR order.
在我的 Caffe 'train.prototxt'
我正在做一些输入数据转换,像这样:
transform_param {
mirror: true
crop_size: 321
mean_value: 104 # Red ?
mean_value: 116 # Blue ?
mean_value: 122 # Green ?
}
现在我想存储输入图像的修改版本,以便将某些图像区域设置为那些平均值。合理的是,这些区域然后在均值减法期间被设置为 0。但是我不知道 caffe 在这样的 prototxt 文件中期望的通道顺序是什么,我也无法在 caffe 代码中查找它。
现在有人知道上面给出的 3 个值是按 RGB 还是 BGR 顺序排列的吗?
(我不确定,因为 caffe 在内部使用 opencv,它以不寻常的 BGR 格式存储图像)
https://groups.google.com/forum/#!topic/caffe-users/9opH6AW3Irw(Evan Shelhamer 的回答):
[Mean] values are BGR for historical reasons -- the original CaffeNet training lmdb was made with image processing by OpenCV which defaults to BGR order.