Skip to content

Commit a19ca58

Browse files
committed
update readme
1 parent 282c8e6 commit a19ca58

1 file changed

Lines changed: 18 additions & 28 deletions

File tree

yolox_ros_cpp/README.md

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# YOLOX-ROS-CPP
22

3-
## Usage
4-
5-
### Requirements
3+
## Requirements
64
- ROS2 Humble
75
- OpenCV 4.x
86
- OpenVINO 2021.*
@@ -121,22 +119,23 @@ docker run --rm -it \
121119

122120
</details>
123121

124-
### Clone YOLOX-ROS
122+
## Clone YOLOX-ROS
125123
```bash
126124
cd ~/ros2_ws/src
127125
git clone --recursive https://github.com/Ar-Ray-code/YOLOX-ROS -b humble
128126
```
129127

130-
### Model Convert or Download
131-
#### OpenVINO
128+
## Model Convert or Download
129+
### OpenVINO・ONNXRuntime
132130
```bash
133131
cd ~/ros2_ws
134132

133+
./src/YOLOX-ROS/weights/onnx/install.bash yolox_tiny
135134
# Download onnx file and convert to IR format.
136-
./src/YOLOX-ROS/weights/openvino/install.bash yolox_tiny
135+
# ./src/YOLOX-ROS/weights/openvino/install.bash yolox_tiny
137136
```
138137

139-
#### TensorRT
138+
### TensorRT
140139
```bash
141140
cd ~/ros2_ws
142141

@@ -145,15 +144,6 @@ cd ~/ros2_ws
145144
./src/YOLOX-ROS/weights/tensorrt/convert.bash yolox_tiny 16
146145
```
147146

148-
#### ONNXRuntime
149-
```bash
150-
cd ~/ros2_ws
151-
source /opt/ros/foxy/setup.bash
152-
153-
# Download onnx model
154-
./src/YOLOX-ROS/weights/onnx/download.bash yolox_tiny
155-
```
156-
157147
<!-- #### Tensorflow Lite
158148
```bash
159149
cd ~/ros2_ws
@@ -204,9 +194,9 @@ cmake ../tensorflow_src/tensorflow/lite \
204194
make -j"$(nproc)"
205195
``` -->
206196

207-
### Build
197+
## Build
208198

209-
#### OpenVINO
199+
### OpenVINO
210200

211201
```bash
212202
# build with openvino
@@ -215,7 +205,7 @@ source /opt/intel/openvino_2021/bin/setupvars.sh
215205
colcon build --cmake-args -DYOLOX_USE_OPENVINO=ON
216206
```
217207

218-
#### TensorRT
208+
### TensorRT
219209

220210
```bash
221211
# build with tensorrt
@@ -239,9 +229,9 @@ colcon build --symlink-install \
239229
-DFLATBUFFERS_INCLUDE_DIR=${workspace}/tflite_build/flatbuffers/include
240230
``` -->
241231

242-
### Run
232+
## Run
243233

244-
#### OpenVINO
234+
### OpenVINO
245235
```bash
246236
# run yolox_tiny
247237
ros2 launch yolox_ros_cpp yolox_openvino.launch.py
@@ -261,7 +251,7 @@ ros2 launch yolox_ros_cpp yolox_openvino_ncs2.launch.py
261251

262252
```
263253

264-
#### TensorRT
254+
### TensorRT
265255
```bash
266256
# run yolox_tiny
267257
ros2 launch yolox_ros_cpp yolox_tensorrt.launch.py
@@ -274,22 +264,22 @@ ros2 launch yolox_ros_cpp yolox_tensorrt.launch.py \
274264

275265
```
276266

277-
#### Jetson + TensorRT
267+
### Jetson + TensorRT
278268
Jetson docker container cannot display GUI.
279269
If you want to show image with bounding box drawn, subscribe from host jetson or other PC.
280270

281271
```bash
282272
# run yolox_tiny
283273
ros2 launch yolox_ros_cpp yolox_tensorrt_jetson.launch.py
284274
```
285-
286-
#### ONNXRuntime
275+
<!--
276+
### ONNXRuntime
287277
```bash
288278
# run yolox_tiny
289279
ros2 launch yolox_ros_cpp yolox_onnxruntime.launch.py
290280
```
291281
292-
#### Tensorflow Lite
282+
### Tensorflow Lite
293283
```bash
294284
# add libtensorflow-lite.so directory path to `LD_LIBRARY_PATH`
295285
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${workspace}/tflite_build
@@ -303,7 +293,7 @@ ros2 launch yolox_ros_cpp yolox_tflite.launch.py \
303293
model_version:=0.1.0 \
304294
num_classes:=80 \
305295
is_nchw:=false
306-
```
296+
``` -->
307297

308298
### Parameter
309299
#### OpenVINO example

0 commit comments

Comments
 (0)