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

Kitti 2015 train and val epe #16

Open
pichuang1984 opened this issue Jun 4, 2020 · 1 comment
Open

Kitti 2015 train and val epe #16

pichuang1984 opened this issue Jun 4, 2020 · 1 comment

Comments

@pichuang1984
Copy link

pichuang1984 commented Jun 4, 2020

Hi,

I am trying to reproduce your KITTI-15 validation (40 images) Fl-err and EPE result. I am using the finetune_149999.tar under kitti-ft-trainval. However I am unable to reporduce neither of your Fl-err (3.9) and EPE (1.144).

For EPE on 40 images, the average EPE I got is 2.527. As a reference, the average EPE is 2.5 for the kitti-train.

To calculate the EPE, I am using the following approach:

for index in range(len(test_left_img)):
    1. flow, _ = VCN(input)
    2. Resize flow to kitti Height and Width
    mask = gtflow[:,:,2]==1
    gtflow = gtflow[:,:,:2]
    flow = flow[:,:,:2]
    epe = np.sqrt(np.power(gtflow - flow,2).sum(-1))[mask]
     aepe_s.append( epe.mean() )

result = sum(aepe_s)/len(aepe_s)

Is this the right approach? Also, I don't seen to be able to find the code to compute Fl-err. Can you share this as well?

Thanks,

@gengshan-y
Copy link
Owner

gengshan-y commented Jun 4, 2020

Did you try this command in readme? It computes both epe and fl-err.

python eval_tmp.py --path ./weights/$modelname/ --vis no --dataset 2015

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