yuefanhao / SuperPoint-SuperGlue-TensorRT

SuperPoint and SuperGlue with TensorRT. Deploy with C++.
Apache License 2.0
250 stars 45 forks source link

Why the first Image pair takes much longer time(like 5 seconds) than other pairs?? #23

Closed zxw0919 closed 8 months ago

zxw0919 commented 12 months ago

I ran the code on Jetson AGX Orin. And I noticed that the first image pair always took much longer time(like 5 seconds!)to infer. Do you know the reason? Thanks a lot!

yuefanhao commented 8 months ago

@zxw0919 Since some initialization is required before inference can be performed, you can pre-initialize by adjusting the process, this is just an example, and there are many other optimizations that can be made.