Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

It can not handle COCO type datasets that don't have segmentation annotations #276

@ingura

Description

@ingura

If you try to load a COCO type dataset that has its segmentation field empty like the ones roboflow generates (for datasets without segmentation) it will trow an index out of range exception.

This can be avoided by changing line 176 in imports/coco.py to

segmentation = segmentation and import_segmentation

where import_segmentation is a flag passed by the user to convert_coco_to_ls() in order to specify that he does not wish to import segmentation annotations.

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