NVlabs / PWC-Net

PWC-Net: CNNs for Optical Flow Using Pyramid, Warping, and Cost Volume, CVPR 2018 (Oral)
Other
1.63k stars 357 forks source link

predicted flow is not identical to reference flow #101

Closed lhao0301 closed 4 years ago

lhao0301 commented 4 years ago

After struggling with the runtime environment, I run python proc_images.py and two flo files are generated. As stated in the README, I compare these two files with the reference flo files to check the validity. However, they are not exactly the same. Is there any randomness within the code? Or some other omissive items?

from flow_io import flow_read ref_10 = flow_read('tmp/reference_frame_0010_forward.flo') pred_10 = flow_read('tmp/frame_0010_forward.flo') import numpy as np np.max(np.abs(ref_10[0]-pred_10[0])) 15.484031 np.min(np.abs(ref_10[0]-pred_10[0])) 1.1920929e-07 np.max(np.abs(ref_10[1]-pred_10[1])) 7.7645383 np.min(np.abs(ref_10[1]-pred_10[1])) 0.0

And I find that #95 reported the same confusion. @deqings @luvegood

lhao0301 commented 4 years ago

Refer to #32