Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincentqyw committed Oct 29, 2024
1 parent fd8fe90 commit a8ab6a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hloc/matchers/xfeat_lightglue.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ def _forward(self, data):
]
out0.update({"image_size": (im0.shape[-1], im0.shape[-2])}) # W H
out1.update({"image_size": (im1.shape[-1], im1.shape[-2])}) # W H
mkpts_0, mkpts_1 = self.net.match_lighterglue(out0, out1)
pred = self.net.match_lighterglue(out0, out1)
if len(pred) == 3:
mkpts_0, mkpts_1, _ = pred
else:
mkpts_0, mkpts_1 = pred
mkpts_0 = torch.from_numpy(mkpts_0) # n x 2
mkpts_1 = torch.from_numpy(mkpts_1) # n x 2
pred = {
Expand Down

0 comments on commit a8ab6a7

Please sign in to comment.