You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$v(i,j)$ is the predicted optical flow at image pixel $(i,j)$,
$g(i,j)$ the target (ground truth) optical flow and
$n$ the total number of pixels.
Notice that the flows are 2-dimensional as they have an entry $v_x,g_x$ for $x$ and $v_y,g_y$ for $y$ disposition. Therefore, the norm here is the square root of the sum of two squares:
Well I got a bit confused there... Depending on the shapes of the tensors it looks like the error is implemented correctly after all.
However, the L2Loss is usually implemented as the MSE, which is not the case in this code. At least the EPE and L2 having the same implementation is a contradiction.
Usually the (average) end-point error (EPE) is defined as such:
where
Notice that the flows are 2-dimensional as they have an entry$v_x,g_x$ for $x$ and $v_y,g_y$ for $y$ disposition. Therefore, the norm here is the square root of the sum of two squares:
In
losses.py
however, the EPE is calculated wrongly as the MSE:Although they look very similar, the actual EPE involves a square root which is missing in the MSE.
The text was updated successfully, but these errors were encountered: