From 51e55aa6607892b5e5860d94daa6bad33c924c9c Mon Sep 17 00:00:00 2001 From: tzhong518 Date: Tue, 30 Jan 2024 22:31:01 +0900 Subject: [PATCH] chore: use config Signed-off-by: tzhong518 --- perception/tensorrt_yolox/CMakeLists.txt | 1 + .../config/yolox_s_plus_opt.yaml | 15 +++++++ .../config/yolox_tiny.param.yaml | 15 +++++++ .../launch/yolox_s_plus_opt.launch.xml | 39 +------------------ .../launch/yolox_tiny.launch.xml | 39 +------------------ 5 files changed, 35 insertions(+), 74 deletions(-) create mode 100644 perception/tensorrt_yolox/config/yolox_s_plus_opt.yaml create mode 100644 perception/tensorrt_yolox/config/yolox_tiny.param.yaml diff --git a/perception/tensorrt_yolox/CMakeLists.txt b/perception/tensorrt_yolox/CMakeLists.txt index 21860854ccd5f..a5498a845e62e 100644 --- a/perception/tensorrt_yolox/CMakeLists.txt +++ b/perception/tensorrt_yolox/CMakeLists.txt @@ -114,4 +114,5 @@ endif() ament_auto_package(INSTALL_TO_SHARE launch + config ) diff --git a/perception/tensorrt_yolox/config/yolox_s_plus_opt.yaml b/perception/tensorrt_yolox/config/yolox_s_plus_opt.yaml new file mode 100644 index 0000000000000..d88eadd9a6c98 --- /dev/null +++ b/perception/tensorrt_yolox/config/yolox_s_plus_opt.yaml @@ -0,0 +1,15 @@ +/**: + ros__parameters: + model_path: "$(var data_path)/tensorrt_yolox/$(var model_name).onnx" + label_path: "$(var data_path)/tensorrt_yolox/label.txt" + score_threshold: 0.35 + nms_threshold: 0.7 + precision: "int8" + calibration_algorithm: "Entropy" + dla_core_id: -1 + quantize_first_layer: false + quantize_last_layer: false + profile_per_layer: false + clip_value: 6.0 + preprocess_on_gpu: true + calibration_image_list_path: "" \ No newline at end of file diff --git a/perception/tensorrt_yolox/config/yolox_tiny.param.yaml b/perception/tensorrt_yolox/config/yolox_tiny.param.yaml new file mode 100644 index 0000000000000..ea9faa5575d34 --- /dev/null +++ b/perception/tensorrt_yolox/config/yolox_tiny.param.yaml @@ -0,0 +1,15 @@ +/**: + ros__parameters: + model_path: "$(var data_path)/tensorrt_yolox/$(var model_name).onnx" + label_path: "$(var data_path)/tensorrt_yolox/label.txt" + score_threshold: 0.35 + nms_threshold: 0.7 + precision: "fp16" + calibration_algorithm: "MinMax" + dla_core_id: -1 + quantize_first_layer: false + quantize_last_layer: false + profile_per_layer: false + clip_value: 0.0 + preprocess_on_gpu: true + calibration_image_list_path: "" \ No newline at end of file diff --git a/perception/tensorrt_yolox/launch/yolox_s_plus_opt.launch.xml b/perception/tensorrt_yolox/launch/yolox_s_plus_opt.launch.xml index 3f8d7897ab5d3..dd15eda2913ce 100644 --- a/perception/tensorrt_yolox/launch/yolox_s_plus_opt.launch.xml +++ b/perception/tensorrt_yolox/launch/yolox_s_plus_opt.launch.xml @@ -5,30 +5,7 @@ - - - - - - - - - - - - + @@ -40,19 +17,7 @@ - - - - - - - - - - - - - + diff --git a/perception/tensorrt_yolox/launch/yolox_tiny.launch.xml b/perception/tensorrt_yolox/launch/yolox_tiny.launch.xml index 2f08031ea159f..9e5d1c371b13b 100644 --- a/perception/tensorrt_yolox/launch/yolox_tiny.launch.xml +++ b/perception/tensorrt_yolox/launch/yolox_tiny.launch.xml @@ -4,30 +4,7 @@ - - - - - - - - - - - - + @@ -39,19 +16,7 @@ - - - - - - - - - - - - - +