linghu8812/tensorrt_inference

C++

716

94 commits

updated Aug 23, 2023

See the code

README

TensorRT Models Deploy from ONNX

OSCS Status

Install Depends

see INSTALL.md

Build from Docker

docker build -t tensorrt_inference:0.1.0_rc .

How to Use

  • Build tensorrt_inference project:
git clone https://github.com/linghu8812/tensorrt_inference.git
cd tensorrt_inference/project
mkdir build && cd build
cmake ..
make -j

after these steps, the executable program tensorrt_inference and all support model shared libraries have been built.

  • Run tensorrt_inference
./tensorrt_inference

it will show:

Please design model arch, config file and folder name!
  • Inference with models, take yolov5 model as example, put yolov5s.onnx model into weights folder:
cd ../../bin/
./tensorrt_inference yolov5 ../configs/yolov5/config.yaml ../samples/detection_segmentation

Use one model library example can reference here example

Supported Models

download transfered ONNX models, and put them into folder weights: https://pan.baidu.com/s/1Ff_SA9Q66DUnZjSipPa74Q, code: opkp

modelsframeworkinstruction
lenetPyTorchAn example from model training to TensorRT model deploy
alexnetMXNet GluonMXNet Gluon example
arcfaceMXNet SymbolMXNet Symbol and face recognition example
CenterFaceONNXrewrite ONNX model and face detection example
efficientnetKerasKeras to ONNX example
face_alignmentMXNet SymbolMXNet Symbol and face key points detection example
fast-reidPyTorchPyTorch and pedestrian reid example
FCNGluonCVMXNet GluonCV semantic segmentation example
gender-ageMXNet SymbolMXNet Symbol and face gender and age recognize example
ghostnetPyTorchPyTorch example
MiniFASNetPyTorchPyTorch face anti spoofing example
mmposePyTorchPyTorch person key points detect example
nanodetPyTorchPyTorchlightweight anchor-free object detection example
RetinaFaceMXNet SymbolMXNet Symbol and face detection example
ScaledYOLOv4PyTorchYOLOv4 large with PyTorch implementation
scrfdPyTorchPyTorch scrfd face detection example
seresnextPyTorchPyTorch example
Swin-Transformertimmtimm image classification example
yolorPyTorchPyTorch and object detection example
Yolov4darknetdarknet and object detection example
yolov5PyTorchPyTorch and object detection example
YOLOv6PyTorchPyTorch and object detection example
yolov7PyTorchPyTorch and object detection example
yolov8ultralyticsultralytics object detection example

Discussion Groups

  • QQ group: 588966055

Contributors

linghu8812

87 commits

awarebayes

3 commits

denred0

2 commits

jenhaoyang

1 commits

linghu8812/tensorrt_inference

C++

716

94 commits

updated Aug 23, 2023

See the code

README

TensorRT Models Deploy from ONNX

OSCS Status

Install Depends

see INSTALL.md

Build from Docker

docker build -t tensorrt_inference:0.1.0_rc .

How to Use

  • Build tensorrt_inference project:
git clone https://github.com/linghu8812/tensorrt_inference.git
cd tensorrt_inference/project
mkdir build && cd build
cmake ..
make -j

after these steps, the executable program tensorrt_inference and all support model shared libraries have been built.

  • Run tensorrt_inference
./tensorrt_inference

it will show:

Please design model arch, config file and folder name!
  • Inference with models, take yolov5 model as example, put yolov5s.onnx model into weights folder:
cd ../../bin/
./tensorrt_inference yolov5 ../configs/yolov5/config.yaml ../samples/detection_segmentation

Use one model library example can reference here example

Supported Models

download transfered ONNX models, and put them into folder weights: https://pan.baidu.com/s/1Ff_SA9Q66DUnZjSipPa74Q, code: opkp

modelsframeworkinstruction
lenetPyTorchAn example from model training to TensorRT model deploy
alexnetMXNet GluonMXNet Gluon example
arcfaceMXNet SymbolMXNet Symbol and face recognition example
CenterFaceONNXrewrite ONNX model and face detection example
efficientnetKerasKeras to ONNX example
face_alignmentMXNet SymbolMXNet Symbol and face key points detection example
fast-reidPyTorchPyTorch and pedestrian reid example
FCNGluonCVMXNet GluonCV semantic segmentation example
gender-ageMXNet SymbolMXNet Symbol and face gender and age recognize example
ghostnetPyTorchPyTorch example
MiniFASNetPyTorchPyTorch face anti spoofing example
mmposePyTorchPyTorch person key points detect example
nanodetPyTorchPyTorchlightweight anchor-free object detection example
RetinaFaceMXNet SymbolMXNet Symbol and face detection example
ScaledYOLOv4PyTorchYOLOv4 large with PyTorch implementation
scrfdPyTorchPyTorch scrfd face detection example
seresnextPyTorchPyTorch example
Swin-Transformertimmtimm image classification example
yolorPyTorchPyTorch and object detection example
Yolov4darknetdarknet and object detection example
yolov5PyTorchPyTorch and object detection example
YOLOv6PyTorchPyTorch and object detection example
yolov7PyTorchPyTorch and object detection example
yolov8ultralyticsultralytics object detection example

Discussion Groups

  • QQ group: 588966055

Contributors

linghu8812

87 commits

awarebayes

3 commits

denred0

2 commits

jenhaoyang

1 commits

Languages

C++

50.9%

Python

36.4%

CMake

11.7%