-
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
refactor(lidar_centerpoint): rework parameters #7421
Conversation
@tby-udel What happens is that first |
…on to the launch file.
…on to the launch file.
I have renamed the files and made necessary changes to the yaml,schema and launch files. |
@tby-udel The reason it fails is that The change to "_base" should not propagate in more places that the name of the param file |
If the parameter file's name is changed, then the launch file won't be able to find the correct parameter file, as the parameter file is used through: arg name="data_path" default="$(env HOME)/autoware_data" description="packages data and artifacts directory path" In order to correctly launch this node, if the parameter file's name is changed to centerpoint_base.param.yaml, then inside the launch file, for the "model_name" part,it should be description="options: And in the current centerpoint.param.yaml file, the onnx paths and engine paths are organized as this: encoder_onnx_path: "$(var model_path)/pts_voxel_encoder_$(var model_name).onnx" So now that the model_name is changed from centerpoint to centerpoint_base, but these files' name are still centerpoint.onnx and centerpoint.engine, so instead of $(var model_name), they should all be changed to centerpoint. If the json_schema_check cannot change, I think we can't solve this problem by changing the centerpoint.param.yaml only, so I changed centerpoint.param.yaml (renamed and changed the onnx/engine paths), centerpoint.schema.json(renamed) and the launch file. |
@tby-udel What should change is and so on. If you think this is going to deep and out of scope for the contribution / time you expected, let us know and we can continue this from here |
…ected previous changes.
Signed-off-by: Boyang <[email protected]>
@tby-udel |
Signed-off-by: Boyang <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
``` | ||
#### Adjust the config file for the custom model | ||
|
||
All the ROS parameters have been moved into `.param.yaml` files, feel free to change the parameters inside them for better performance! **centerpoint\_(your_selection_of_model).param.yaml** files are under the config file directory of the lidar_centerpoint node. The information for these parameters are shown in the **Parameters** section. |
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.
Parameters section
should be instead a link in markdown style
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.
The change in this section is not adequate in my opinion. In the previous version we explained the process of creating a new model/version of centerpoint (i.e., how to create new parameters, modify launchers ,etc). This idea should be kept in this PR.
Expressions including exclamations are not adequate in this kind of documents
|
||
### The `build_only` option | ||
|
||
The `lidar_centerpoint` node has `build_only` option to build the TensorRT engine file from the ONNX file, and the `build_only` option is inside the launch file of `lidar_centerpoint` node, and all the ROS parameters are moved in `.param.yaml` files. |
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.
The `lidar_centerpoint` node has `build_only` option to build the TensorRT engine file from the ONNX file, and the `build_only` option is inside the launch file of `lidar_centerpoint` node, and all the ROS parameters are moved in `.param.yaml` files. | |
The `lidar_centerpoint` node has a `build_only` option to build the required TensorRT engine file from an ONNX file. This parameter is set in the launch file of this package, whereas all other parameters are set via `.param.yaml` files. |
...perception_launch/launch/object_recognition/detection/detector/lidar_dnn_detector.launch.xml
Outdated
Show resolved
Hide resolved
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.
Left some comments that need addressing
Signed-off-by: Boyang <[email protected]>
Signed-off-by: Boyang <[email protected]>
All the requested changes are made. |
``` | ||
#### Adjust the config file for the custom model | ||
|
||
All the ROS parameters have been moved into `.param.yaml` files, please set the parameters of the config file like point*cloud_range, point_feature_size, voxel_size, etc. in the config files. \*\*centerpoint*(your_selection_of_model).param.yaml\*\* files are under the config file directory of the lidar_centerpoint node. The information for these parameters are shown in the [Parameters](#parameters) section. |
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.
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
@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.
@tby-udel There are some parts of the documentation that are not very good and I left the explanation as a review. If you prefer that I give a proposal for you to accept it let me now ! (and in that case please click the button Also, remember to mention people, since otherwise we do not receive notifications and only check PRs when we remember it or give a thorough list at the pending PRs |
Signed-off-by: Boyang <[email protected]>
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.
@tby-udel
There are some conflicts
I have merged the main branch into the current branch, there doesn't seem to be conflicts after merging. |
@@ -3,9 +3,29 @@ | |||
"title": "Parameters for Lidar Centerpoint Node", |
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.
Would you fix the name of this file? (schemal.json
to schema.json
)
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.
@kminoda I have fixed the name of the file.
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.
Thank you for your PR!
This PR causes conflicts with main branch, Could you please resolve them?
@tby-udel To keep Autoware healthy, we close PRs if there is no response for more than a week after requesting conflict resolution. If this PR is still active, please let us know. Even if this PR is closed, you are welcome to reopen it once the conflicts have been resolved. |
friendly ping |
2 similar comments
friendly ping |
friendly ping |
Description
Implement the ROS Node configuration layout described in https://github.com/orgs/autowarefoundation/discussions/3371 for the
lidar_centerpoint
package.Tests performed
Package built and launched locally.
Notes for reviewers
Nothing inside the src code part was changed, only taking the parameters out.
Interface changes
Parameter values are now required to be passed to the node when launched.
Effects on system behavior
None
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.