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

Prepare kitti flow files for online evaluation #158

Closed alhersh closed 6 years ago

alhersh commented 6 years ago

Hi,

I have used FlowNet2 to produce .flo files. Since two months, I am trying to submit the results as kitti explains: " Optical flow maps are saved as 3-channel uint16 PNG images: The first channel contains the u-component, the second channel the v-component and the third channel denotes if the pixel is valid or not (1 if true, 0 otherwise)". But I can't!

My question is: how I can convert the generated optical flow from FlowNet to be in the specified PNG format? Since the generated optical flow has only 2 channels? From your experience, what is valid pixel or not?

One of the ways I have tried is adding another dimension to the flo file will all ones!

Many thanks,

Taha

nikolausmayer commented 6 years ago

That gives you all the code you need to convert FLO files into the PNG format expected by KITTI, you just need to cobble it together yourself.

alhersh commented 6 years ago

Many thanks for the directions. I will follow the instructions.

Thomas-Mccabe commented 4 years ago

Hi,

Alhersh, I have ran into the same issue. Have you had any luck solving this?

Thank you, Tom