Skip to content

Commit

Permalink
Support TensorRT
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-sim authored Jul 20, 2023
1 parent a25a192 commit 727f38a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# LightGlue ONNX

支持Open Neural Network Exchange (ONNX)的[LightGlue: Local Feature Matching at Light Speed](https://github.com/cvg/LightGlue)实施。ONNX格式支持不同平台之间的互操作性,并支持多个执行提供程序,同时消除了Python特定的依赖项,比如PyTorch。支持TensorRT(实验性)
支持Open Neural Network Exchange (ONNX)的[LightGlue: Local Feature Matching at Light Speed](https://github.com/cvg/LightGlue)实施。ONNX格式支持不同平台之间的互操作性,并支持多个执行提供程序,同时消除了Python特定的依赖项,比如PyTorch。支持TensorRT和OpenVINO

<p align="center"><a href="https://arxiv.org/abs/2306.13643"><img src="../assets/easy_hard.jpg" alt="LightGlue figure" width=80%></a>

Expand Down Expand Up @@ -54,6 +54,7 @@ runner = LightGlueRunner(
extractor_path="weights/superpoint.onnx",
lightglue_path="weights/superpoint_lightglue.onnx",
providers=["CUDAExecutionProvider", "CPUExecutionProvider"],
# TensorrtExecutionProvider, OpenVINOExecutionProvider
)

# Run inference
Expand All @@ -74,9 +75,9 @@ python infer.py \
--viz
```

## TensorRT (实验性)
## TensorRT

TensorRT推理使用ONNXRuntime的TensorRT Execution Provider。
TensorRT推理使用ONNXRuntime的TensorRT Execution Provider。请先安装[TensorRT](https://docs.nvidia.com/deeplearning/tensorrt/install-guide/index.html)

```bash
python tools/symbolic_shape_infer.py \
Expand Down

0 comments on commit 727f38a

Please sign in to comment.