xmba15 / onnx_runtime_cpp

small c++ library to quickly deploy models using onnxruntime
MIT License
327 stars 49 forks source link

How much time does it take to run each picture of superglue? #24

Closed intjun closed 2 years ago

intjun commented 2 years ago

It takes me more than 1s to run each picture in rtx3060. Is this normal?ths

xmba15 commented 2 years ago

@intjun

Here are the two places where model weights are loaded: https://github.com/xmba15/onnx_runtime_cpp/blob/master/examples/SuperGlueApp.cpp#L35-L37 and https://github.com/xmba15/onnx_runtime_cpp/blob/master/examples/SuperGlueApp.cpp#L65-L75 You have to omit time spending on the above two places when benchmarking processing time.



Calculating using titan X, I got an average processing time of 92 ms.
xmba15 commented 2 years ago

@intjun Does this answer your question?

intjun commented 2 years ago

@intjun Does this answer your question? Yes, thank you. But it may be a problem with the onnxruntime library. Mine isn't that fast. Is your library compiled by yourself?