Add dynamic batch-size (ONNX) + Fixes
This commit is contained in:
@@ -40,7 +40,7 @@ wget https://idstcv.oss-cn-zhangjiakou.aliyuncs.com/DAMO-YOLO/release_model/clea
|
||||
Generate the ONNX model file (example for DAMO-YOLO-S*)
|
||||
|
||||
```
|
||||
python3 export_damoyolo.py -w damoyolo_tinynasL25_S_477.pth -c configs/damoyolo_tinynasL25_S.py --simplify
|
||||
python3 export_damoyolo.py -w damoyolo_tinynasL25_S_477.pth -c configs/damoyolo_tinynasL25_S.py --simplify --dynamic
|
||||
```
|
||||
|
||||
**NOTE**: To change the inference size (defaut: 640)
|
||||
@@ -66,7 +66,7 @@ or
|
||||
|
||||
#### 5. Copy generated files
|
||||
|
||||
Copy the generated ONNX model file to the `DeepStream-Yolo` folder.
|
||||
Copy the generated ONNX model file and labels.txt file (if generated) to the `DeepStream-Yolo` folder.
|
||||
|
||||
##
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ python3 export_ppyoloe.py -w ppyoloe_plus_crn_s_80e_coco.pdparams -c configs/ppy
|
||||
|
||||
#### 5. Copy generated files
|
||||
|
||||
Copy the generated ONNX model file to the `DeepStream-Yolo` folder.
|
||||
Copy the generated ONNX model file and labels.txt file (if generated) to the `DeepStream-Yolo` folder.
|
||||
|
||||
##
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ wget https://sghub.deci.ai/models/yolo_nas_s_coco.pth
|
||||
Generate the ONNX model file (example for YOLO-NAS S)
|
||||
|
||||
```
|
||||
python3 export_yolonas.py -m yolo_nas_s -w yolo_nas_s_coco.pth --simplify
|
||||
python3 export_yolonas.py -m yolo_nas_s -w yolo_nas_s_coco.pth --simplify --dynamic
|
||||
```
|
||||
|
||||
**NOTE**: Model names
|
||||
@@ -85,7 +85,7 @@ or
|
||||
-s 1280 1280
|
||||
```
|
||||
|
||||
#### 5. Copy generated files
|
||||
#### 5. Copy generated file
|
||||
|
||||
Copy the generated ONNX model file to the `DeepStream-Yolo` folder.
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ Generate the ONNX model file
|
||||
Example for YOLOR-CSP
|
||||
|
||||
```
|
||||
python3 export_yolor.py -w yolor_csp.pt -c cfg/yolor_csp.cfg --simplify
|
||||
python3 export_yolor.py -w yolor_csp.pt -c cfg/yolor_csp.cfg --simplify --dynamic
|
||||
```
|
||||
|
||||
- Paper branch
|
||||
@@ -52,7 +52,7 @@ Generate the ONNX model file
|
||||
Example for YOLOR-P6
|
||||
|
||||
```
|
||||
python3 export_yolor.py -w yolor-p6.pt --simplify
|
||||
python3 export_yolor.py -w yolor-p6.pt --simplify --dynamic
|
||||
```
|
||||
|
||||
**NOTE**: To convert a P6 model
|
||||
@@ -84,7 +84,7 @@ or
|
||||
|
||||
#### 5. Copy generated files
|
||||
|
||||
Copy the generated ONNX model file to the `DeepStream-Yolo` folder
|
||||
Copy the generated ONNX model file and labels.txt file (if generated) to the `DeepStream-Yolo` folder
|
||||
|
||||
##
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ wget https://github.com/Megvii-BaseDetection/YOLOX/releases/download/0.1.1rc0/yo
|
||||
Generate the ONNX model file (example for YOLOX-s)
|
||||
|
||||
```
|
||||
python3 export_yolox.py -w yolox_s.pth -c exps/default/yolox_s.py --simplify
|
||||
python3 export_yolox.py -w yolox_s.pth -c exps/default/yolox_s.py --simplify --dynamic
|
||||
```
|
||||
|
||||
#### 5. Copy generated files
|
||||
#### 5. Copy generated file
|
||||
|
||||
Copy the generated ONNX model file to the `DeepStream-Yolo` folder.
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ wget https://github.com/ultralytics/yolov5/releases/download/v7.0/yolov5s.pt
|
||||
Generate the ONNX model file (example for YOLOv5s)
|
||||
|
||||
```
|
||||
python3 export_yoloV5.py -w yolov5s.pt --simplify
|
||||
python3 export_yoloV5.py -w yolov5s.pt --simplify --dynamic
|
||||
```
|
||||
|
||||
**NOTE**: To convert a P6 model
|
||||
@@ -76,7 +76,7 @@ or
|
||||
|
||||
#### 5. Copy generated files
|
||||
|
||||
Copy the generated ONNX model file to the `DeepStream-Yolo` folder.
|
||||
Copy the generated ONNX model file and labels.txt file (if generated) to the `DeepStream-Yolo` folder.
|
||||
|
||||
##
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ wget https://github.com/meituan/YOLOv6/releases/download/0.4.0/yolov6s.pt
|
||||
Generate the ONNX model file (example for YOLOv6-S 4.0)
|
||||
|
||||
```
|
||||
python3 export_yoloV6.py -w yolov6s.pt --simplify
|
||||
python3 export_yoloV6.py -w yolov6s.pt --simplify --dynamic
|
||||
```
|
||||
|
||||
**NOTE**: To convert a P6 model
|
||||
@@ -74,7 +74,7 @@ or
|
||||
-s 1280 1280
|
||||
```
|
||||
|
||||
#### 5. Copy generated files
|
||||
#### 5. Copy generated file
|
||||
|
||||
Copy the generated ONNX model file to the `DeepStream-Yolo` folder.
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt
|
||||
Generate the ONNX model file (example for YOLOv7)
|
||||
|
||||
```
|
||||
python3 export_yoloV7.py -w yolov7.pt --simplify
|
||||
python3 export_yoloV7.py -w yolov7.pt --simplify --dynamic
|
||||
```
|
||||
|
||||
**NOTE**: To convert a P6 model
|
||||
@@ -78,7 +78,7 @@ or
|
||||
|
||||
#### 6. Copy generated files
|
||||
|
||||
Copy the generated ONNX model file to the `DeepStream-Yolo` folder.
|
||||
Copy the generated ONNX model file and labels.txt file (if generated) to the `DeepStream-Yolo` folder.
|
||||
|
||||
##
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ wget https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8s.pt
|
||||
Generate the ONNX model file (example for YOLOv8s)
|
||||
|
||||
```
|
||||
python3 export_yoloV8.py -w yolov8s.pt --simplify
|
||||
python3 export_yoloV8.py -w yolov8s.pt --simplify --dynamic
|
||||
```
|
||||
|
||||
**NOTE**: To change the inference size (defaut: 640)
|
||||
@@ -69,7 +69,7 @@ or
|
||||
|
||||
#### 5. Copy generated files
|
||||
|
||||
Copy the generated ONNX model file to the `DeepStream-Yolo` folder.
|
||||
Copy the generated ONNX model file and labels.txt file (if generated) to the `DeepStream-Yolo` folder.
|
||||
|
||||
##
|
||||
|
||||
|
||||
Reference in New Issue
Block a user