DeepFlow: outputs NaN
Hi,
On video input which works with Farneback optical flow and TV-L1 optical flow, the deepflow code from the opencv contrib repository outputs NaN values. This does not happen deterministically, but happens randomly at some frame. It works with expected output sometimes but at times outputs NaN.
Has any one faced similar problems with deep flow code ?
Version:
git describe --long
- opencv: 3.0.0-beta-0-gae4cb57
- opencv-contrib: 3.0.0-beta-0-g08699f1
Input video:
https://raw.githubusercontent.com/sou...
Code:
https://raw.githubusercontent.com/sou...
Thanks and regards,
Sourabh Daptardar
It would be easier if you also post your code so that others can reproduce the error.
Added code.
This happened to me once, did not solve it, but I think the problem was related with the resolution of the images. I think there is a little bug somewhere.
I've had the same issue. I'm building under MSVC. When I run with the debugger attached, it works fine. When I run without the debugger, deepflow returns a bunch of NaNs. I've seen this behavior before when it was related to Mats not getting properly initialized before use.
Have you found any more information about this issue?