lmb-freiburg / flownet2

FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks

Home Page:https://lmb.informatik.uni-freiburg.de/Publications/2017/IMKDB17/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mean layer question

r0drigor opened this issue · comments

Hello, I'm trying to figure out why are there 4 values in the Mean layer.
You have "input_scale" and the rest are just stated as "values".
@nikolausmayer

layer {
name: "Mean1"
type: "Mean"
bottom: "img0"
top: "img0_aug"
mean_param {
operation: SUBTRACT
input_scale: 0.0039216
value: 0.411451
value: 0.432060
value: 0.450141
}
(These were taken from FlowNet1)

But then, in mean_layer.cpp you use just 3 values:
float input_scale = this->layer_param().mean_param().input_scale();
float mean_scale = this->layer_param().mean_param().mean_scale();
float output_scale = this->layer_param().mean_param().output_scale();

I was misunderstanding the code in mean.cpp. Each "value" is for each color channel, I'm guessing since there is no mean_scale or output_scale, they stay at 1.