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 stats property for Coco class #70

Merged
merged 3 commits into from
May 6, 2021
Merged

add stats property for Coco class #70

merged 3 commits into from
May 6, 2021

Conversation

fcakyon
Copy link
Collaborator

@fcakyon fcakyon commented May 6, 2021

coco.stats will return dataset stats:

{
    'avg_annotation_area': 2448.405738278109,
    'avg_num_annotations_in_image': 53.037243084530985,
    'max_annotation_area': 328640,
    'max_num_annotations_in_image': 902,
    'min_annotation_area': 3,
    'min_num_annotations_in_image': 1,
    'num_annotations': 343204,
    'num_annotations_per_category': {
        'human': 106396,
        'vehicle': 236808
    },
    'num_categories': 2,
    'num_images': 6471,
    'num_images_per_category': {
        'human': 5684,
        'vehicle': 6323
    }
}

@fcakyon fcakyon self-assigned this May 6, 2021
@fcakyon fcakyon added the enhancement New feature or request label May 6, 2021
@fcakyon fcakyon merged commit 571e7a2 into main May 6, 2021
@fcakyon fcakyon deleted the coco-stats branch May 6, 2021 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant