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

Refactor Image/PointCloud 2 #944

Merged
merged 10 commits into from
Apr 18, 2023

Conversation

cih9088
Copy link
Contributor

@cih9088 cih9088 commented Apr 17, 2023

Summary

A following work of #911, #921

  • Fixed potential errors after refactoring
  • Added unit tests to cover potential erros

How to test

Checklist

  • I have added unit tests to cover my changes.​
  • I have added integration tests to cover my changes.​
  • I have added the description of my changes into CHANGELOG.​
  • I have updated the documentation accordingly

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below).
# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT

Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
@cih9088 cih9088 added BUG Something isn't working refactoring labels Apr 17, 2023
@cih9088 cih9088 added this to the 1.2.0 milestone Apr 17, 2023
@cih9088 cih9088 requested review from a team as code owners April 17, 2023 07:29
datumaro/components/merge/exact_merge.py Outdated Show resolved Hide resolved
datumaro/components/merge/exact_merge.py Outdated Show resolved Hide resolved
datumaro/plugins/data_formats/datumaro/exporter.py Outdated Show resolved Hide resolved
@@ -165,7 +165,7 @@ def _load_inference_from_subset(extractor, subset_name):
width, height = item.media.size
data_df["Width"].append(width)
data_df["Height"].append(height)
data_df["ImagePath"].append(item.media.path)
data_df["ImagePath"].append(getattr(item.media, "path", None))
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we would rather add path property which returns None to the base media class.

Copy link
Contributor Author

@cih9088 cih9088 Apr 18, 2023

Choose a reason for hiding this comment

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

Yes, indeed. path is way more used than I thought across Datumaro. Lets make it happen in another PR.

Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 18, 2023

Codecov Report

Patch coverage: 37.50% and no project coverage change.

Comparison is base (08425db) 78.68% compared to head (c9ea1c3) 78.69%.

Additional details and impacted files
@@               Coverage Diff               @@
##           releases/1.2.0     #944   +/-   ##
===============================================
  Coverage           78.68%   78.69%           
===============================================
  Files                 231      231           
  Lines               26408    26417    +9     
  Branches             5257     5258    +1     
===============================================
+ Hits                20780    20789    +9     
+ Misses               4403     4401    -2     
- Partials             1225     1227    +2     
Flag Coverage Δ
macos-11_Python-3.8 77.73% <37.50%> (+0.01%) ⬆️
ubuntu-20.04_Python-3.8 78.68% <37.50%> (+0.01%) ⬆️
windows-2019_Python-3.8 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
datumaro/cli/commands/search.py 25.45% <0.00%> (-0.48%) ⬇️
datumaro/components/dataset_base.py 72.89% <0.00%> (ø)
datumaro/components/dataset_item_storage.py 76.51% <0.00%> (ø)
datumaro/plugins/data_formats/datumaro/exporter.py 95.15% <0.00%> (ø)
...maro/plugins/data_formats/mapillary_vistas/base.py 88.37% <0.00%> (ø)
datumaro/components/merge/exact_merge.py 54.81% <23.52%> (+2.28%) ⬆️
datumaro/components/operations.py 86.88% <100.00%> (+0.77%) ⬆️
...atumaro/plugins/data_formats/kitti_raw/exporter.py 85.76% <100.00%> (ø)
...ro/plugins/data_formats/sly_pointcloud/exporter.py 82.35% <100.00%> (ø)
datumaro/plugins/data_formats/yolo/base.py 87.56% <100.00%> (ø)
... and 2 more

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@vinnamkim vinnamkim left a comment

Choose a reason for hiding this comment

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

LGTM.

@cih9088 cih9088 merged commit 8ea0dc6 into openvinotoolkit:releases/1.2.0 Apr 18, 2023
@cih9088 cih9088 deleted the refactor/image2 branch April 18, 2023 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants