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

Visualizing optical flow files. #71

Closed letatanu closed 7 years ago

letatanu commented 7 years ago

Hi, I generate successfully the optical flow files from my video by Flownet2. However, when I use code gave by http://vision.middlebury.edu to visualize optical flow file, the code cannot read optical flow file. I also use another code to read the optical flow files, still get error in reading files. I wonder if the optical flow files generated from Flownet2 have the same structure as other optical flow files. Thank you.

Maryada-27 commented 7 years ago

Hey,

Could you please tell me how did you calculate it for a video file. I am stuck to use it for a mp4/avi file

nikolausmayer commented 7 years ago

@letatanu The FlowNet2 generates FLO files. The code you link to should be able to read it. What error are you getting?

@Maryada-27 We do not support video files directly, but you can convert the video into individual frames (e.g. using ffmpeg: ffmpeg -i your_video.avi -f image2 frame_%05d.png). Then you can feed those frames into the FlowNet via the "run_flownet_many" script.

nikolausmayer commented 7 years ago

@letatanu @Maryada-27 Is this issue still relevant, or can it be closed?

Maryada-27 commented 7 years ago

Yes please... Thanks a lot

letatanu commented 7 years ago

@nikolausmayer It's my code error. Now I'm able to read FLO files. Thank you so much.