Comments (8)
We realized that run time overhead limited the inference speed of LightGlue with few keypoints. We pushed some improvements in PR #37. Could you maybe checkout the corresponding branch and run the benchmark script:
python benchmark.py --compile --add_superglue
To add SuperGlue in the benchmark you also need hloc.
from lightglue.
This looks good to me. Note that in the plot above we benchmark against SuperGlue-fast, with fewer sinkhorn iterations. To compare against the original SuperGlue, you should uncomment the line here.
The main run time improvements of LightGlue are its adaptiveness, and this is clearly visible in your benchmark.
from lightglue.
How many keypoints are there in the two images? if less than 1k, can you compare the runtimes with point pruning turned off? We indeed need to add some checks in the model.
from lightglue.
I tested lightglue and superglue using both CPU and GPU ,In both cases, superglue takes less time,but in paper,lightglue is faster。I want to know why there is such a contradiction,and my CPU:Intel(R) Xeon(R) Gold 6242 CPU @ 2.80GHz ,GPU: RTX 2080Ti
How much inference time?
from lightglue.
@skydes Two images have 274 and 265 keypoints respectively 。 point pruning turned off or not, lightglue takes more time
from lightglue.
@kvnptl
Two images have 274 and 265 keypoints respectively 。
Superglue took 0.024 seconds, while lightglue took 0.0339 seconds 。
from lightglue.
I meet similar problem. For the image DSC_0410.JPG and DSC_0411.JPG, it seems that in the case of closing the "flash-attention", Lightglue can be only ~30% faster than superglue? I do this evaluation on rtx2070. (I have excluded the time comsumed by superpoint)
from lightglue.
Oh, I find my problem. But with benchmark code, it still seems something wrong? Without falsh-attention and compile, the speed will be similar to superglue?Am I still do something wrong?
from lightglue.
Related Issues (20)
- How to get description from giving point(x,y) HOT 2
- 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 1
- 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
- Error:_pickle.UnpicklingError: invalid load key, '\x0a'.
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.