Skip to content
This repository has been 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

Open
ingura opened this issue Feb 16, 2024 · 1 comment

Comments

@ingura
Copy link

ingura commented Feb 16, 2024

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.

@grogou
Copy link

grogou commented Apr 29, 2024

IDK why is this problem is not solved yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants