NVIDIA / flownet2-pytorch

Pytorch implementation of FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
Other
3.09k stars 739 forks source link

Shuffle frames at the Output ( .flo files in color code frames ) #214

Open majifo opened 4 years ago

majifo commented 4 years ago

Hi, I'm trying to execute the Flownet2 on my frames (ImagesFromFolder), everything goes fine, and the end when I convert .flo files to color code frames via "flowiz", I see disordering in the frames. (Shuffle in frames).

in the output, the first frames belong to the middle of my video frames... in other words, output frames (.flo files) don't match original frames...

can someone help me?

This is a frame at the 00:01s of my video:

frame

This is the frame at the 00:08s of output video:

output
Gauravv97 commented 3 years ago

@majifo I can only think of one way this problem can occur. Can you share the naming scheme of your images, are they like frame0.png or frame00000.png. Another issue that can occur is that list of files is not properly sorted before converting to frame. If your issue is still unresolved you can use use custom code to properly generate the video file from .flo and see where things are going wrong.