Comments (2)
Hey @phamkhactu, LightGlue actually takes the description of each point(x,y) as input to find correspondences between 2 images. However, you can get the description from the extractors, something like this:
from lightglue import LightGlue, SuperPoint
from lightglue.utils import load_image, rbd
# SuperPoint+LightGlue
extractor = SuperPoint(max_num_keypoints=2048).eval().cuda() # load the extractor
matcher = LightGlue(features='superpoint').eval().cuda() # load the matcher
# load image as a torch.Tensor on GPU with shape (3,H,W), normalized in [0,1]
image0 = load_image('path/to/image_0.jpg').cuda()
# extract local features
feats0 = extractor.extract(image0) # auto-resize the image, disable with resize=None
keypoints, descriptors = feats0["keypoints"][0], feats0["descriptors"][0]
from lightglue.
Hey @phamkhactu, LightGlue actually takes the description of each point(x,y) as input to find correspondences between 2 images. However, you can get the description from the extractors, something like this:
from lightglue import LightGlue, SuperPoint from lightglue.utils import load_image, rbd # SuperPoint+LightGlue extractor = SuperPoint(max_num_keypoints=2048).eval().cuda() # load the extractor matcher = LightGlue(features='superpoint').eval().cuda() # load the matcher # load image as a torch.Tensor on GPU with shape (3,H,W), normalized in [0,1] image0 = load_image('path/to/image_0.jpg').cuda() # extract local features feats0 = extractor.extract(image0) # auto-resize the image, disable with resize=None keypoints, descriptors = feats0["keypoints"][0], feats0["descriptors"][0]
Hi @Phil26AT
As your describe above, each point has description. But I see that model limited by max_num_keypoints, so with image has 1280x720, some pixel doesn't has description.
I am so sorry if I misunderstand your response.
Thank you.
from lightglue.
Related Issues (20)
- can I use this algorithm to get the similarity score of two pictures? HOT 1
- The matching effect of similar images is too different HOT 5
- ERROR in the Installation HOT 1
- TSNE on descriptors outputted by SuperPoint?
- How to display the matching status of each pair of feature points HOT 2
- Retrain model LightGlue with ourdataset HOT 2
- While Reproducing the results HOT 1
- Questions about SIFT+LightGlue HOT 3
- spelling error in README HOT 1
- Compatibility Issue with GridSample and ONNX Opset 15 on NXP i.MX 93 NPU HOT 1
- How to do inference with trained model? HOT 2
- No keypoints with sift = error
- FlashAttention actually does not support attention mask HOT 3
- What's the difference between matches0 and matches1
- some problem that delopy on device, such as snapdragon snpe HOT 1
- Training with own dataset on both extractor and matcher HOT 2
- Illegal License HOT 4
- sift+lightglue HOT 5
- LightGlue-full-compile won't work with torch '2.2.1+cu121' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightglue.