Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High error rate for KITTI 2015 Training dataset #223

Closed
Diksha-Moolchandani opened this issue Dec 19, 2020 · 1 comment
Closed

High error rate for KITTI 2015 Training dataset #223

Diksha-Moolchandani opened this issue Dec 19, 2020 · 1 comment

Comments

@Diksha-Moolchandani
Copy link

Diksha-Moolchandani commented Dec 19, 2020

I ran the flownet2-kitti model provided in the repo. The dataset used was KITTI 2015 training dataset with left images in the image_2/ folder, right images in the image_3/ folder, and the ground truth disparity in the disp_occ_0/ folder. I have modified run-flownet-many.py with the Kitti dataloader.

I am getting an average error of 0.59 (averaged across the 200 images in the dataset).

The error is calculated using compareDisp(ground_truth, blob). This function is called after line 98 in run-flownet.py.
The function is described below.

def compareDisp(disp_L, flow):

disp = flow[:,:,0:1]
[height, width, channel] = flow.shape
disp = np.absolute(np.reshape(disp, (height, width)))
gt = disp_L
disp = torch.tensor(disp)
disp = torch.unsqueeze(disp,0)
mask = gt > 0
errmap = torch.abs(disp - gt)
err3 = ((errmap[mask] > 3.) & (errmap[mask] / gt[mask] > 0.05)).sum()
print((err3.float() / mask.sum().float()).item())
return (err3.float() / mask.sum().float()).item()

The error seems very large. Can anyone help me with this? Similar function is used in ISM algorithm (MICRO paper) and AnyNet code
I can share the modified python file, if needed.

@nikolausmayer
Copy link
Contributor

If I read this correctly, the error is measured in pixels, right? 0.59 isn't a large pixel error, in fact it's probably very good, considering the fact that FlowNet2 is not specialized for disparity.
Did you check the results visually, e.g. by warping the right image onto the left and looking at the difference to the original left image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants