Skip to content

Commit 0d9fcb5

Browse files
authored
Merge pull request #157 from fastlabel/feature/prioriry
update readme about priority
2 parents fd7873d + b91152b commit 0d9fcb5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ task_id = client.create_image_task(
9696
project="YOUR_PROJECT_SLUG",
9797
name="sample.jpg",
9898
file_path="./sample.jpg",
99+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
99100
annotations=[{
100101
"type": "bbox",
101102
"value": "annotation-value",
@@ -228,6 +229,7 @@ Update a single task.
228229
task_id = client.update_image_task(
229230
task_id="YOUR_TASK_ID",
230231
status="approved",
232+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
231233
assignee="USER_SLUG",
232234
tags=["tag1", "tag2"],
233235
annotations=[
@@ -261,6 +263,7 @@ Example of a single image task object
261263
"url": "YOUR_TASK_URL",
262264
"status": "registered",
263265
"externalStatus": "registered",
266+
"priority": 10,
264267
"tags": [],
265268
"assignee": "ASSIGNEE_NAME",
266269
"reviewer": "REVIEWER_NAME",
@@ -300,6 +303,7 @@ Example when the project type is Image - Pose Estimation
300303
"url": "YOUR_TASK_URL",
301304
"status": "registered",
302305
"externalStatus": "registered",
306+
"priority": 10,
303307
"tags": [],
304308
"assignee": "ASSIGNEE_NAME",
305309
"reviewer": "REVIEWER_NAME",
@@ -447,6 +451,7 @@ task_id = client.create_image_classification_task(
447451
project="YOUR_PROJECT_SLUG",
448452
name="sample.jpg",
449453
file_path="./sample.jpg",
454+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
450455
attributes=[
451456
{
452457
"key": "attribute-key",
@@ -490,6 +495,7 @@ Update a single task.
490495
task_id = client.update_image_classification_task(
491496
task_id="YOUR_TASK_ID",
492497
status="approved",
498+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
493499
assignee="USER_SLUG",
494500
tags=["tag1", "tag2"],
495501
attributes=[
@@ -514,6 +520,7 @@ Example of a single image classification task object
514520
"url": "YOUR_TASK_URL",
515521
"status": "registered",
516522
"externalStatus": "registered",
523+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
517524
"tags": [],
518525
"assignee": "ASSIGNEE_NAME",
519526
"reviewer": "REVIEWER_NAME",
@@ -551,6 +558,7 @@ task = client.create_multi_image_task(
551558
project="YOUR_PROJECT_SLUG",
552559
name="sample",
553560
folder_path="./sample",
561+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
554562
annotations=[{
555563
"type": "segmentation",
556564
"value": "annotation-value",
@@ -615,6 +623,7 @@ task_id = client.update_multi_image_task(
615623
status="approved",
616624
assignee="USER_SLUG",
617625
tags=["tag1", "tag2"],
626+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
618627
annotations=[
619628
{
620629
"type": "bbox",
@@ -647,6 +656,7 @@ Example of a single task object
647656
],
648657
"status": "registered",
649658
"externalStatus": "registered",
659+
"priority": 10,
650660
"tags": [],
651661
"assignee": "ASSIGNEE_NAME",
652662
"reviewer": "REVIEWER_NAME",
@@ -706,6 +716,7 @@ task_id = client.create_video_task(
706716
project="YOUR_PROJECT_SLUG",
707717
name="sample.mp4",
708718
file_path="./sample.mp4",
719+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
709720
annotations=[{
710721
"type": "bbox",
711722
"value": "person",
@@ -778,6 +789,7 @@ Update a single task.
778789
task_id = client.update_video_task(
779790
task_id="YOUR_TASK_ID",
780791
status="approved",
792+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
781793
assignee="USER_SLUG",
782794
tags=["tag1", "tag2"],
783795
annotations=[{
@@ -859,6 +871,7 @@ Example of a single vide task object
859871
"url": "YOUR_TASK_URL",
860872
"status": "registered",
861873
"externalStatus": "registered",
874+
"priority": 10,
862875
"tags": [],
863876
"assignee": "ASSIGNEE_NAME",
864877
"reviewer": "REVIEWER_NAME",
@@ -922,6 +935,7 @@ task_id = client.create_video_classification_task(
922935
project="YOUR_PROJECT_SLUG",
923936
name="sample.mp4",
924937
file_path="./sample.mp4",
938+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
925939
attributes=[
926940
{
927941
"key": "attribute-key",
@@ -965,6 +979,7 @@ Update a single task.
965979
task_id = client.update_video_classification_task(
966980
task_id="YOUR_TASK_ID",
967981
status="approved",
982+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
968983
assignee="USER_SLUG",
969984
tags=["tag1", "tag2"],
970985
attributes=[
@@ -1001,6 +1016,7 @@ task_id = client.create_text_task(
10011016
project="YOUR_PROJECT_SLUG",
10021017
name="sample.txt",
10031018
file_path="./sample.txt",
1019+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
10041020
annotations=[{
10051021
"type": "ner",
10061022
"value": "person",
@@ -1045,6 +1061,7 @@ Update a single task.
10451061
task_id = client.update_text_task(
10461062
task_id="YOUR_TASK_ID",
10471063
status="approved",
1064+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
10481065
assignee="USER_SLUG",
10491066
tags=["tag1", "tag2"],
10501067
annotations=[{
@@ -1068,6 +1085,7 @@ Example of a single text task object
10681085
"url": "YOUR_TASK_URL",
10691086
"status": "registered",
10701087
"externalStatus": "registered",
1088+
"priority": 10,
10711089
"tags": [],
10721090
"assignee": "ASSIGNEE_NAME",
10731091
"reviewer": "REVIEWER_NAME",
@@ -1105,6 +1123,7 @@ task_id = client.create_text_classification_task(
11051123
project="YOUR_PROJECT_SLUG",
11061124
name="sample.txt",
11071125
file_path="./sample.txt",
1126+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
11081127
attributes=[
11091128
{
11101129
"key": "attribute-key",
@@ -1148,6 +1167,7 @@ Update a single task.
11481167
task_id = client.update_text_classification_task(
11491168
task_id="YOUR_TASK_ID",
11501169
status="approved",
1170+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
11511171
assignee="USER_SLUG",
11521172
tags=["tag1", "tag2"],
11531173
attributes=[
@@ -1184,6 +1204,7 @@ task_id = client.create_audio_task(
11841204
project="YOUR_PROJECT_SLUG",
11851205
name="sample.mp3",
11861206
file_path="./sample.mp3",
1207+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
11871208
annotations=[{
11881209
"type": "segmentation",
11891210
"value": "person",
@@ -1227,6 +1248,7 @@ Update a single task.
12271248
task_id = client.update_audio_task(
12281249
task_id="YOUR_TASK_ID",
12291250
status="approved",
1251+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
12301252
assignee="USER_SLUG",
12311253
tags=["tag1", "tag2"],
12321254
annotations=[{
@@ -1249,6 +1271,7 @@ Example of a single audio task object
12491271
"url": "YOUR_TASK_URL",
12501272
"status": "registered",
12511273
"externalStatus": "registered",
1274+
"priority": 10,
12521275
"tags": [],
12531276
"assignee": "ASSIGNEE_NAME",
12541277
"reviewer": "REVIEWER_NAME",
@@ -1335,6 +1358,7 @@ task_id = client.create_audio_classification_task(
13351358
project="YOUR_PROJECT_SLUG",
13361359
name="sample.mp3",
13371360
file_path="./sample.mp3",
1361+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
13381362
attributes=[
13391363
{
13401364
"key": "attribute-key",
@@ -1378,6 +1402,7 @@ Update a single task.
13781402
task_id = client.update_audio_classification_task(
13791403
task_id="YOUR_TASK_ID",
13801404
status="approved",
1405+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
13811406
assignee="USER_SLUG",
13821407
tags=["tag1", "tag2"],
13831408
attributes=[
@@ -1417,6 +1442,7 @@ task_id = client.create_pcd_task(
14171442
project="YOUR_PROJECT_SLUG",
14181443
name="sample.pcd",
14191444
file_path="./sample.pcd",
1445+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
14201446
annotations=[
14211447
{
14221448
"type": "cuboid",
@@ -1444,6 +1470,7 @@ task_id = client.create_pcd_task(
14441470
project="YOUR_PROJECT_SLUG",
14451471
name="sample.pcd",
14461472
file_path="./sample.pcd",
1473+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
14471474
annotations=[
14481475
{
14491476
"type": "segmentation",
@@ -1488,6 +1515,7 @@ Update a single task.
14881515
task_id = client.update_pcd_task(
14891516
task_id="YOUR_TASK_ID",
14901517
status="approved",
1518+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
14911519
assignee="USER_SLUG",
14921520
tags=["tag1", "tag2"],
14931521
annotations=[
@@ -1521,6 +1549,7 @@ Example of a single PCD task object
15211549
"url": "YOUR_TASK_URL",
15221550
"status": "registered",
15231551
"externalStatus": "registered",
1552+
"priority": 10,
15241553
"tags": ["tag1", "tag2"],
15251554
"assignee": "ASSIGNEE_NAME",
15261555
"reviewer": "REVIEWER_NAME",
@@ -1579,6 +1608,7 @@ task_id = client.create_sequential_pcd_task(
15791608
project="YOUR_PROJECT_SLUG",
15801609
name="drive_record",
15811610
folder_path="./drive_record/",
1611+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
15821612
annotations=[
15831613
{
15841614
"type": "cuboid", # annotation class type
@@ -1668,6 +1698,7 @@ Update a single task.
16681698
task_id = client.update_sequential_pcd_task(
16691699
task_id="YOUR_TASK_ID",
16701700
status="approved",
1701+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
16711702
assignee="USER_SLUG",
16721703
tags=["tag1", "tag2"],
16731704
annotations=[
@@ -1719,6 +1750,7 @@ Example of a single Sequential PCD task object
17191750
"name": "YOUR_TASK_NAME",
17201751
"status": "registered",
17211752
"externalStatus": "registered",
1753+
"priority": 10,
17221754
"annotations": [
17231755
{
17241756
"id": "YOUR_TASK_ANNOTATION_ID",
@@ -1889,6 +1921,7 @@ Update a single task status, tags and assignee.
18891921
task_id = client.update_task(
18901922
task_id="YOUR_TASK_ID",
18911923
status="approved",
1924+
priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30
18921925
tags=["tag1", "tag2"],
18931926
assignee="USER_SLUG"
18941927
)

0 commit comments

Comments
 (0)