Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ducha-aiki committed Jan 23, 2024
1 parent 0f413c2 commit cd6ab70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lightglue/dog_hardnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def __init__(self, **conf):
super().__init__(**conf)
self.laf_desc = LAFDescriptor(HardNet(True)).eval()


def forward(self, data: dict) -> dict:
image = data["image"]
if image.shape[1] == 3:
Expand All @@ -39,4 +38,4 @@ def forward(self, data: dict) -> dict:
p["descriptors"] = self.laf_desc(img[None], lafs).reshape(-1, 128)
pred.append(p)
pred = {k: torch.stack([p[k] for p in pred], 0).to(device) for k in pred[0]}
return pred
return pred

0 comments on commit cd6ab70

Please sign in to comment.