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

My COCO dataset JSON file contains empty list of segmentations... #5898

Closed
ajmalrasi opened this issue May 19, 2024 · 1 comment
Closed

My COCO dataset JSON file contains empty list of segmentations... #5898

ajmalrasi opened this issue May 19, 2024 · 1 comment
Labels
community:duplicate Community reported issue that has been previously reported community:issue A community reported issue Community Community Feature Requests, Open Issues, Bugs Reported, or Comments

Comments

@ajmalrasi
Copy link

          My COCO dataset JSON file contains empty list of segmentations...
WARNING:root:Segmentation in COCO is experimental
Traceback (most recent call last):
  File "/home/frta/.local/bin/label-studio-converter", line 33, in <module>
    sys.exit(load_entry_point('label-studio-converter', 'console_scripts', 'label-studio-converter')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frta/projects/***-pose-estimation/label-studio-converter/label_studio_converter/main.py", line 189, in main
    imports(args)
  File "/home/frta/projects/***-pose-estimation/label-studio-converter/label_studio_converter/main.py", line 171, in imports
    import_coco.convert_coco_to_ls(
  File "/home/frta/projects/***-pose-estimation/label-studio-converter/label_studio_converter/imports/coco.py", line 219, in convert_coco_to_ls
    item = create_segmentation(
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/frta/projects/***-pose-estimation/label-studio-converter/label_studio_converter/imports/coco.py", line 54, in create_segmentation
    segmentation = annotation['segmentation'][0]
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Originally posted by @frippe75 in #2806 (comment)

@sajarin sajarin added Community Community Feature Requests, Open Issues, Bugs Reported, or Comments community:issue A community reported issue community:duplicate Community reported issue that has been previously reported labels Jun 21, 2024
@sajarin
Copy link
Contributor

sajarin commented Jun 21, 2024

hey @ajmalrasi thanks for making this issue, I'm moving to close this because it's a duplicate as you pointed out but I've reopened the other issue. It would be good to have a single thread of discussion for all issues relating to the same or similar COCO json issues. Feel free to comment there!

@sajarin sajarin closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community:duplicate Community reported issue that has been previously reported community:issue A community reported issue Community Community Feature Requests, Open Issues, Bugs Reported, or Comments
Projects
None yet
Development

No branches or pull requests

2 participants