Skip to content

[Bug] eval() crashes when an image in the dataset has zero annotations. #404

@RihaanBH-1810

Description

@RihaanBH-1810

When an image with zero annotations is present in the dataset read_annotation() returns []. Passing [] to tv_tensors.BoundingBoxes() creates a tensor with shape (0,) instead of (0, 4). This causes a shape mismatch error downstream during eval().

Pictures supporting the issue :

With coco-2014 dataset :

Image

With coco-2017 dataset :

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions