File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,15 @@ pip3 install yolox
58
58
``` bash
59
59
source /opt/ros/foxy/setup.bash
60
60
sudo apt install ros-foxy-v4l2-camera
61
+ # source /opt/intel/openvino_2021/bin/setupvars.sh # <- Using OpenVINO
61
62
colcon build --symlink-install # weights (YOLOX-Nano) files will be installed automatically.
62
63
```
63
64
65
+ ** Automatic download weights**
66
+
67
+ - yolox_nano.onnx
68
+ - yolox_nano.pth
69
+
64
70
### (Step 3) Using CUDA
65
71
66
72
If you have NVIDIA Graphics, you can run YOLOX-ROS on GPU.
@@ -71,20 +77,26 @@ If you have NVIDIA Graphics, you can run YOLOX-ROS on GPU.
71
77
- CUDA toolkit (11.0)
72
78
- torch+cuda
73
79
80
+ ``` bash
81
+ source /opt/ros/foxy/setup.bash
82
+ sudo apt install ros-foxy-v4l2-camera
83
+ colcon build --symlink-install # weights (YOLOX-Nano) files will be installed automatically.
84
+ ```
85
+
74
86
### Step : Demo
75
87
76
88
Connect your web camera.
77
89
78
90
``` bash
79
91
source /opt/ros/foxy/setup.bash
80
92
source ~ /ros2_ws/install/local_setup.bash
81
- ros2 launch yolox_ros_py yolox_nano_cpu.launch.py
82
- # ros2 launch yolox_ros_py yolox_nano.launch.py # <- GPU
93
+ ros2 launch yolox_ros_py yolox_nano_cpu.launch.py # <- CPU (PyTorch)
94
+ # ros2 launch yolox_ros_py yolox_nano.launch.py # <- GPU (PyTorch)
83
95
# ros2 launch yolox_ros_py yolox_nano_onnx.launch.py # <- ONNXRuntime
84
96
85
- # OpenVINO ---
97
+ # OpenVINO -------------------------------------
86
98
# source /opt/intel/openvino_2021/bin/setupvars.sh
87
- # ros2 launch yolox_ros_py yolox_nano_openvino.launch.py # <- OpenVINO
99
+ # ros2 launch yolox_ros_py yolox_nano_openvino.launch.py
88
100
```
89
101
90
102
</details >
You can’t perform that action at this time.
0 commit comments