YannisK commited on
Commit
a15c1b9
1 Parent(s): aa5e40b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def match(query_feat, pos_feat, LoweRatioTh=0.9):
65
  dist = torch.cdist(query_feat, pos_feat)
66
  best1 = torch.argmin(dist, dim=1)
67
  best2 = torch.argmin(dist, dim=0)
68
- arange = torch.arange(best2.size(0), device=best2.device)
69
  reciprocal = best1[best2]==arange
70
  # check Lowe ratio test
71
  dist2 = dist.clone()
 
65
  dist = torch.cdist(query_feat, pos_feat)
66
  best1 = torch.argmin(dist, dim=1)
67
  best2 = torch.argmin(dist, dim=0)
68
+ arange = torch.arange(best2.size(0))
69
  reciprocal = best1[best2]==arange
70
  # check Lowe ratio test
71
  dist2 = dist.clone()