Skip to content

Commit

Permalink
Update URLs (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil26AT authored Jun 26, 2023
1 parent a4c268f commit e9e997d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ If you use any ideas from the paper or code from this repo, please consider citi
Marc Pollefeys},
title = {{LightGlue}: Local Feature Matching at Light Speed},
booktitle = {ArXiv PrePrint},
year = {2023},
url = {psarlin.com/lightglue.pdf}
year = {2023}
}
```
4 changes: 2 additions & 2 deletions lightglue/superpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def __init__(self, **conf):
c5, self.config['descriptor_dim'],
kernel_size=1, stride=1, padding=0)

path = Path(__file__).parent / 'weights/superpoint_v1.pth'
self.load_state_dict(torch.load(str(path)))
url = "https://github.com/cvg/LightGlue/releases/download/v0.1_arxiv/superpoint_v1.pth"
self.load_state_dict(torch.hub.load_state_dict_from_url(url))

mk = self.config['max_num_keypoints']
if mk == 0 or mk < -1:
Expand Down

0 comments on commit e9e997d

Please sign in to comment.