Skip to content

Add AstypeAnnotations Transform#1484

Merged
sooahleex merged 17 commits intoopen-edge-platform:developfrom
sooahleex:feat/astype_transform
May 7, 2024
Merged

Add AstypeAnnotations Transform#1484
sooahleex merged 17 commits intoopen-edge-platform:developfrom
sooahleex:feat/astype_transform

Conversation

@sooahleex
Copy link
Copy Markdown
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 force-pushed the feat/astype_transform branch from 12592d8 to 3fc6414 Compare April 30, 2024 06:50
@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
@codecov
Copy link
Copy Markdown

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 force-pushed the feat/astype_transform branch from ba98d27 to 68ddbe5 Compare May 3, 2024 05:53
@sooahleex sooahleex merged commit 18afdde into open-edge-platform:develop May 7, 2024
@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