lmb-freiburg / flownet2-docker

Dockerfile and runscripts for FlowNet 2.0 (estimation of optical flow)
https://lmb.informatik.uni-freiburg.de/Publications/2017/IMKDB17/
GNU General Public License v3.0
158 stars 52 forks source link

convert .flo file to .npy file #17

Closed YoungJ-Baek closed 4 years ago

YoungJ-Baek commented 4 years ago

I want to get vector map of optical flow So I try to convert .flofile into vector map file such as .npy file. However I can only find the way how to convert it into .png file or something for image file. Can you help me with this matter?

Also I want to try many layers and make custom network but I'm not familiar with Docker and Ubuntu, so I don't know how to access and modify source codes I can trace back the source codes to get vector map of optical flow if there's no way to convert .flo to .npy or something else.

tonmoy-saikia commented 4 years ago

Here is a snippet on reading .flo files with python. https://github.com/lmb-freiburg/netdef_slim/blob/master/utils/io.py#L145

YoungJ-Baek commented 4 years ago

Thank you for helping me! Now I can read vector map and am surprised for the large number of data so that I can't read by set_printoptions(threshold=np.nan) So I am trying to find the best way to get best feature of vector map. However your advice help me a lot and it is my new task to struggle! Thanks again!