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

Issue with COCO JSON conversion failing in certain cases #289

Open
ajmalrasi opened this issue May 19, 2024 · 0 comments
Open

Issue with COCO JSON conversion failing in certain cases #289

ajmalrasi opened this issue May 19, 2024 · 0 comments

Comments

@ajmalrasi
Copy link
Contributor

label-studio-converter import coco -i result.json -o output.json

WARNING:root:Segmentation in COCO is experimental
Traceback (most recent call last):
File "/home/ajmalrasi/.virtualenvs/dl/bin/label-studio-converter", line 8, in
sys.exit(main())
File "/home/ajmalrasi/.virtualenvs/dl/lib/python3.10/site-packages/label_studio_converter/main.py", line 189, in main
imports(args)
File "/home/ajmalrasi/.virtualenvs/dl/lib/python3.10/site-packages/label_studio_converter/main.py", line 171, in imports
import_coco.convert_coco_to_ls(
File "/home/ajmalrasi/.virtualenvs/dl/lib/python3.10/site-packages/label_studio_converter/imports/coco.py", line 219, in convert_coco_to_ls
item = create_segmentation(
File "/home/ajmalrasi/.virtualenvs/dl/lib/python3.10/site-packages/label_studio_converter/imports/coco.py", line 54, in create_segmentation
segmentation = annotation['segmentation'][0]
IndexError: list index out of range

@ajmalrasi ajmalrasi changed the title COCO object detection json conversion to label studio fails Fix: Resolve issue with COCO JSON conversion failing in certain cases May 19, 2024
@ajmalrasi ajmalrasi changed the title Fix: Resolve issue with COCO JSON conversion failing in certain cases Issue with COCO JSON conversion failing in certain cases May 19, 2024
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

1 participant