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.en.md
+32-12Lines changed: 32 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,14 +38,16 @@ English | [简体中文](README.md)
38
38
39
39
## <divalign="center">🌠 Recent updates</div>
40
40
41
+
- 2025-04-19: Added support for [YOLO-World](https://docs.ultralytics.com/zh/models/yolo-world/) and [YOLOE](https://docs.ultralytics.com/zh/models/yoloe/), including classification, oriented bounding boxes, pose estimation, and instance segmentation. See [Bilibili](https://www.bilibili.com/video/BV12N5bzkENV) for details. 🌟 NEW
42
+
41
43
- 2025-03-29: Added support for [YOLO12](https://github.com/sunsmarterjie/yolov12), including classification, oriented bounding boxes, pose estimation, and instance segmentation. See [issues](https://github.com/sunsmarterjie/yolov12/issues/22) for details. 🌟 NEW
42
44
43
45
-[Performance Leap! TensorRT-YOLO 6.0: Comprehensive Upgrade Analysis and Practical Guide](https://medium.com/@laugh12321/performance-leap-tensorrt-yolo-6-0-comprehensive-upgrade-analysis-and-practical-guide-9d19ad3b53f9) 🌟 NEW
44
46
45
47
## <divalign="center">✨ Key Features</div>
46
48
47
49
### 🎯 Diverse YOLO Support
48
-
-**Comprehensive Compatibility**: Supports YOLOv3 to YOLOv11 series models, as well as PP-YOLOE and PP-YOLOE+, meeting diverse needs.
50
+
-**Comprehensive Compatibility**: Supports YOLOv3 to YOLO12 series models, as well as PP-YOLOE, PP-YOLOE+, YOLO-World, and YOLOE, meeting diverse needs. See [🖥️ Supported Models List](#support-models) for details.
49
51
-**Flexible Switching**: Provides simple and easy-to-use interfaces for quick switching between different YOLO versions. 🌟 NEW
50
52
-**Multi-Scenario Applications**: Offers rich example codes covering [Detect](examples/detect/), [Segment](examples/segment/), [Classify](examples/classify/), [Pose](examples/pose/), [OBB](examples/obb/), and more.
Copy file name to clipboardExpand all lines: docs/en/model_export.md
+39-16Lines changed: 39 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,34 +6,57 @@ English | [中文](../cn/model_export.md)
6
6
7
7
`tensorrt_yolo` provides a convenient Command Line Interface (CLI) tool, `trtyolo`, for exporting ONNX models into formats suitable for inference in this project, with integrated TensorRT plugins. You can view detailed export command instructions by running `trtyolo export --help`.
8
8
9
-
> [!NOTE]
9
+
### Parameter Descriptions
10
+
-`-v, --version`: Model version. Options include `yolov3`, `yolov5`, `yolov8`, `yolov10`, `yolo11`, `yolo12`, `yolo-world`, `yoloe`, `pp-yoloe`, `ultralytics`.
11
+
-`-o, --output`: Directory path to save the exported model.
12
+
-`-w, --weights`: Path to PyTorch YOLO weights (required for non PP-YOLOE models).
13
+
-`--model_dir`: Directory path containing the PaddleDetection PP-YOLOE model (required for PP-YOLOE).
14
+
-`--model_filename`: Filename of the PaddleDetection PP-YOLOE model (required for PP-YOLOE).
15
+
-`--params_filename`: Filename of the PaddleDetection PP-YOLOE parameters (required for PP-YOLOE).
16
+
-`-b, --batch`: Total batch size for the model. Use `-1` for dynamic batch size. Defaults to `1`.
17
+
-`--max_boxes`: Maximum number of detections per image. Defaults to `100`.
18
+
-`--iou_thres`: NMS IoU threshold for post-processing. Defaults to `0.45`.
19
+
-`--conf_thres`: Confidence threshold for object detection. Defaults to `0.25`.
20
+
-`--imgsz`: Image size (single value for square or "height,width"). Defaults to `640` (for non PP-YOLOE models).
21
+
-`--names`: Custom class names for YOLO-World and YOLOE (comma-separated, e.g., "person,car,dog"). Only applicable for YOLO-World and YOLOE models.
22
+
-`--repo_dir`: Directory containing the local repository (if using `torch.hub.load`). Only applicable for YOLOv3 and YOLOv5 models.
23
+
-`--opset`: ONNX opset version. Defaults to `12`.
24
+
-`-s, --simplify`: Whether to simplify the exported ONNX model. Defaults to `False`.
25
+
26
+
> [!NOTE]
10
27
> When exporting ONNX models for PP-YOLOE and PP-YOLOE+, only the batch dimension is adjusted, while the height and width dimensions remain unchanged. You need to configure this in [PaddleDetection](https://github.com/PaddlePaddle/PaddleDetection), with the default value typically set to 640.
11
28
>
12
29
> Official repositories such as [YOLOv6](https://github.com/meituan/YOLOv6/tree/main/deploy/ONNX#tensorrt-backend-tensorrt-version-800), [YOLOv7](https://github.com/WongKinYiu/yolov7#export), and [YOLOv9](https://github.com/WongKinYiu/yolov9/issues/130#issue-2162045461) already provide ONNX model exports with the EfficientNMS plugin, so this functionality is not duplicated here.
13
30
14
31
### Export Command Examples
15
32
16
33
```bash
17
-
#Export a YOLOv3 model from a remote repository
18
-
trtyolo export -w yolov3.pt -v yolov3 -o output
34
+
#Exporting a YOLOv3 model from a remote repository
> When building dynamic models with custom plugins using the `--staticPlugins` and `--setPluginsToSerialize` parameters, if you encounter the error `[E] Error[4]: IRuntime::deserializeCudaEngine: Error Code 4: API Usage Error (Cannot register the library as plugin creator of EfficientRotatedNMS_TRT exists already.)`, this typically indicates that the engine build was successful, but a plugin duplicate registration was detected during engine loading and deserialization. In such cases, this error can be safely ignored.
0 commit comments