Skip to content

Commit 84bbd23

Browse files
committed
Fix normalization
1 parent ff0fba3 commit 84bbd23

33 files changed

Lines changed: 164 additions & 96 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ This repo use TensorRT-8.x to deploy well-trained models, both image preprocessi
4545

4646
- [x] [YOLOv5](https://github.com/ultralytics/yolov5)<br>
4747
- [x] [YOLOv5-seg](https://github.com/ultralytics/yolov5)<br>
48+
- [x] [YOLOv6](https://github.com/meituan/YOLOv6)<br>
4849
- [x] [YOLOv7](https://github.com/WongKinYiu/yolov7)<br>
4950
- [x] [YOLOv8](https://github.com/ultralytics/ultralytics)<br>
5051
- [x] [YOLOv8-seg](https://github.com/ultralytics/ultralytics)<br>
52+
- [x] [YOLOX](https://github.com/Megvii-BaseDetection/YOLOX)<br>
5153
- [x] [RT-DETR](https://github.com/PaddlePaddle/PaddleDetection/tree/develop/configs/rtdetr)<br>
52-
- [x] [YOLOv6](https://github.com/meituan/YOLOv6)<br>
53-
- [ ] [YOLO-NAS](https://github.com/Deci-AI/super-gradients) (to be continued)<br>
5454
</details>
5555

5656
All speed tests were performed on RTX 3090 with COCO Val set.The time calculated here is the sum of the time of image loading, preprocess, inference and postprocess, so it's going to be slower than what's reported in the paper.

configs/rtdetr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ rtdetr:
99
imageHeight: 640
1010
conf_thr: 0.5
1111
num_queries: 300
12+
imgScale: 255
1213
imgMean: [ 0, 0, 0 ]
1314
imgStd: [ 1, 1, 1 ]

configs/yolov5-seg.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ yolov5-seg:
1010
conf_thr: 0.25
1111
nms_thr: 0.45
1212
strides: [8, 16, 32]
13+
imgScale: 255
1314
imgMean: [ 0, 0, 0 ]
1415
imgStd: [ 1, 1, 1 ]

configs/yolov5.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ yolov5:
1010
conf_thr: 0.25
1111
nms_thr: 0.45
1212
strides: [8, 16, 32]
13+
imgScale: 255
1314
imgMean: [ 0, 0, 0 ]
1415
imgStd: [ 1, 1, 1 ]

configs/yolov6.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ yolov6:
1010
conf_thr: 0.25
1111
nms_thr: 0.45
1212
strides: [8, 16, 32]
13+
imgScale: 255
1314
imgMean: [ 0, 0, 0 ]
1415
imgStd: [ 1, 1, 1 ]

configs/yolov7-p6.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ yolov7:
1010
conf_thr: 0.4
1111
nms_thr: 0.45
1212
strides: [8, 16, 32, 64]
13+
imgScale: 255
1314
imgMean: [ 0, 0, 0 ]
1415
imgStd: [ 1, 1, 1 ]

configs/yolov7.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ yolov7:
1010
conf_thr: 0.25
1111
nms_thr: 0.45
1212
strides: [8, 16, 32]
13+
imgScale: 255
1314
imgMean: [ 0, 0, 0 ]
1415
imgStd: [ 1, 1, 1 ]

configs/yolov8-seg.yaml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
11
yolov8-seg:
2-
onnx_file: "../weights/yolov8/yolov8s1280-seg.onnx"
3-
engine_file: "../weights/yolov8/yolov8s1280-seg.trt"
2+
onnx_file: "../weights/yolov8/yolov8s-seg.onnx"
3+
engine_file: "../weights/yolov8/yolov8s-seg.trt"
44
type: "coco"
55
mode: "fp32"
66
dynamic: 1
77
batchSize: 8
8-
imageWidth: 1280
9-
imageHeight: 1280
10-
conf_thr: 0.45
8+
imageWidth: 640
9+
imageHeight: 640
10+
conf_thr: 0.25
1111
nms_thr: 0.45
1212
strides: [8, 16, 32]
13+
imgScale: 255
1314
imgMean: [ 0, 0, 0 ]
1415
imgStd: [ 1, 1, 1 ]
15-
# onnx_file: "../weights/yolov8/yolov8s-seg.onnx"
16-
# engine_file: "../weights/yolov8/yolov8s-seg.trt"
17-
# type: "coco"
18-
# mode: "fp32"
19-
# dynamic: 1
20-
# batchSize: 8
21-
# imageWidth: 640
22-
# imageHeight: 640
23-
# conf_thr: 0.25
24-
# nms_thr: 0.45
25-
# strides: [8, 16, 32]
26-
# imgMean: [ 0, 0, 0 ]
27-
# imgStd: [ 1, 1, 1 ]

configs/yolov8.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ yolov8:
1010
conf_thr: 0.25
1111
nms_thr: 0.45
1212
strides: [8, 16, 32]
13+
imgScale: 255
1314
imgMean: [ 0, 0, 0 ]
1415
imgStd: [ 1, 1, 1 ]

configs/yolox.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
yolox:
2+
onnx_file: "../weights/yolox/yoloxs.onnx"
3+
engine_file: "../weights/yolox/yoloxs.trt"
4+
type: "coco"
5+
mode: "fp32"
6+
dynamic: 1
7+
batchSize: 1
8+
imageWidth: 640
9+
imageHeight: 640
10+
conf_thr: 0.25
11+
nms_thr: 0.45
12+
strides: [8, 16, 32]
13+
imgScale: 1
14+
imgMean: [ 0, 0, 0 ]
15+
imgStd: [ 1, 1, 1 ]

0 commit comments

Comments
 (0)