Skip to content

Commit b81ec45

Browse files
committed
refactor: rename param file
Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
1 parent 0ef230e commit b81ec45

14 files changed

+182
-183
lines changed

launch/tier4_perception_launch/launch/object_recognition/detection/detector/camera_lidar_detector.launch.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
<arg name="output/objects" value="objects"/>
8383
<arg name="model_name" value="$(var lidar_detection_model)"/>
8484
<arg name="model_path" value="$(var pointpainting_model_path)"/>
85-
<arg name="model_param_path" value="$(var model_path)/$(var lidar_detection_model).param.yaml"/>
86-
<arg name="ml_package_param_path" value="$(var ml_package_param_path)/pointpainting_ml_package.param.yaml"/>
85+
<arg name="model_param_path" value="$(var lidar_model_param_path)/pointpainting.param.yaml"/>
86+
<arg name="ml_package_param_path" value="$(var model_path)/pointpainting_ml_package.param.yaml"/>
8787
<arg name="class_remapper_param_path" value="$(var model_path)/detection_class_remapper.param.yaml"/>
8888

8989
<arg name="use_pointcloud_container" value="true"/>

launch/tier4_perception_launch/launch/object_recognition/detection/detector/lidar_dnn_detector.launch.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<arg name="output/objects" value="objects"/>
1717
<arg name="model_name" value="$(var centerpoint_model_name)"/>
1818
<arg name="model_path" value="$(var centerpoint_model_path)"/>
19-
<arg name="model_param_path" value="$(var model_path)/$(var centerpoint_model_name).param.yaml"/>
20-
<arg name="ml_package_param_path" value="$(var ml_package_param_path)/lidar_centerpoint_ml_package.param.yaml"/>
21-
<arg name="class_remapper_param_path" value="$(var centerpoint_model_path)/detection_class_remapper.param.yaml"/>
19+
<arg name="model_param_path" value="$(var lidar_model_param_path)/centerpoint.param.yaml"/>
20+
<arg name="ml_package_param_path" value="$(var model_path)/$(var centerpoint_model_name)_ml_package.param.yaml"/>
21+
<arg name="class_remapper_param_path" value="$(var model_path)/detection_class_remapper.param.yaml"/>
2222

2323
<arg name="use_pointcloud_container" value="true"/>
2424
<arg name="pointcloud_container_name" value="$(var pointcloud_container_name)"/>

launch/tier4_perception_launch/launch/perception.launch.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<arg name="object_recognition_detection_roi_cluster_fusion_param_path"/>
1414
<arg name="object_recognition_detection_roi_pointcloud_fusion_param_path"/>
1515
<arg name="object_recognition_detection_roi_detected_object_fusion_param_path"/>
16-
<arg name="object_recognition_detection_ml_package_param_path"/>
16+
<arg name="object_recognition_detection_lidar_model_param_path"/>
1717
<arg name="object_recognition_detection_radar_lanelet_filtering_range_param_path"/>
1818
<arg name="object_recognition_detection_radar_crossing_objects_noise_filter_param_path"/>
1919
<arg name="object_recognition_detection_radar_object_clustering_param_path"/>
@@ -183,7 +183,7 @@
183183
<arg name="roi_cluster_fusion_param_path" value="$(var object_recognition_detection_roi_cluster_fusion_param_path)"/>
184184
<arg name="roi_pointcloud_fusion_param_path" value="$(var object_recognition_detection_roi_pointcloud_fusion_param_path)"/>
185185
<arg name="roi_detected_object_fusion_param_path" value="$(var object_recognition_detection_roi_detected_object_fusion_param_path)"/>
186-
<arg name="ml_package_param_path" value="$(var object_recognition_detection_ml_package_param_path)"/>
186+
<arg name="lidar_model_param_path" value="$(var object_recognition_detection_lidar_model_param_path)"/>
187187
<arg name="euclidean_param_path" value="$(var object_recognition_detection_euclidean_cluster_param_path)"/>
188188
<arg name="outlier_param_path" value="$(var object_recognition_detection_outlier_param_path)"/>
189189
<arg name="voxel_grid_based_euclidean_param_path" value="$(var object_recognition_detection_voxel_grid_based_euclidean_cluster_param_path)"/>

perception/image_projection_based_fusion/config/pointpainting.param.yaml

100755100644
+15-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
/**:
22
ros__parameters:
3-
model_params:
4-
class_names: ["CAR", "TRUCK", "BUS", "BICYCLE", "PEDESTRIAN"]
5-
paint_class_names: ["CAR", "BICYCLE", "PEDESTRIAN"]
6-
point_feature_size: 7 # x, y, z, time-lag and car, pedestrian, bicycle
7-
max_voxel_size: 40000
8-
point_cloud_range: [-121.6, -76.8, -3.0, 121.6, 76.8, 5.0]
9-
voxel_size: [0.32, 0.32, 8.0]
10-
downsample_factor: 1
11-
encoder_in_feature_size: 12
3+
encoder_onnx_path: "$(var model_path)/pts_voxel_encoder_$(var model_name).onnx"
4+
encoder_engine_path: "$(var model_path)/pts_voxel_encoder_$(var model_name).engine"
5+
head_onnx_path: "$(var model_path)/pts_backbone_neck_head_$(var model_name).onnx"
6+
head_engine_path: "$(var model_path)/pts_backbone_neck_head_$(var model_name).engine"
7+
build_only: false
8+
trt_precision: fp16
9+
post_process_params:
10+
# post-process params
11+
circle_nms_dist_threshold: 0.3
12+
iou_nms_target_class_names: ["CAR"]
13+
iou_nms_search_distance_2d: 10.0
14+
iou_nms_threshold: 0.1
15+
score_threshold: 0.35
16+
yaw_norm_thresholds: [0.3, 0.3, 0.3, 0.3, 0.0]
17+
has_twist: false
1218
densification_params:
1319
world_frame_id: "map"
1420
num_past_frames: 1
15-
omp_params:
16-
# omp params
17-
num_threads: 1
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
/**:
22
ros__parameters:
3-
encoder_onnx_path: "$(var model_path)/pts_voxel_encoder_$(var model_name).onnx"
4-
encoder_engine_path: "$(var model_path)/pts_voxel_encoder_$(var model_name).engine"
5-
head_onnx_path: "$(var model_path)/pts_backbone_neck_head_$(var model_name).onnx"
6-
head_engine_path: "$(var model_path)/pts_backbone_neck_head_$(var model_name).engine"
7-
build_only: false
8-
trt_precision: fp16
9-
post_process_params:
10-
# post-process params
11-
circle_nms_dist_threshold: 0.3
12-
iou_nms_target_class_names: ["CAR"]
13-
iou_nms_search_distance_2d: 10.0
14-
iou_nms_threshold: 0.1
15-
score_threshold: 0.35
16-
yaw_norm_thresholds: [0.3, 0.3, 0.3, 0.3, 0.0]
17-
has_twist: false
3+
model_params:
4+
class_names: ["CAR", "TRUCK", "BUS", "BICYCLE", "PEDESTRIAN"]
5+
paint_class_names: ["CAR", "BICYCLE", "PEDESTRIAN"]
6+
point_feature_size: 7 # x, y, z, time-lag and car, pedestrian, bicycle
7+
max_voxel_size: 40000
8+
point_cloud_range: [-121.6, -76.8, -3.0, 121.6, 76.8, 5.0]
9+
voxel_size: [0.32, 0.32, 8.0]
10+
downsample_factor: 1
11+
encoder_in_feature_size: 12
12+
omp_params:
13+
# omp params
14+
num_threads: 1

perception/image_projection_based_fusion/docs/pointpainting-fusion.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ The lidar points are projected onto the output of an image-only 2d object detect
3636
| Name | Type | Default Value | Description |
3737
| ------------------------------- | ------ | ------------- | ----------------------------------------------------------- |
3838
| `score_threshold` | float | `0.4` | detected objects with score less than threshold are ignored |
39-
| `densification_world_frame_id` | string | `map` | the world frame id to fuse multi-frame pointcloud |
40-
| `densification_num_past_frames` | int | `0` | the number of past frames to fuse with the current frame |
39+
| `densification.world_frame_id` | string | `map` | the world frame id to fuse multi-frame pointcloud |
40+
| `densification.num_past_frames` | int | `1` | the number of past frames to fuse with the current frame |
4141
| `trt_precision` | string | `fp16` | TensorRT inference precision: `fp32` or `fp16` |
4242
| `encoder_onnx_path` | string | `""` | path to VoxelFeatureEncoder ONNX file |
4343
| `encoder_engine_path` | string | `""` | path to VoxelFeatureEncoder TensorRT Engine file |

perception/image_projection_based_fusion/launch/pointpainting_fusion.launch.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<arg name="data_path" default="$(env HOME)/autoware_data" description="packages data and artifacts directory path"/>
2222
<arg name="model_name" default="pointpainting" description="options: `pointpainting`"/>
2323
<arg name="model_path" default="$(var data_path)/image_projection_based_fusion"/>
24-
<arg name="model_param_path" default="$(find-pkg-share model_path)/$(var model_name).param.yaml"/>
25-
<arg name="ml_package_param_path" default="$(find-pkg-share image_projection_based_fusion)/config/pointpainting_ml_package.param.yaml"/>
24+
<arg name="model_param_path" default="$(find-pkg-share image_projection_based_fusion)/config/pointpainting.param.yaml"/>
25+
<arg name="ml_package_param_path" default="$(var model_path)/$(var model_name)_ml_package.param.yaml"/>
2626
<arg name="class_remapper_param_path" default="$(var model_path)/detection_class_remapper.param.yaml"/>
2727
<arg name="sync_param_path" default="$(find-pkg-share image_projection_based_fusion)/config/roi_sync.param.yaml"/>
2828

perception/image_projection_based_fusion/schema/pointpainting.schema.json

+49-65
Original file line numberDiff line numberDiff line change
@@ -6,85 +6,69 @@
66
"pointpainting": {
77
"type": "object",
88
"properties": {
9-
"model_params": {
9+
"build_only": {
10+
"type": "boolean",
11+
"description": "shutdown the node after TensorRT engine file is built.",
12+
"default": false
13+
},
14+
"trt_precision": {
15+
"type": "string",
16+
"description": "TensorRT inference precision.",
17+
"default": "fp16",
18+
"enum": ["fp32", "fp16"]
19+
},
20+
"post_process_params": {
1021
"type": "object",
11-
"description": "Parameters for model configuration.",
1222
"properties": {
13-
"class_names": {
14-
"type": "array",
15-
"description": "An array of class names will be predicted.",
16-
"default": ["CAR", "TRUCK", "BUS", "BICYCLE", "PEDESTRIAN"],
17-
"uniqueItems": true
23+
"score_threshold": {
24+
"type": "number",
25+
"description": "A threshold value of existence probability score, all of objects with score less than this threshold are ignored.",
26+
"default": 0.4,
27+
"minimum": 0.0,
28+
"maximum": 1.0
1829
},
19-
"paint_class_names": {
30+
"yaw_norm_thresholds": {
2031
"type": "array",
21-
"description": "An array of class names will be painted by PointPainting",
22-
"default": ["CAR", "BICYCLE", "PEDESTRIAN"],
23-
"uniqueItems": true
32+
"description": "An array of distance threshold values of norm of yaw [rad].",
33+
"default": [0.3, 0.3, 0.3, 0.3, 0.0],
34+
"minimum": 0.0,
35+
"maximum": 1.0
2436
},
25-
"point_feature_size": {
26-
"type": "integer",
27-
"description": "A number of channels of point feature layer.",
28-
"default": 7
37+
"circle_nms_dist_threshold": {
38+
"type": "number",
39+
"description": "",
40+
"default": 0.3,
41+
"minimum": 0.0,
42+
"maximum": 1.0
2943
},
30-
"max_voxel_size": {
31-
"type": "integer",
32-
"description": "A maximum size of voxel grid.",
33-
"default": 40000
34-
},
35-
"point_cloud_range": {
44+
"iou_nms_target_class_names": {
3645
"type": "array",
37-
"description": "An array of distance ranges of each class, this must have same length with `class_names`.",
38-
"default": [-121.6, -76.8, -3.0, 121.6, 76.8, 5.0]
46+
"description": "An array of class names to be target in NMS.",
47+
"default": ["CAR"],
48+
"uniqueItems": true
3949
},
40-
"voxel_size": {
41-
"type": "array",
42-
"description": "An array of voxel grid sizes for PointPainting, this must have same length with `paint_class_names`.",
43-
"default": [0.32, 0.32, 8.0]
50+
"iou_search_distance_2d": {
51+
"type": "number",
52+
"description": "A maximum distance value to search the nearest objects.",
53+
"default": 10.0,
54+
"minimum": 0.0
4455
},
45-
"down_sample_factor": {
46-
"type": "integer",
47-
"description": "A scale factor of downsampling points",
48-
"default": 1,
49-
"minimum": 1
56+
"iou_nms_threshold": {
57+
"type": "number",
58+
"description": "A threshold value of NMS using IoU score.",
59+
"default": 0.1,
60+
"minimum": 0.0,
61+
"maximum": 1.0
5062
},
51-
"encoder_in_feature_size": {
52-
"type": "integer",
53-
"description": "A size of encoder input feature channels.",
54-
"default": 12
55-
}
56-
}
57-
},
58-
"densification_params": {
59-
"type": "object",
60-
"description": "Parameters for pointcloud densification.",
61-
"properties": {
62-
"world_frame_id": {
63-
"type": "string",
64-
"description": "A name of frame id where world coordinates system is defined with respect to.",
65-
"default": "map"
66-
},
67-
"num_past_frames": {
68-
"type": "integer",
69-
"description": "A number of past frames to be considered as same input frame.",
70-
"default": 0,
71-
"minimum": 0
72-
}
73-
}
74-
},
75-
"omp_params": {
76-
"type": "object",
77-
"properties": {
78-
"num_threads": {
79-
"type": "integer",
80-
"description": "The number of threads that is set to the environment variable OMP_NUM_THREADS.",
81-
"default": 1,
82-
"minimum": 1
63+
"has_twist": {
64+
"type": "boolean",
65+
"description": "Indicates whether the model outputs twist value.",
66+
"default": false
8367
}
8468
}
8569
}
8670
},
87-
"required": ["model_params", "densification_params", "omp_params"]
71+
"required": ["post_process_params", "densification_params"]
8872
}
8973
},
9074
"properties": {

0 commit comments

Comments
 (0)