-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(lidar_centerpoint): rework parameters #7421
Closed
tby-udel
wants to merge
29
commits into
autowarefoundation:main
from
tby-udel:lidar-centerpoint-branch
Closed
Changes from 26 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
6015bd2
Refractored parameter for lidar_centerpoint node.
tby-udel 0e04bf2
style(pre-commit): autofix
pre-commit-ci[bot] a62d396
Correcting the errors.
tby-udel 89d39ab
Merge remote-tracking branch 'upstream/main' into lidar-centerpoint-b…
tby-udel 25cc93e
Update centerpoint_tiny.schema.json
tby-udel 6832e40
Merge branch 'main' into lidar-centerpoint-branch
tby-udel 3192d5b
Merge branch 'main' into lidar-centerpoint-branch
tby-udel b90febd
renamed centerpoint_ files to centerpoint_base files, made modificati…
tby-udel 604714d
Merge remote-tracking branch 'upstream/main' into lidar-centerpoint-b…
tby-udel dd2be88
renamed centerpoint_ files to centerpoint_base files, made modificati…
tby-udel 5575a1e
Update centerpoint_base.schemal.json
tby-udel feb3980
Update centerpoint_base_ml_package.schema.json
tby-udel 2e12712
Update centerpoint_base.param.yaml
tby-udel 94a7779
Changed to (var model_name)_base.param.yaml, renamed some files, corr…
tby-udel fe8f7f9
Fixed centerpoint_ml_package
tby-udel b295afc
Changed the definition part of centerpoint_ml_package.schema.json.
tby-udel 5f0a9b6
Merge branch 'main' into lidar-centerpoint-branch
tby-udel c61e833
Reorganized the readme file.
tby-udel 6bbd978
Required changes are made.
tby-udel faef3d4
Merge branch 'main' into lidar-centerpoint-branch
knzo25 d364678
Requested changes for tier4_perception_launch and README.md have been…
tby-udel bb378d6
Merge branch 'lidar-centerpoint-branch' of https://github.com/tby-ude…
tby-udel cca3de3
style(pre-commit): autofix
pre-commit-ci[bot] 7bf36eb
All requested changes are made.
tby-udel 47ee2c7
All requested changes are made.
tby-udel 5f68013
style(pre-commit): autofix
pre-commit-ci[bot] e389dc0
Updated the README.md file
tby-udel e8c1705
Merge branch 'main' into lidar-centerpoint-branch
tby-udel 592baf6
Rename centerpoint_base.schemal.json to centerpoint_base.schema.json
tby-udel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,29 @@ | |
"title": "Parameters for Lidar Centerpoint Node", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you fix the name of this file? ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kminoda I have fixed the name of the file. |
||
"type": "object", | ||
"definitions": { | ||
"centerpoint": { | ||
"centerpoint_base": { | ||
"type": "object", | ||
"properties": { | ||
"encoder_onnx_path": { | ||
"type": "string", | ||
"description": "Path to VoxelFeatureEncoder ONNX file.", | ||
"default": "" | ||
}, | ||
"encoder_engine_path": { | ||
"type": "string", | ||
"description": "Path to VoxelFeatureEncoder TensorRT Engine file.", | ||
"default": "" | ||
}, | ||
"head_onnx_path": { | ||
"type": "string", | ||
"description": "Path to DetectionHead ONNX file.", | ||
"default": "" | ||
}, | ||
"head_engine_path": { | ||
"type": "string", | ||
"description": "Path to DetectionHead TensorRT Engine file.", | ||
"default": "" | ||
}, | ||
"trt_precision": { | ||
"type": "string", | ||
"description": "TensorRT inference precision.", | ||
|
@@ -54,11 +74,6 @@ | |
"default": 0.1, | ||
"minimum": 0.0, | ||
"maximum": 1.0 | ||
}, | ||
"has_twist": { | ||
"type": "boolean", | ||
"description": "Indicates whether the model outputs twist value.", | ||
"default": false | ||
} | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
perception/lidar_centerpoint/schema/centerpoint_sigma_ml_package.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Centerpoint Sigma ML model", | ||
"type": "object", | ||
"definitions": { | ||
"centerpoint_sigma_ml_package": { | ||
"type": "object", | ||
"properties": { | ||
"model_params": { | ||
"type": "object", | ||
"description": "Parameters for model configuration.", | ||
"properties": { | ||
"class_names": { | ||
"type": "array", | ||
"description": "An array of class names will be predicted.", | ||
"default": ["CAR", "TRUCK", "BUS", "BICYCLE", "PEDESTRIAN"], | ||
"items": { | ||
"type": "string" | ||
}, | ||
"uniqueItems": true | ||
}, | ||
"point_feature_size": { | ||
"type": "integer", | ||
"description": "A number of channels of point feature layer.", | ||
"default": 4 | ||
}, | ||
"max_voxel_size": { | ||
"type": "integer", | ||
"description": "A maximum size of voxel grid.", | ||
"default": 40000 | ||
}, | ||
"point_cloud_range": { | ||
"type": "array", | ||
"description": "An array of distance ranges of each class, this must have same length with `class_names`.", | ||
"default": [-76.8, -76.8, -4.0, 76.8, 76.8, 6.0], | ||
"items": { | ||
"type": "number" | ||
} | ||
}, | ||
"voxel_size": { | ||
"type": "array", | ||
"description": "An array of voxel grid sizes for PointPainting, this must have same length with `paint_class_names`.", | ||
"default": [0.32, 0.32, 10.0], | ||
"items": { | ||
"type": "number" | ||
} | ||
}, | ||
"downsample_factor": { | ||
"type": "integer", | ||
"description": "A scale factor of downsampling points.", | ||
"default": 1, | ||
"minimum": 1 | ||
}, | ||
"encoder_in_feature_size": { | ||
"type": "integer", | ||
"description": "A size of encoder input feature channels.", | ||
"default": 9 | ||
}, | ||
"has_variance": { | ||
"type": "boolean", | ||
"description": "Flag indicating if the model includes variance estimation.", | ||
"default": false | ||
}, | ||
"has_twist": { | ||
"type": "boolean", | ||
"description": "Flag indicating if the model includes twist estimation.", | ||
"default": false | ||
} | ||
}, | ||
"required": [ | ||
"class_names", | ||
"point_feature_size", | ||
"max_voxel_size", | ||
"point_cloud_range", | ||
"voxel_size", | ||
"downsample_factor", | ||
"encoder_in_feature_size", | ||
"has_variance", | ||
"has_twist" | ||
] | ||
} | ||
}, | ||
"required": ["model_params"] | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/centerpoint_sigma_ml_package" | ||
} | ||
}, | ||
"required": ["ros__parameters"] | ||
} | ||
}, | ||
"required": ["/**"] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, this lacks a little in both writing and content.
The idea of the section is to describe the process of creating the files for a new model. In addition to some grammatical errors, instead of giving examples of parameters of the config file explain what kind of parameters they have. This links to the the ml config file, which is not mentioned here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@knzo25 Thank you for your instructions, I have updated the README.md file, please check if this meets your expectation. If you can give proposal for me to accept, it would be of great help for me. I will click the button commit suggestion afterwards. I really learned a lot with your help for this PR, thank you so much.