From 206c953e4a31abdc6f95d76739183ba3bbb68677 Mon Sep 17 00:00:00 2001 From: hotsuma kawashima Date: Fri, 23 Jun 2023 15:36:18 +0900 Subject: [PATCH 1/3] update readme about priority --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index a36d863..c989007 100644 --- a/README.md +++ b/README.md @@ -215,6 +215,7 @@ Example of a single image task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -254,6 +255,7 @@ Example when the project type is Image - Pose Estimation "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -468,6 +470,7 @@ Example of a single image classification task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -601,6 +604,7 @@ Example of a single task object ], "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -813,6 +817,7 @@ Example of a single vide task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -1022,6 +1027,7 @@ Example of a single text task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -1203,6 +1209,7 @@ Example of a single audio task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -1475,6 +1482,7 @@ Example of a single PCD task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", + "priority": 10, "tags": ["tag1", "tag2"], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -1673,6 +1681,7 @@ Example of a single Sequential PCD task object "name": "YOUR_TASK_NAME", "status": "registered", "externalStatus": "registered", + "priority": 10, "annotations": [ { "id": "YOUR_TASK_ANNOTATION_ID", From 2a1b97f52edd29361c24ba7231f64b2d5c30eaaf Mon Sep 17 00:00:00 2001 From: hotsuma kawashima Date: Fri, 23 Jun 2023 15:59:12 +0900 Subject: [PATCH 2/3] update create, update description about priority --- README.md | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c989007..59e9048 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,8 @@ Create a new task. task_id = client.create_image_task( project="YOUR_PROJECT_SLUG", name="sample.jpg", - file_path="./sample.jpg" + file_path="./sample.jpg", + priority=10 ) ``` @@ -95,6 +96,7 @@ task_id = client.create_image_task( project="YOUR_PROJECT_SLUG", name="sample.jpg", file_path="./sample.jpg", + priority=10, annotations=[{ "type": "bbox", "value": "annotation-value", @@ -182,6 +184,7 @@ Update a single task. task_id = client.update_image_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[ @@ -403,6 +406,7 @@ task_id = client.create_image_classification_task( project="YOUR_PROJECT_SLUG", name="sample.jpg", file_path="./sample.jpg", + priority=10, attributes=[ { "key": "attribute-key", @@ -446,6 +450,7 @@ Update a single task. task_id = client.update_image_classification_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -508,6 +513,7 @@ task = client.create_multi_image_task( project="YOUR_PROJECT_SLUG", name="sample", folder_path="./sample", + priority=10, annotations=[{ "type": "segmentation", "value": "annotation-value", @@ -572,6 +578,7 @@ task_id = client.update_multi_image_task( status="approved", assignee="USER_SLUG", tags=["tag1", "tag2"], + priority=10, annotations=[ { "type": "bbox", @@ -653,7 +660,8 @@ Create a new task. task_id = client.create_video_task( project="YOUR_PROJECT_SLUG", name="sample.mp4", - file_path="./sample.mp4" + file_path="./sample.mp4", + priority=10 ) ``` @@ -664,6 +672,7 @@ task_id = client.create_video_task( project="YOUR_PROJECT_SLUG", name="sample.mp4", file_path="./sample.mp4", + priority=10, annotations=[{ "type": "bbox", "value": "person", @@ -736,6 +745,7 @@ Update a single task. task_id = client.update_video_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[{ @@ -881,6 +891,7 @@ task_id = client.create_video_classification_task( project="YOUR_PROJECT_SLUG", name="sample.mp4", file_path="./sample.mp4", + priority=10, attributes=[ { "key": "attribute-key", @@ -924,6 +935,7 @@ Update a single task. task_id = client.update_video_classification_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -949,7 +961,8 @@ Create a new task. task_id = client.create_text_task( project="YOUR_PROJECT_SLUG", name="sample.txt", - file_path="./sample.txt" + file_path="./sample.txt", + priority=10 ) ``` @@ -960,6 +973,7 @@ task_id = client.create_text_task( project="YOUR_PROJECT_SLUG", name="sample.txt", file_path="./sample.txt", + priority=10, annotations=[{ "type": "ner", "value": "person", @@ -1004,6 +1018,7 @@ Update a single task. task_id = client.update_text_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[{ @@ -1065,6 +1080,7 @@ task_id = client.create_text_classification_task( project="YOUR_PROJECT_SLUG", name="sample.txt", file_path="./sample.txt", + priority=10, attributes=[ { "key": "attribute-key", @@ -1108,6 +1124,7 @@ Update a single task. task_id = client.update_text_classification_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -1144,6 +1161,7 @@ task_id = client.create_audio_task( project="YOUR_PROJECT_SLUG", name="sample.mp3", file_path="./sample.mp3", + priority=10, annotations=[{ "type": "segmentation", "value": "person", @@ -1187,6 +1205,7 @@ Update a single task. task_id = client.update_audio_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[{ @@ -1296,6 +1315,7 @@ task_id = client.create_audio_classification_task( project="YOUR_PROJECT_SLUG", name="sample.mp3", file_path="./sample.mp3", + priority=10, attributes=[ { "key": "attribute-key", @@ -1339,6 +1359,7 @@ Update a single task. task_id = client.update_audio_classification_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -1365,7 +1386,8 @@ Create a new task. task_id = client.create_pcd_task( project="YOUR_PROJECT_SLUG", name="sample.pcd", - file_path="./sample.pcd" + file_path="./sample.pcd", + priority=10 ) ``` @@ -1378,6 +1400,7 @@ task_id = client.create_pcd_task( project="YOUR_PROJECT_SLUG", name="sample.pcd", file_path="./sample.pcd", + priority=10, annotations=[ { "type": "cuboid", @@ -1405,6 +1428,7 @@ task_id = client.create_pcd_task( project="YOUR_PROJECT_SLUG", name="sample.pcd", file_path="./sample.pcd", + priority=10, annotations=[ { "type": "segmentation", @@ -1449,6 +1473,7 @@ Update a single task. task_id = client.update_pcd_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[ @@ -1520,6 +1545,7 @@ task_id = client.create_sequential_pcd_task( project="YOUR_PROJECT_SLUG", name="drive_record", folder_path="./drive_record/", # Path where sequence PCD files are directory + priority=10 ) ``` @@ -1541,6 +1567,7 @@ task_id = client.create_sequential_pcd_task( project="YOUR_PROJECT_SLUG", name="drive_record", folder_path="./drive_record/", + priority=10, annotations=[ { "type": "cuboid", # annotation class type @@ -1630,6 +1657,7 @@ Update a single task. task_id = client.update_sequential_pcd_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[ @@ -1760,6 +1788,7 @@ Update a single task status, tags and assignee. task_id = client.update_task( task_id="YOUR_TASK_ID", status="approved", + priority=10, tags=["tag1", "tag2"], assignee="USER_SLUG" ) From b91152bdf9f82dd58f793576bd0361db24a0462d Mon Sep 17 00:00:00 2001 From: hotsuma kawashima Date: Fri, 23 Jun 2023 17:31:46 +0900 Subject: [PATCH 3/3] update priority description --- README.md | 63 +++++++++++++++++++++++++------------------------------ 1 file changed, 29 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 59e9048..d853d96 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,7 @@ Create a new task. task_id = client.create_image_task( project="YOUR_PROJECT_SLUG", name="sample.jpg", - file_path="./sample.jpg", - priority=10 + file_path="./sample.jpg" ) ``` @@ -96,7 +95,7 @@ task_id = client.create_image_task( project="YOUR_PROJECT_SLUG", name="sample.jpg", file_path="./sample.jpg", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "bbox", "value": "annotation-value", @@ -184,7 +183,7 @@ Update a single task. task_id = client.update_image_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[ @@ -406,7 +405,7 @@ task_id = client.create_image_classification_task( project="YOUR_PROJECT_SLUG", name="sample.jpg", file_path="./sample.jpg", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 attributes=[ { "key": "attribute-key", @@ -450,7 +449,7 @@ Update a single task. task_id = client.update_image_classification_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -475,7 +474,7 @@ Example of a single image classification task object "url": "YOUR_TASK_URL", "status": "registered", "externalStatus": "registered", - "priority": 10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 "tags": [], "assignee": "ASSIGNEE_NAME", "reviewer": "REVIEWER_NAME", @@ -513,7 +512,7 @@ task = client.create_multi_image_task( project="YOUR_PROJECT_SLUG", name="sample", folder_path="./sample", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "segmentation", "value": "annotation-value", @@ -578,7 +577,7 @@ task_id = client.update_multi_image_task( status="approved", assignee="USER_SLUG", tags=["tag1", "tag2"], - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[ { "type": "bbox", @@ -660,8 +659,7 @@ Create a new task. task_id = client.create_video_task( project="YOUR_PROJECT_SLUG", name="sample.mp4", - file_path="./sample.mp4", - priority=10 + file_path="./sample.mp4" ) ``` @@ -672,7 +670,7 @@ task_id = client.create_video_task( project="YOUR_PROJECT_SLUG", name="sample.mp4", file_path="./sample.mp4", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "bbox", "value": "person", @@ -745,7 +743,7 @@ Update a single task. task_id = client.update_video_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[{ @@ -891,7 +889,7 @@ task_id = client.create_video_classification_task( project="YOUR_PROJECT_SLUG", name="sample.mp4", file_path="./sample.mp4", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 attributes=[ { "key": "attribute-key", @@ -935,7 +933,7 @@ Update a single task. task_id = client.update_video_classification_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -961,8 +959,7 @@ Create a new task. task_id = client.create_text_task( project="YOUR_PROJECT_SLUG", name="sample.txt", - file_path="./sample.txt", - priority=10 + file_path="./sample.txt" ) ``` @@ -973,7 +970,7 @@ task_id = client.create_text_task( project="YOUR_PROJECT_SLUG", name="sample.txt", file_path="./sample.txt", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "ner", "value": "person", @@ -1018,7 +1015,7 @@ Update a single task. task_id = client.update_text_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[{ @@ -1080,7 +1077,7 @@ task_id = client.create_text_classification_task( project="YOUR_PROJECT_SLUG", name="sample.txt", file_path="./sample.txt", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 attributes=[ { "key": "attribute-key", @@ -1124,7 +1121,7 @@ Update a single task. task_id = client.update_text_classification_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -1161,7 +1158,7 @@ task_id = client.create_audio_task( project="YOUR_PROJECT_SLUG", name="sample.mp3", file_path="./sample.mp3", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[{ "type": "segmentation", "value": "person", @@ -1205,7 +1202,7 @@ Update a single task. task_id = client.update_audio_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[{ @@ -1315,7 +1312,7 @@ task_id = client.create_audio_classification_task( project="YOUR_PROJECT_SLUG", name="sample.mp3", file_path="./sample.mp3", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 attributes=[ { "key": "attribute-key", @@ -1359,7 +1356,7 @@ Update a single task. task_id = client.update_audio_classification_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], attributes=[ @@ -1386,8 +1383,7 @@ Create a new task. task_id = client.create_pcd_task( project="YOUR_PROJECT_SLUG", name="sample.pcd", - file_path="./sample.pcd", - priority=10 + file_path="./sample.pcd" ) ``` @@ -1400,7 +1396,7 @@ task_id = client.create_pcd_task( project="YOUR_PROJECT_SLUG", name="sample.pcd", file_path="./sample.pcd", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[ { "type": "cuboid", @@ -1428,7 +1424,7 @@ task_id = client.create_pcd_task( project="YOUR_PROJECT_SLUG", name="sample.pcd", file_path="./sample.pcd", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[ { "type": "segmentation", @@ -1473,7 +1469,7 @@ Update a single task. task_id = client.update_pcd_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[ @@ -1545,7 +1541,6 @@ task_id = client.create_sequential_pcd_task( project="YOUR_PROJECT_SLUG", name="drive_record", folder_path="./drive_record/", # Path where sequence PCD files are directory - priority=10 ) ``` @@ -1567,7 +1562,7 @@ task_id = client.create_sequential_pcd_task( project="YOUR_PROJECT_SLUG", name="drive_record", folder_path="./drive_record/", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 annotations=[ { "type": "cuboid", # annotation class type @@ -1657,7 +1652,7 @@ Update a single task. task_id = client.update_sequential_pcd_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 assignee="USER_SLUG", tags=["tag1", "tag2"], annotations=[ @@ -1788,7 +1783,7 @@ Update a single task status, tags and assignee. task_id = client.update_task( task_id="YOUR_TASK_ID", status="approved", - priority=10, + priority=10, # (optional) none: 0, low: 10, medium: 20, high: 30 tags=["tag1", "tag2"], assignee="USER_SLUG" )