mattpoggi / depthstillation

Demo code for paper "Learning optical flow from still images", CVPR 2021.
MIT License
152 stars 11 forks source link

The result is strange in win10 #3

Closed 07hyx06 closed 3 years ago

07hyx06 commented 3 years ago

Hi! Thanks for your great work.

I try to run the code in win10, and use gcc -shared -o libwarping.dll warping.c instead of compile.sh. I modified lib = cdll.LoadLibrary("external/forward_warping/libwarping.so") to lib = cdll.LoadLibrary("external/forward_warping/libwarping.dll"). Then I run depthstillation.py but obtain strange result like that (dCOCO/im1): 95022_00 which is quite different from the result in supply. material. Did I miss something?

mattpoggi commented 3 years ago

Hi, wow, that's interesting :sweat_smile: I guess there is something occurring at low level... probably when passing NumPy data to the C wrapper? Not sure when, but I will try to reproduce this issue on Windows. For now, I would suggest running it in a Linux environment.

07hyx06 commented 3 years ago

Got it. I run the code in wsl2.0 and find it works well.