Skip to content

Commit a3cfd70

Browse files
MasatoSaekipre-commit-ci[bot]knzo25
committed
refactor(perception): refactor launch file and add parameter file (autowarefoundation#1336)
* fundamental change Signed-off-by: MasatoSaeki <[email protected]> * style(pre-commit): autofix * change params name Signed-off-by: MasatoSaeki <[email protected]> * remove param Signed-off-by: MasatoSaeki <[email protected]> * integrate model and label path Signed-off-by: MasatoSaeki <[email protected]> * for awsim Signed-off-by: MasatoSaeki <[email protected]> * add comment Signed-off-by: MasatoSaeki <[email protected]> * fix typo Signed-off-by: MasatoSaeki <[email protected]> * change param name Signed-off-by: MasatoSaeki <[email protected]> * chore Signed-off-by: MasatoSaeki <[email protected]> --------- Signed-off-by: MasatoSaeki <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]>
1 parent b7d8961 commit a3cfd70

File tree

16 files changed

+188
-20
lines changed

16 files changed

+188
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2023 UCI SORA Lab
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
/**:
16+
ros__parameters:
17+
use_last_detect_color: true
18+
last_detect_color_hold_time: 2.0
19+
last_colors_hold_time: 1.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# cspell: ignore semseg
2+
/**:
3+
ros__parameters:
4+
5+
score_threshold: 0.35
6+
nms_threshold: 0.7
7+
8+
precision: "fp16" # Operation precision to be used on inference. Valid value is one of: [fp32, fp16, int8].
9+
calibration_algorithm: "Entropy" # Calibration algorithm to be used for quantization when precision==int8. Valid value is one of: [Entropy, (Legacy | Percentile), MinMax].
10+
dla_core_id: -1 # If positive ID value is specified, the node assign inference task to the DLA core.
11+
quantize_first_layer: false # If true, set the operating precision for the first (input) layer to be fp16. This option is valid only when precision==int8.
12+
quantize_last_layer: false # If true, set the operating precision for the last (output) layer to be fp16. This option is valid only when precision==int8.
13+
profile_per_layer: false # If true, profiler function will be enabled. Since the profile function may affect execution speed, it is recommended to set this flag true only for development purpose.
14+
clip_value: 6.0 # If positive value is specified, the value of each layer output will be clipped between [0.0, clip_value]. This option is valid only when precision==int8 and used to manually specify the dynamic range instead of using any calibration.
15+
preprocess_on_gpu: true # If true, pre-processing is performed on GPU.
16+
gpu_id: 0 # GPU ID to select CUDA Device
17+
calibration_image_list_path: "" # Path to a file which contains path to images. Those images will be used for int8 quantization.
18+
19+
# default params of tensorrt_yolox package, only effective for semseg model
20+
is_roi_overlap_segment: false
21+
overlap_roi_score_threshold: 0.3
22+
is_publish_color_mask: false
23+
roi_overlay_segment_label:
24+
UNKNOWN : false
25+
CAR : false
26+
TRUCK : false
27+
BUS : false
28+
MOTORCYCLE : false
29+
BICYCLE : false
30+
PEDESTRIAN : false
31+
ANIMAL: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**:
2+
ros__parameters:
3+
approximate_sync: false
4+
precision: fp16
5+
mean: [123.675, 116.28, 103.53] # It depends on the data on which ML model is trained
6+
std: [58.395, 57.12, 57.375] # It depends on the data on which ML model is trained
7+
backlight_threshold: 0.85
8+
classifier_type: 1
9+
traffic_light_type: 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**:
2+
ros__parameters:
3+
approximate_sync: false
4+
precision: fp16
5+
mean: [123.675, 116.28, 103.53] # It depends on the data on which ML model is trained
6+
std: [58.395, 57.12, 57.375] # It depends on the data on which ML model is trained
7+
backlight_threshold: 0.85
8+
classifier_type: 1
9+
traffic_light_type: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**:
2+
ros__parameters:
3+
precision: fp16
4+
score_thresh: 0.3
5+
nms_thresh: 0.65
6+
approximate_sync: false
7+
gpu_id: 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**:
2+
ros__parameters:
3+
max_vibration_pitch: 0.01745329251 # -0.5 ~ 0.5 deg
4+
max_vibration_yaw: 0.01745329251 # -0.5 ~ 0.5 deg
5+
max_vibration_height: 0.5 # -0.25 ~ 0.25 m
6+
max_vibration_width: 0.5 # -0.25 ~ 0.25 m
7+
max_vibration_depth: 0.5 # -0.25 ~ 0.25 m
8+
max_detection_range: 200.0
9+
min_timestamp_offset: -0.3
10+
max_timestamp_offset: 0.0
11+
timestamp_sample_len: 0.02
12+
car_traffic_light_max_angle_range: 40.0
13+
pedestrian_traffic_light_max_angle_range: 80.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**:
2+
ros__parameters:
3+
max_vibration_pitch: 0.01745329251 # -0.5 ~ 0.5 deg
4+
max_vibration_yaw: 0.01745329251 # -0.5 ~ 0.5 deg
5+
max_vibration_height: 0.5 # -0.25 ~ 0.25 m
6+
max_vibration_width: 0.5 # -0.25 ~ 0.25 m
7+
max_vibration_depth: 0.5 # -0.25 ~ 0.25 m
8+
max_detection_range: 200.0
9+
min_timestamp_offset: -0.04
10+
max_timestamp_offset: 0.0
11+
timestamp_sample_len: 0.02
12+
car_traffic_light_max_angle_range: 40.0
13+
pedestrian_traffic_light_max_angle_range: 80.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**:
2+
ros__parameters:
3+
max_vibration_pitch: 0.01745329251 # -0.5 ~ 0.5 deg
4+
max_vibration_yaw: 0.01745329251 # -0.5 ~ 0.5 deg
5+
max_vibration_height: 0.5 # -0.25 ~ 0.25 m
6+
max_vibration_width: 0.5 # -0.25 ~ 0.25 m
7+
max_vibration_depth: 0.5 # -0.25 ~ 0.25 m
8+
max_detection_range: 200.0
9+
min_timestamp_offset: -0.3
10+
max_timestamp_offset: 0.0
11+
timestamp_sample_len: 0.02
12+
car_traffic_light_max_angle_range: 40.0
13+
pedestrian_traffic_light_max_angle_range: 80.0

0 commit comments

Comments
 (0)