verlab / accelerated_features

Implementation of XFeat (CVPR 2024). Do you need robust and fast local feature extraction? You are in the right place!
https://www.verlab.dcc.ufmg.br/descriptors/xfeat_cvpr24
Apache License 2.0
1.01k stars 113 forks source link

what is the puerpose of depth0[:, 0, :] = 0? #65

Open Asherchi opened 2 months ago

Asherchi commented 2 months ago

in training file, megadepth_warper file, the following is code: `@torch.no_grad() def warp_kpts(kpts0, depth0, depth1, T_0to1, K0, K1): kpts0_long = kpts0.round().long().clip(0, 2000-1)

       depth0[:, 0, :] = 0 ; depth1[:, 0, :] = 0 
       depth0[:, :, 0] = 0 ; depth1[:, :, 0] = 0 `

i want to know that what is purpose of depth0[:, 0, :] = 0 and depth0[:, :, 0] = 0 ?