label-studio-sdk icon indicating copy to clipboard operation
label-studio-sdk copied to clipboard

Export YOLO with filters in new sdk

Open pirnerjonas opened this issue 8 months ago • 3 comments

Hi all,

I found https://github.com/HumanSignal/label-studio-sdk/blob/master/examples/export_with_filters.py which shows how you export annotations with filters but it uses the old version of the sdk from label_studio_sdk import Client.

The export example for the new sdk in the readme only shows this:

annotations = [
    task.annotations
    for task in ls.tasks.list(project=project.id, fields='all')
    if task.annotations
]

How is it possible to filter tasks and then export the tasks annotations to YOLO with the new sdk?

pirnerjonas avatar Jun 10 '25 15:06 pirnerjonas