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(traffic_light_multi_camera_fusion): take confidence into consideration #6267

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

tzhong518
Copy link
Contributor

@tzhong518 tzhong518 commented Feb 1, 2024

Description

The purpose of this PR is to avoid mistrial resulted from low-confidence misdetection.
Before, the multi camera fusion is based only on the size and truncation state of the rois. As a consequence, if the misdetected roi is not truncated and has the biggest area among the group, the fusion result could be misled to green as below.
image
Trusting the results with the highest confidence instead of area could avoid such problem. And it also seems reliable in other situations as far as we observed.
image
left: detection result
right: fusion result

Related links

Tests performed

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.

Signed-off-by: tzhong518 <sworgun@gmail.com>
@tzhong518 tzhong518 requested a review from miursh as a code owner February 1, 2024 01:55
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Feb 1, 2024
@miursh miursh requested a review from yuki-takagi-66 February 2, 2024 05:40
Copy link
Contributor

@yuki-takagi-66 yuki-takagi-66 left a comment

Choose a reason for hiding this comment

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

Thank you for the PR.
I've commented on a minor matter, but as abstracted, it is LGTM.

Signed-off-by: tzhong518 <sworgun@gmail.com>
Copy link
Contributor

@yuki-takagi-66 yuki-takagi-66 left a comment

Choose a reason for hiding this comment

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

LGTM

@miursh miursh added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 19, 2024
@miursh miursh enabled auto-merge (squash) February 19, 2024 09:47
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (e4cae6f) 14.58% compared to head (564bf45) 14.58%.
Report is 241 commits behind head on main.

Files Patch % Lines
...ion/traffic_light_multi_camera_fusion/src/node.cpp 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6267   +/-   ##
=======================================
  Coverage   14.58%   14.58%           
=======================================
  Files        1868     1868           
  Lines      127493   127492    -1     
  Branches    37317    37317           
=======================================
  Hits        18600    18600           
+ Misses      87974    87973    -1     
  Partials    20919    20919           
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.58% <ø> (+<0.01%) ⬆️ Carriedforward from e4cae6f

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

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

@miursh miursh merged commit 9727299 into autowarefoundation:main Feb 19, 2024
34 of 36 checks passed
tzhong518 added a commit to tier4/autoware.universe that referenced this pull request Feb 21, 2024
…ration (autowarefoundation#6267)

* fix: highest confidence

Signed-off-by: tzhong518 <sworgun@gmail.com>

* fix: use the confidence of the first element

Signed-off-by: tzhong518 <sworgun@gmail.com>

---------

Signed-off-by: tzhong518 <sworgun@gmail.com>
StepTurtle pushed a commit to StepTurtle/autoware.universe that referenced this pull request Feb 28, 2024
…ration (autowarefoundation#6267)

* fix: highest confidence

Signed-off-by: tzhong518 <sworgun@gmail.com>

* fix: use the confidence of the first element

Signed-off-by: tzhong518 <sworgun@gmail.com>

---------

Signed-off-by: tzhong518 <sworgun@gmail.com>
shmpwk added a commit to tier4/autoware.universe that referenced this pull request Mar 4, 2024
…sion

feat(traffic_light_multi_camera_fusion): take confidence into consideration(autowarefoundation#6267)
HansRobo pushed a commit that referenced this pull request Mar 12, 2024
…ration (#6267)

* fix: highest confidence

Signed-off-by: tzhong518 <sworgun@gmail.com>

* fix: use the confidence of the first element

Signed-off-by: tzhong518 <sworgun@gmail.com>

---------

Signed-off-by: tzhong518 <sworgun@gmail.com>
Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…ration (autowarefoundation#6267)

* fix: highest confidence

Signed-off-by: tzhong518 <sworgun@gmail.com>

* fix: use the confidence of the first element

Signed-off-by: tzhong518 <sworgun@gmail.com>

---------

Signed-off-by: tzhong518 <sworgun@gmail.com>
t4-x2 pushed a commit to tier4/autoware.universe that referenced this pull request Jun 10, 2024
…ration (autowarefoundation#6267)

* fix: highest confidence

Signed-off-by: tzhong518 <sworgun@gmail.com>

* fix: use the confidence of the first element

Signed-off-by: tzhong518 <sworgun@gmail.com>

---------

Signed-off-by: tzhong518 <sworgun@gmail.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