Skip to content
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

feat(image_projection_based_fusion): update pointpainting #4544

Merged
merged 7 commits into from
Aug 9, 2023

Conversation

yukke42
Copy link
Contributor

@yukke42 yukke42 commented Aug 7, 2023

Description

  1. fix projection between points and roi
  2. update pointpainting model

Related links

Tests performed

sample data is available on #4314.

By the commit for the first item.

The average delay is reduced from 0.270 sec to 0.220 sec on the same environment.

[before]

image

image

[after]

image

image

Notes for reviewers

Interface changes

Effects on system behavior

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

Summary by CodeRabbit

Release Notes:

  • New Feature: The score_threshold parameter in the pointpainting node has been lowered from 0.45 to 0.35, allowing for more accurate point painting.
  • Refactor: The PointPaintingFusionNode class has undergone significant changes, including the addition of a helper function, improved transformation methods, and the introduction of a new parameter for specifying classes to be painted.
  • Bug fix: The timeout duration in the getTransformStamped function has been reduced from 0.5 seconds to 0.01 seconds, improving performance.

"With lower thresholds and transformed points,
Our fusion now paints with greater accuracy.
Transformed by Eigen, pcl_ros takes the lead,
As we refactor and improve our code's efficiency."

yukke42 added 3 commits August 7, 2023 02:26
Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
@yukke42 yukke42 requested a review from tzhong518 August 7, 2023 09:40
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Aug 7, 2023
@yukke42 yukke42 changed the title Update pointpainting feat(image_projection_based_fusion): update pointpainting Aug 7, 2023
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Image description CodeRabbit

Walkthrough

The overall change includes modifications to the PointPaintingFusionNode class in the pointpainting_fusion package. Notable changes include the addition of a helper function for transforming messages, the use of pcl_ros::transforms for point cloud transformation, the introduction of a new parameter for specifying classes to be painted, and the removal of unnecessary variables and transformations. Additionally, there are changes to constants in the preprocess_kernel.cu file and a modification to the timeout duration in the getTransformStamped function in the utils.cpp file.

Changes

File Summary
perception/image_projection_based_fusion/launch/pointpainting_fusion.launch.xml The score_threshold parameter in the pointpainting node is changed from 0.45 to 0.35.
perception/image_projection_based_fusion/src/pointpainting_fusion/node.cpp Several changes to the PointPaintingFusionNode class, including the addition of a helper function for message transformation, the use of pcl_ros::transforms, introduction of a new parameter for specifying classes to be painted, modification of logic for determining class index, and removal of unnecessary variables and transformations.
perception/image_projection_based_fusion/src/pointpainting_fusion/preprocess_kernel.cu Changes to the constants ENCODER_IN_FEATURE_SIZE and POINT_FEATURE_SIZE from 14 and 9 to 12 and 7 respectively.
perception/image_projection_based_fusion/src/utils/utils.cpp Modification of the getTransformStamped function to reduce the timeout duration from 0.5 seconds to 0.01 seconds when looking up a transform using tf_buffer.lookupTransform.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 48129f1 and 2759e85 commits.
Files selected (4)
  • perception/image_projection_based_fusion/launch/pointpainting_fusion.launch.xml (1)
  • perception/image_projection_based_fusion/src/pointpainting_fusion/node.cpp (5)
  • perception/image_projection_based_fusion/src/pointpainting_fusion/preprocess_kernel.cu (1)
  • perception/image_projection_based_fusion/src/utils/utils.cpp (1)
Files skipped from review due to trivial changes (1)
  • perception/image_projection_based_fusion/launch/pointpainting_fusion.launch.xml
Review comments generated (4)
  • Review: 2
  • LGTM: 2

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

yukke42 added 2 commits August 9, 2023 17:01
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
@yukke42 yukke42 force-pushed the update-pointpainting branch from a5c7c35 to a5608b1 Compare August 9, 2023 11:00
@yukke42
Copy link
Contributor Author

yukke42 commented Aug 9, 2023

image

@miursh miursh added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 9, 2023
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.06% ⚠️

Comparison is base (dd8e1d6) 14.91% compared to head (a5608b1) 14.86%.
Report is 106 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4544      +/-   ##
==========================================
- Coverage   14.91%   14.86%   -0.06%     
==========================================
  Files        1516     1521       +5     
  Lines      104652   105036     +384     
  Branches    31853    31853              
==========================================
  Hits        15610    15610              
- Misses      72007    72391     +384     
  Partials    17035    17035              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.91% <ø> (+<0.01%) ⬆️ Carriedforward from dd8e1d6

*This pull request uses carry forward flags. Click here to find out more.

Files Changed Coverage Δ
...ion_based_fusion/src/pointpainting_fusion/node.cpp 0.00% <0.00%> (ø)
...sion/src/pointpainting_fusion/preprocess_kernel.cu 0.00% <ø> (ø)
.../image_projection_based_fusion/src/utils/utils.cpp 0.00% <0.00%> (ø)

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@yukkysaito yukkysaito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@miursh miursh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miursh
Copy link
Contributor

miursh commented Aug 9, 2023

It looks much more stable than before
image

@yukke42
Copy link
Contributor Author

yukke42 commented Aug 9, 2023

@miursh Cloud you check autowarefoundation/autoware_launch#506?

@yukke42 yukke42 merged commit e14d71e into autowarefoundation:main Aug 9, 2023
@yukke42 yukke42 deleted the update-pointpainting branch August 9, 2023 14:26
yukke42 added a commit to tier4/autoware.universe that referenced this pull request Aug 9, 2023
…undation#4544)

* refactor: update point-image projection

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>

* feat: add class_mappings for paint points

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>

* chore: change score_threshold

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>

* style(pre-commit): autofix

* feat: update pointpainting model

Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>

* chore: remove comment out

Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>

* chore: fix param

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>

---------

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
LeoDriveProject pushed a commit to leo-drive/autoware.universe.golf that referenced this pull request Aug 16, 2023
…undation#4544)

* refactor: update point-image projection

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>

* feat: add class_mappings for paint points

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>

* chore: change score_threshold

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>

* style(pre-commit): autofix

* feat: update pointpainting model

Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>

* chore: remove comment out

Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>

* chore: fix param

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>

---------

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants