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.19k stars 2.28k forks source link

Export only exports re-annotated images #4151

Open Vikram12301 opened 1 year ago

Vikram12301 commented 1 year ago

I first used an ML model and annotated the images, Then I imported these annotations and made changes to only the images which are to be re-annotated and saved these files alone. When I am exporting, only the saved files(re-annotated) are getting exported and not all the images in the project? Is it possible to re-export them now?

Capture

AbubakarSaad commented 1 year ago

Hello Vikram12301,

Yes, it is possible to export all the annotations, including the ones that were imported and the ones you re-annotated. You can use the Label Studio API or SDK to create an export snapshot that includes all the annotations.

For API, refer to this documentation: https://labelstud.io/guide/export.html#Export-snapshots-using-the-API

For SDK, refer to this documentation: https://labelstud.io/sdk/project.html#create-new-export-snapshot

You can also check out this SDK example: https://github.com/heartexlabs/label-studio-sdk/blob/master/examples/export_snapshots.py

By default, the export snapshot should include all the annotations in the project. If you want to apply a specific filter, you can pass the filter options to the API/SDK call.