Giter VIP home page Giter VIP logo

Comments (8)

Phil26AT avatar Phil26AT commented on May 23, 2024 1

Hi @qazzombie @kvnptl

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.

Phil26AT avatar Phil26AT commented on May 23, 2024 1

Hi @xuanlanxingkongxia

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.

sarlinpe avatar sarlinpe commented on May 23, 2024

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.

kvnptl avatar kvnptl commented on May 23, 2024

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.

qazzombie avatar qazzombie commented on May 23, 2024

@skydes Two images have 274 and 265 keypoints respectively 。 point pruning turned off or not, lightglue takes more time

from lightglue.

qazzombie avatar qazzombie commented on May 23, 2024

@kvnptl
Two images have 274 and 265 keypoints respectively 。
Superglue took 0.024 seconds, while lightglue took 0.0339 seconds 。

from lightglue.

xuanlanxingkongxia avatar xuanlanxingkongxia commented on May 23, 2024

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.

xuanlanxingkongxia avatar xuanlanxingkongxia commented on May 23, 2024

LightGlue_benchmark_(cuda)
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.