HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
18.13k stars 2.27k forks source link

COCO annotation export is missing the annotations #4475

Open coelho-k opened 1 year ago

coelho-k commented 1 year ago

Describe the bug I have uploaded a few images from a local source to test the labeling tool. I finish labeling and can see them visually as well as in the task source. However, when exporting to COCO format, the annotations are missing entirely. What could be the reason for this?

Expected behavior I fully expect there to be the same annotations as in the task source.

Screenshots { "images": [ { "width": 2448, "height": 2048, "id": 0, "file_name": "images\/23082be9-0A9LCRZ1DR.jpg" }, { "width": 2448, "height": 2048, "id": 1, "file_name": "images\/bc267355-0A9ZTH01Q3.jpg" }, { "width": 2448, "height": 2048, "id": 2, "file_name": "images\/826e681f-0A0WG84517.jpg" } ], "categories": [ { "id": 0, "name": "Test1" }, { "id": 1, "name": Test2 }, { "id": 2, "name": Test3 Test3" } ], "annotations": [], "info": { "year": 2023, "version": "1.0", "description": "", "contributor": "Label Studio", "url": "", "date_created": "2023-07-05 15:31:46.280794" } }

Environment (please complete the following information):

Additional context Add any other context about the problem here.

erinmikailstaples commented 1 year ago

Hey @coelho-k — thank you so much for reaching out for help!

Reading through your issue, I have a hunch that it might be your labeling configuration.

Can you please share with us your labeling configuration so we can help you out best?

coelho-k commented 1 year ago

  <Image name="image" value="$image" zoom="true"/>
  <Header value="Label Instructions"></Header>
  <Text name="" value="Row 1: Uses SAM; Row 2: Uses brush; Row 3: Uses Polygons"></Text>
  <KeyPointLabels name="tag2" toName="image">
    <Label value="Obj1" smart="true" background="#ff0000" showInline="true"/>
    <Label value="Obj2" smart="true" background="#0000ff" showInline="true"/>
    <Label value="Object Eraser" smart="true" background="#000000" showInline="true"/>
  </KeyPointLabels>

  <BrushLabels name="tag" toName="image">
    <Label value="Obj1" background="#FF0000"/>
    <Label value="Obj2" background="#0d14d3"/>
  </BrushLabels>

  <PolygonLabels name="tag3" toName="image">
    <Label value="Obj1" background="#FF0000"/>
    <Label value="Obj2" background="#0d14d3"/>
  </PolygonLabels>

</View>