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

fix(object_recognition_utils): check polygon area on iou calculation #6701

Conversation

technolojin
Copy link
Contributor

@technolojin technolojin commented Mar 28, 2024

Description

Fix a issue reported by @mebasoglu
ISSUE #6617

This PR is alternative of PR #6618.

Tests performed

  1. A normal recompute simulation under TIER IV data is performed.
  2. The issue related data are also confirmed with this fix and the issue is resolved.

Effects on system behavior

Prevent divide by zero on IoU calculation even abnormal objects size are come.

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.

  • There are no open discussions or they are tracked via tickets.

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

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
@github-actions github-actions bot added the component:common Common packages from the autoware-common repository. (auto-assigned) label Mar 28, 2024
@technolojin
Copy link
Contributor Author

Dear @mebasoglu,
This is a replaced fix for the issue you reported.

Can you test it with the data you have?

@technolojin technolojin self-assigned this Mar 28, 2024
@mebasoglu
Copy link
Contributor

Hello @technolojin , I have tested with our data and confirmed that it works 👍. Thank you.

@technolojin technolojin changed the title feat(object_recognition_utils): check polygon area on iou calculation fix(object_recognition_utils): check polygon area on iou calculation Mar 28, 2024
@technolojin technolojin added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 28, 2024
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 27.27273% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 14.95%. Comparing base (badd949) to head (01c498b).
Report is 1 commits behind head on main.

Files Patch % Lines
...tils/include/object_recognition_utils/matching.hpp 27.27% 0 Missing and 8 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6701      +/-   ##
==========================================
+ Coverage   14.94%   14.95%   +0.01%     
==========================================
  Files        1939     1936       -3     
  Lines      133673   133576      -97     
  Branches    39756    39758       +2     
==========================================
  Hits        19971    19971              
+ Misses      91456    91353     -103     
- Partials    22246    22252       +6     
Flag Coverage Δ *Carryforward flag
differential 10.34% <27.27%> (?)
total 14.95% <ø> (+0.01%) ⬆️ Carriedforward from 7c12f4a

*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.

@technolojin
Copy link
Contributor Author

@scepter914 Can I request to review this PR?

Copy link
Contributor

@scepter914 scepter914 left a comment

Choose a reason for hiding this comment

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

LGTM
(Operation confirmation by @technolojin )

@technolojin technolojin merged commit 1aa5bb9 into autowarefoundation:main Apr 2, 2024
27 of 28 checks passed
anhnv3991 pushed a commit to anhnv3991/autoware.universe that referenced this pull request Apr 5, 2024
…utowarefoundation#6701)

* feat(object_recognition_utils): check input polygon on IoU calculations

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

* fix: MIN_AREA close to the epsilon of float 1e-6

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

---------

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…utowarefoundation#6701)

* feat(object_recognition_utils): check input polygon on IoU calculations

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

* fix: MIN_AREA close to the epsilon of float 1e-6

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

---------

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
@technolojin technolojin deleted the feat/check-polygon-area-on-IoU branch July 26, 2024 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (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