Spaces:
Build error
Build error
edits
Browse files
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)
|
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()
|