本文介绍了Caffe的train.prototxt中平均值的顺序是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Caffe 'train.prototxt'中,我正在进行一些输入数据转换,如下所示:

In my Caffe 'train.prototxt' I'm doing some input data transformation, like this:

  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顺序?

Now I want to store a modified version of my input images such that certain image regions are set to those mean values. The rational is that those regions are then set to 0 during mean subtraction. However I don't know what the order of channels is that caffe expects in such a prototxt file and I couldn't look it up in the caffe code either.
Does someone now whether the 3 values given above are in RGB or BGR order?

(我不确定,因为caffe在内部使用opencv以不寻常的BGR格式存储图像)

(I'm not sure since caffe is using opencv internally which stores images in the unusual BGR format)

推荐答案

https://groups.google.com/forum/#!topic/caffe-users/9opH6AW3Irw (由Evan Shelhamer回答):

https://groups.google.com/forum/#!topic/caffe-users/9opH6AW3Irw (answer by Evan Shelhamer):

这篇关于Caffe的train.prototxt中平均值的顺序是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 02:40