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

Commit

Permalink
Fix coco object detection annotations josn having empty segmentation
Browse files Browse the repository at this point in the history
 - modified:   label_studio_converter/imports/coco.py
  • Loading branch information
ajmalrasi committed May 19, 2024
1 parent 4ff246b commit fd44a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion label_studio_converter/imports/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def convert_coco_to_ls(
)
task[out_type][0]['result'].append(item)

if 'segmentation' in annotation:
if annotation.get('segmentation', []):
item = create_segmentation(
annotation,
categories,
Expand Down

0 comments on commit fd44a10

Please sign in to comment.