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

Add AstypeAnnotations Transform #1484

Merged
merged 17 commits into from
May 7, 2024

Conversation

sooahleex
Copy link
Contributor

@sooahleex sooahleex commented Apr 29, 2024

Summary

  • Add AstypeAnnotations Transform
  • Convert Tabular annotation type to Label annotation type
    • From Categorical to Label
    • From str, float, int to Caption
  • Transform item with converted annotations
  • Set LabelCategories based on converted Label annotation
  • In this case, we support default setting which means mapping=None
  • Dataset status
    • as-is
      image
    • to-be
      image

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) 2024 Intel Corporation
#
# SPDX-License-Identifier: MIT

@sooahleex sooahleex changed the title Add AstypeTransform Add AstypeAnnotation Transform Apr 29, 2024
@sooahleex sooahleex changed the title Add AstypeAnnotation Transform Add AstypeAnnotations Transform Apr 30, 2024
@sooahleex sooahleex marked this pull request as ready for review April 30, 2024 08:10
@sooahleex sooahleex requested review from a team as code owners April 30, 2024 08:10
@sooahleex sooahleex requested review from itrushkin and removed request for a team April 30, 2024 08:10
Copy link

codecov bot commented Apr 30, 2024

Codecov Report

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

Project coverage is 80.79%. Comparing base (44cc56a) to head (fce21c5).
Report is 51 commits behind head on develop.

Files Patch % Lines
src/datumaro/plugins/transforms.py 88.88% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1484      +/-   ##
===========================================
- Coverage    80.85%   80.79%   -0.07%     
===========================================
  Files          271      272       +1     
  Lines        30689    31231     +542     
  Branches      6197     6293      +96     
===========================================
+ Hits         24815    25232     +417     
- Misses        4489     4586      +97     
- Partials      1385     1413      +28     
Flag Coverage Δ
ubuntu-20.04_Python-3.10 80.77% <89.09%> (-0.08%) ⬇️
windows-2022_Python-3.10 80.76% <89.09%> (-0.07%) ⬇️

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

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

@sooahleex sooahleex merged commit 18afdde into openvinotoolkit:develop May 7, 2024
8 checks passed
@wonjuleee wonjuleee added this to the 1.7.0 milestone May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants