lmb-freiburg / flownet2

FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
https://lmb.informatik.uni-freiburg.de/Publications/2017/IMKDB17/
Other
1k stars 318 forks source link

Eltwise1 and 2 SUM or PROD #148

Closed pedropgusmao closed 6 years ago

pedropgusmao commented 6 years ago

Hello, I am trying to replicate the results for FlowNetS with Tensorflow starting from the train.prototxt. I am a bit puzzled about the Eltwise1 layer that has an operation SUM with coeff 0.00392156862745, which looks a lot like 1/255. Shouldn’t this operation be PROD instead of SUM? The same goes to Eltwise2 layer.

Thanks in advance

nikolausmayer commented 6 years ago

The convention can be confusing, but SUM is correct here: The PROD operation in Eltwise does elementwise multiplication of 2 bottom blobs. The SUM op linearly scales a bottom blob by the SUM coefficient.

pedropgusmao commented 6 years ago

Thanks!