5
5
### Requirements
6
6
- ROS2 Foxy
7
7
- OpenCV 4.x
8
- - OpenVINO *
8
+ - OpenVINO 2021. *
9
9
- TensorRT 8.x *
10
10
11
11
※ Either one of OpenVINO or TensorRT is required.
12
12
13
+ ※ Model convert script is not supported OpenVINO 2022.*
14
+
13
15
※ YOLOX is not required.
14
16
15
17
※ Jetson + TensorRT docker support (Jetpack 4.6 r32.6.1). Tested with Jetson Nano 4GB.
@@ -112,6 +114,16 @@ cd ~/ros2_ws
112
114
./src/YOLOX-ROS/weights/tensorrt/convert.bash yolox_nano 16
113
115
```
114
116
117
+ #### PINTO_model_zoo
118
+ - Support PINTO_model_zoo model
119
+ - Download model using the following script.
120
+ - https://github.com/PINTO0309/PINTO_model_zoo/blob/main/132_YOLOX/download_nano.sh
121
+ - ONNX model copy to weight dir
122
+ - ` cp saved_model_yolox_nano_480x640/yolox_nano_480x640.onnx src/YOLOX-ROS/weight/onnx/ `
123
+ - Convert to TensorRT engine
124
+ - ` ./src/YOLOX-ROS/weights/tensorrt/convert.bash yolox_nano_480x640 `
125
+
126
+
115
127
### build packages
116
128
``` bash
117
129
# # If use openvino
@@ -131,8 +143,13 @@ ros2 launch yolox_ros_cpp yolox_openvino.launch.py
131
143
132
144
# run other model
133
145
ros2 launch yolox_ros_cpp yolox_openvino.launch.py \
134
- model_path:=install/yolox_ros_cpp/share/yolox_ros_cpp/weights/tensorrt/yolox_s.trt \
135
- image_size/height:=640 image_size/width:=640
146
+ model_path:=install/yolox_ros_cpp/share/yolox_ros_cpp/weights/openvino/yolox_s.xml
147
+
148
+ # run PINTO_model_zoo model
149
+ # This model is converted from version 0.1.0.
150
+ ros2 launch yolox_ros_cpp yolox_openvino.launch.py \
151
+ model_path:=install/yolox_ros_cpp/share/yolox_ros_cpp/weights/onnx/yolox_nano_480x640.onnx \
152
+ model_version:=" 0.1.0"
136
153
137
154
# run YOLOX-tiny with NCS2
138
155
ros2 launch yolox_ros_cpp yolox_openvino_ncs2.launch.py
@@ -143,6 +160,13 @@ ros2 launch yolox_ros_cpp yolox_openvino_ncs2.launch.py
143
160
``` bash
144
161
# run YOLOX_nano
145
162
ros2 launch yolox_ros_cpp yolox_tensorrt.launch.py
163
+
164
+ # run PINTO_model_zoo model
165
+ # This model is converted from version 0.1.0.
166
+ ros2 launch yolox_ros_cpp yolox_tensorrt.launch.py \
167
+ model_path:=install/yolox_ros_cpp/share/yolox_ros_cpp/weights/tensorrt/yolox_nano_480x640.trt \
168
+ model_version:=" 0.1.0"
169
+
146
170
```
147
171
148
172
#### Jetson + TensorRT
@@ -157,9 +181,8 @@ ros2 launch yolox_ros_cpp yolox_tensorrt_jetson.launch.py
157
181
### Parameter
158
182
#### OpenVINO example
159
183
- ` model_path ` : ./install/yolox_ros_cpp/share/yolox_ros_cpp/weights/openvino/yolox_nano.xml
184
+ - ` model_version ` : 0.1.1rc0
160
185
- ` device ` : CPU
161
- - ` image_size/width ` : 416
162
- - ` image_size/height ` : 416
163
186
- ` conf ` : 0.3
164
187
- ` nms ` : 0.45
165
188
- ` imshow_isshow ` : true
@@ -170,9 +193,8 @@ ros2 launch yolox_ros_cpp yolox_tensorrt_jetson.launch.py
170
193
171
194
#### TensorRT example.
172
195
- ` model_path ` : ./install/yolox_ros_cpp/share/yolox_ros_cpp/weights/tensorrt/yolox_nano.trt
196
+ - ` model_version ` : 0.1.1rc0
173
197
- ` device ` : "0"
174
- - ` image_size/width ` : 416
175
- - ` image_size/height ` : 416
176
198
- ` conf ` : 0.3
177
199
- ` nms ` : 0.45
178
200
- ` imshow_isshow ` : true
0 commit comments