From a86b48ccbf61cd25911b9460765f92fd95fcf988 Mon Sep 17 00:00:00 2001 From: Takahiro Tamenishi Date: Mon, 6 Jun 2022 09:37:51 +0900 Subject: [PATCH 1/5] update split image --- fastlabel/__init__.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/fastlabel/__init__.py b/fastlabel/__init__.py index 4eb6ed8..c184fe7 100644 --- a/fastlabel/__init__.py +++ b/fastlabel/__init__.py @@ -1575,6 +1575,22 @@ def delete_task(self, task_id: str) -> None: # Integrate Task + def find_integrated_image_task_by_prefix( + self, + project: str, + prefix: str, + ) -> dict: + """ + Returns a integrate image task. + project is slug of your project (Required). + prefix is a prefix of task name (Required). + """ + endpoint = "tasks/integrate/images" + params = {"project": project, "prefix": prefix} + + return self.api.get_request(endpoint, params=params) + + def find_integrated_audio_task_by_prefix( self, project: str, From 8334979353d4651404c7efd0ed277bc14c28f2c3 Mon Sep 17 00:00:00 2001 From: Takahiro Tamenishi Date: Wed, 8 Jun 2022 15:42:12 +0900 Subject: [PATCH 2/5] add integrate image --- README.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/README.md b/README.md index dea71d5..0102b93 100644 --- a/README.md +++ b/README.md @@ -305,6 +305,61 @@ Example when the project type is Image - Pose Estimation } ``` +#### Integrate Task + +Integration is possible only when tasks are registered from the objects divided by the dataset. +Only bbox and polygon annotation types are supported. + +In the case of a task divided under the following conditions. + +dataset slug: image +object name: cat.jpg +split count: 3×3 + +Objects are registered in the data set in the following form. + +- image/cat/1.jpg +- image/cat/2.jpg +- image/cat/3.jpg +(omit) +- image/cat/9.jpg + + +The annotations at the edges of the image are combined. However, annotations with a maximum length of 300px may not work. + +In this case, SPLIT_IMAGE_TASK_NAME_PREFIX specifies `image/cat`. + +```python +task = client.find_integrated_image_task_by_prefix( + project="YOUR_PROJECT_SLUG", + prefix="SPLIT_IMAGE_TASK_NAME_PREFIX", +) +``` + +##### Response + +Example of a integrated image task object + +```python +{ + 'groupId': 'eda3ba5b-082c-4813-ad6c-0479b72a27d5', + 'name': 'image/cat.jpg', + "annotations": [ + { + "attributes": [], + "color": "#b36d18", + "confidenceScore"; -1, + "keypoints": [], + "points": [200,200,300,400], + "rotation": 0, + "title": "Bird", + "type": "polygon", + "value": "bird" + } + ], +} +``` + ### Image Classification Supported following project types: From a293cd3570522867617f13bd8c580feb9bff66e3 Mon Sep 17 00:00:00 2001 From: Takahiro Tamenishi Date: Wed, 15 Jun 2022 15:31:08 +0900 Subject: [PATCH 3/5] add alpha version to integrate function --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0102b93..14f6914 100644 --- a/README.md +++ b/README.md @@ -307,6 +307,8 @@ Example when the project type is Image - Pose Estimation #### Integrate Task +This function is alpha version. + Integration is possible only when tasks are registered from the objects divided by the dataset. Only bbox and polygon annotation types are supported. @@ -1165,6 +1167,8 @@ Example of a single audio task object #### Integrate Task +This function is alpha version. + Integration is possible only when tasks are registered from the objects divided by the dataset. In the case of a task divided under the following conditions. From b562abfcd1b51d5fa9902cf59347b7b95e5a9d5b Mon Sep 17 00:00:00 2001 From: Takahiro Tamenishi Date: Thu, 16 Jun 2022 09:08:54 +0900 Subject: [PATCH 4/5] add readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14f6914..d1bc7d7 100644 --- a/README.md +++ b/README.md @@ -307,7 +307,7 @@ Example when the project type is Image - Pose Estimation #### Integrate Task -This function is alpha version. +This function is alpha version. It is subject to major changes in the future. Integration is possible only when tasks are registered from the objects divided by the dataset. Only bbox and polygon annotation types are supported. @@ -1167,7 +1167,7 @@ Example of a single audio task object #### Integrate Task -This function is alpha version. +This function is alpha version.It is subject to major changes in the future. Integration is possible only when tasks are registered from the objects divided by the dataset. From e944cad0748c2d7b1ed5f47eb2f70d6bd2608174 Mon Sep 17 00:00:00 2001 From: Takahiro Tamenishi Date: Thu, 16 Jun 2022 18:39:39 +0900 Subject: [PATCH 5/5] add space --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d1bc7d7..fa761d2 100644 --- a/README.md +++ b/README.md @@ -1167,7 +1167,7 @@ Example of a single audio task object #### Integrate Task -This function is alpha version.It is subject to major changes in the future. +This function is alpha version. It is subject to major changes in the future. Integration is possible only when tasks are registered from the objects divided by the dataset.