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

Can I use PWC-Net instead dense-flow? #94

Open dagongji10 opened 4 years ago

dagongji10 commented 4 years ago

Thanks for sharing your nice work! I used to extract optflow with dense-flow, but it's really slow. So I hope to use PWC-Net instead. Dense-flow use u/v flow respectively (save as .jpg) , how can I get the same result (flow value is 0~255, and save as u/v .jpg) as dense-flow?

Another question is, when extract optflow for a video, the input 2 frames adjacent to each other? In dense-flow, it takes i and i+1 as input, but in PWC I get optflow-value very small (about -0.8~0.7). Should I use i-i+3 to increase frame diff?