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

Pixel Masks Annotations #142

Merged
merged 5 commits into from
Aug 7, 2024
Merged

Pixel Masks Annotations #142

merged 5 commits into from
Aug 7, 2024

Conversation

kozlov721
Copy link
Collaborator

@kozlov721 kozlov721 commented Aug 7, 2024

  • Added support for using pixel mask annotations for segmentations
    • Masks are internally transformed to RLE format

Example:

def generator():
    mask = np.zeros((256, 256))
    yield {
        "file": file,
        "annotation": {
            "type": "mask",
            "class": "person",
            "mask": mask,
        }
    }    

@kozlov721 kozlov721 added enhancement New feature or request data Changes affecting luxonis_ml.data subpackage labels Aug 7, 2024
@kozlov721 kozlov721 self-assigned this Aug 7, 2024
Copy link

github-actions bot commented Aug 7, 2024

Test Results

  1 files    1 suites   14m 30s ⏱️
 97 tests  97 ✅ 0 💤 0 ❌
109 runs  109 ✅ 0 💤 0 ❌

Results for commit 813895a.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Aug 7, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
3561 2954 83% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
luxonis_ml/data/datasets/annotation.py 91% 🟢
luxonis_ml/data/datasets/luxonis_dataset.py 86% 🟢
luxonis_ml/data/parsers/segmentation_mask_directory_parser.py 98% 🟢
luxonis_ml/data/parsers/solo_parser.py 78% 🟢
TOTAL 88% 🟢

updated for commit: 813895a by action🐍

Copy link
Contributor

@klemen1999 klemen1999 left a comment

Choose a reason for hiding this comment

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

Other than the comment LGTM

luxonis_ml/data/datasets/annotation.py Show resolved Hide resolved
@kozlov721 kozlov721 merged commit ecd8ecc into dev Aug 7, 2024
12 checks passed
@kozlov721 kozlov721 deleted the feature/mask-annotation branch August 7, 2024 13:33
@kozlov721 kozlov721 mentioned this pull request Aug 16, 2024
kozlov721 added a commit that referenced this pull request Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Changes affecting luxonis_ml.data subpackage enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants