When the amount of data is large, exporting data will be very slow. Is there any solution?
thank you!
@LBZHK are you talking about timeouts? If yes, please try to use snapshots via SDK:
https://labelstud.io/sdk/project.html#label_studio_sdk.project.Project.export_snapshot_create
https://labelstud.io/guide/export.html#Export-snapshots-using-the-API
@LBZHK are you talking about timeouts? If yes, please try to use snapshots via SDK:
https://labelstud.io/sdk/project.html#label_studio_sdk.project.Project.export_snapshot_create
https://labelstud.io/guide/export.html#Export-snapshots-using-the-API
and any updated docker version to support that?
@yangboz yes, we has been supporting export snapshots for a long time.
For full hd images, takes about 5 minutes for 300 of them (3-4 bounding boxes each). That's a LOT of time.
@ntakouris
As a workaround, you can follow this
- go to console where you run LS and call there:
label-studio shell
it will run LS shell (Django shell_plus) and you will be able to execute Django ORM commands
- In shell plus:
from tasks.serializers import TaskWithAnnotationsSerializer
tasks = Task.objects.filter(project=<ID>)
export_json_data = TaskWithAnnotationsSerializer(tasks, many=True).data
- Optionally:
import json
with open('export.json', 'w') as f:
json.dump(export_json_data, f)
Roger that. I'll try it over here. Thank you
------------------ 原始邮件 ------------------ 发件人: "heartexlabs/label-studio" @.>; 发送时间: 2022年8月9日(星期二) 上午7:18 @.>; @.@.>; 主题: Re: [heartexlabs/label-studio] When the amount of data is large, exporting data will be very slow. Is there any solution? (Issue #2663)
@ntakouris
As a workaround, you can follow this
go to console where you run LS and call there:
label-studio shell
it will run LS shell (Django shell_plus) and you will be able to execute Django ORM commands
In shell plus:
from tasks.serializers import TaskWithAnnotationsSerializer tasks = Task.objects.filter(project=<ID>) export_json_data = TaskWithAnnotationsSerializer(tasks, many=True).data
Optionally:
import json with open('export.json', 'w') as f: json.dump(export_json_data, f)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>
Also you can use this console command: https://labelstud.io/guide/export.html#Export-using-console-command