fabio-sim/LightGlue-ONNX

我在jetson agx上运行infer.py,花费19s才完成,是我的环境有问题吗?tensorrt的版本一定要是8.6吗

Ddd195 opened this issue · 1 comments

2023-11-14 00:28:31.398252321 [E:onnxruntime:Default, env.cc:254 ThreadMain] pthread_setaffinity_np failed for thread: 17329, index: 2, mask: {7, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
2023-11-14 00:28:31.398473535 [E:onnxruntime:Default, env.cc:254 ThreadMain] pthread_setaffinity_np failed for thread: 17328, index: 1, mask: {6, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
2023-11-14 00:28:31.414367557 [W:onnxruntime:, graph.cc:3553 CleanUnusedInitializersAndNodeArgs] Removing initializer '855'. It is not used by any node and should be removed from the model.
2023-11-14 00:28:31.430167596 [E:onnxruntime:Default, env.cc:254 ThreadMain] pthread_setaffinity_np failed for thread: 17327, index: 0, mask: {5, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
2023-11-14 00:28:33.990446848 [E:onnxruntime:Default, env.cc:254 ThreadMain] pthread_setaffinity_np failed for thread: 17336, index: 0, mask: {5, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
2023-11-14 00:28:33.990487936 [E:onnxruntime:Default, env.cc:254 ThreadMain] pthread_setaffinity_np failed for thread: 17337, index: 1, mask: {6, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
2023-11-14 00:28:33.997726424 [E:onnxruntime:Default, env.cc:254 ThreadMain] pthread_setaffinity_np failed for thread: 17338, index: 2, mask: {7, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
time:19004.687070846558毫秒

您好 @Ddd195,感谢您对LightGlue-ONNX的兴趣。

通过ONNXRuntime的TensorRT有一些问题,不太好。直接使用纯TensorRT (e.g., trtexec, TensorRT Python)应该会更好。