You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ This repo use TensorRT-8.x to deploy well-trained models, both image preprocessi
35
35
+ 2023.05.16 🚀 Support cuda box postprocess.
36
36
+ 2023.05.19 🚀 Support cuda mask postprocess and support rtdetr.
37
37
+ 2023.05.21 🚀 Support yolov6.
38
+
+ 2023.05.26 🚀 Support dynamic batch inference.
38
39
</details>
39
40
40
41
## 3.Support Models
@@ -57,13 +58,13 @@ All speed tests were performed on RTX 3090 with COCO Val set.The time calculated
57
58
| Models | BatchSize | Mode | Resolution | FPS |
58
59
|-|-|:-:|:-:|:-:|
59
60
| YOLOv5-s v7.0 | 1 | FP32 | 640x640 | 200 |
60
-
| YOLOv5-s v7.0 | 32 | FP32 | 640x640 |-|
61
+
| YOLOv5-s v7.0 | 32 | FP32 | 640x640 |246|
61
62
| YOLOv5-seg-s v7.0 | 1 | FP32 | 640x640 | 155 |
62
63
| YOLOv6-s v3 | 1 | FP32 | 640x640 | 163 |
63
64
| YOLOv7 | 1 | FP32 | 640x640 | 107 |
64
65
| YOLOv8-s | 1 | FP32 | 640x640 | 171 |
65
66
| YOLOv8-seg-s | 1 | FP32 | 640x640 | 122 |
66
-
| RT-DETR | 1 | FP32 | 640x640 |-|
67
+
| RT-DETR | 1 | FP32 | 640x640 |106|
67
68
</div>
68
69
69
70
@@ -97,8 +98,10 @@ mkdir build && cd build
97
98
cmake ..
98
99
make -j$(nproc)
99
100
```
100
-
4. Download the TRT engine or ONNX model and put them in `weights/MODEL_NAME`. Then modify the configuration file in `configs`.
101
-
101
+
4. Get the ONNX model from the official repository and put them in `weights/MODEL_NAME`. Then modify the configuration file in `configs`.Take yolov5 as an example:
5. The executable file will be generated in `bin` in the repo directory if compile successfully.Then enjoy yourself with command like this:
103
106
```
104
107
cd bin
@@ -107,6 +110,7 @@ cd bin
107
110
108
111
> Notes:
109
112
> 1. The output of the model is required for post-processing is num_bboxes (imageHeight x image Width) x num_pred(num_cls + coordinates + confidence),while the output of YOLOv8 is num_pred x num_bboxes,which means the predicted values of the same box are not contiguous in memory.For convenience, the corresponding dimensions of the original pytorch output need to be transposed when exporting to ONNX model.
113
+
> 2. The dynamic shape engine is convenient but sacrifices some inference speed compared with the static model of the same batchsize.Therefore, if you want to pursue faster inference speed, it is better to export the ONNX model of fixed batchsize, such as batchsize 32.
0 commit comments