From 29c3cc9d110e40cca5f4d0a498720de21386d059 Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Thu, 14 Nov 2024 23:17:01 +0000 Subject: [PATCH 1/6] [submodules] Bump HumanSignal/label-studio-sdk version Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/11847131243 --- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 806a63f99dc5..955a3ebaabde 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1897,12 +1897,12 @@ testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", [[package]] name = "label-studio-sdk" -version = "1.0.8.dev" +version = "1.0.8" description = "" optional = false python-versions = "^3.8" files = [ - {file = "ae9984e544732025caadf96d2d716c728dbbe014.zip", hash = "sha256:5986ebc985e75d3cba68c0acbd1280b1cf012f30d5b174bdcaac8a682245f22a"}, + {file = "0fa587892c69e02476c4f990f46b58056397a389.zip", hash = "sha256:bbf6fb6414e11766c999ed13a69d3b1e161beea6f51463158d52aed9de637528"}, ] [package.dependencies] @@ -1925,7 +1925,7 @@ xmljson = "0.2.1" [package.source] type = "url" -url = "https://github.com/HumanSignal/label-studio-sdk/archive/ae9984e544732025caadf96d2d716c728dbbe014.zip" +url = "https://github.com/HumanSignal/label-studio-sdk/archive/0fa587892c69e02476c4f990f46b58056397a389.zip" [[package]] name = "launchdarkly-server-sdk" @@ -4468,4 +4468,4 @@ uwsgi = ["pyuwsgi", "uwsgitop"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<4" -content-hash = "fa56ad25463b26b86bf076808ab0ecf202ed3f6f54beb85c335e9cf4e56b7333" +content-hash = "22a38e8dd97635c924381436042a579eb414b4bf618a3936f8c661b389d15622" diff --git a/pyproject.toml b/pyproject.toml index 519244b0d620..75fd56aae313 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -203,7 +203,7 @@ django-migration-linter = "^5.1.0" setuptools = ">=75.4.0" # Humansignal repo dependencies -label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/ae9984e544732025caadf96d2d716c728dbbe014.zip"} +label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/0fa587892c69e02476c4f990f46b58056397a389.zip"} [tool.poetry.group.test.dependencies] pytest = "7.2.2" From f6647200571b677ea407a7a70e8e4e1e0d914986 Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Thu, 14 Nov 2024 23:20:15 +0000 Subject: [PATCH 2/6] [submodules] Bump HumanSignal/label-studio-sdk version Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/11847156217 --- poetry.lock | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index 955a3ebaabde..b07900775517 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1902,7 +1902,7 @@ description = "" optional = false python-versions = "^3.8" files = [ - {file = "0fa587892c69e02476c4f990f46b58056397a389.zip", hash = "sha256:bbf6fb6414e11766c999ed13a69d3b1e161beea6f51463158d52aed9de637528"}, + {file = "410861e68886e841bafc94ade903dfc3f0dbf0b8.zip", hash = "sha256:77a42d2fc68afd02edad75b68b83b5d8511ce7a27a193b85e8b00fca26de1846"}, ] [package.dependencies] @@ -1925,7 +1925,7 @@ xmljson = "0.2.1" [package.source] type = "url" -url = "https://github.com/HumanSignal/label-studio-sdk/archive/0fa587892c69e02476c4f990f46b58056397a389.zip" +url = "https://github.com/HumanSignal/label-studio-sdk/archive/410861e68886e841bafc94ade903dfc3f0dbf0b8.zip" [[package]] name = "launchdarkly-server-sdk" @@ -4468,4 +4468,4 @@ uwsgi = ["pyuwsgi", "uwsgitop"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<4" -content-hash = "22a38e8dd97635c924381436042a579eb414b4bf618a3936f8c661b389d15622" +content-hash = "528aab3e24d511e3b3cd4e63147e9b687c0e610646b66aa8fb0410a5293392be" diff --git a/pyproject.toml b/pyproject.toml index 75fd56aae313..724133d97d5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -203,7 +203,7 @@ django-migration-linter = "^5.1.0" setuptools = ">=75.4.0" # Humansignal repo dependencies -label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/0fa587892c69e02476c4f990f46b58056397a389.zip"} +label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/410861e68886e841bafc94ade903dfc3f0dbf0b8.zip"} [tool.poetry.group.test.dependencies] pytest = "7.2.2" From f726a2296403aaba263ecd7e5a20a7bc4e511fe8 Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Sat, 16 Nov 2024 05:58:41 +0000 Subject: [PATCH 3/6] [submodules] Bump HumanSignal/label-studio-sdk version Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/11867720631 --- poetry.lock | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index b07900775517..520860e23119 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1902,7 +1902,7 @@ description = "" optional = false python-versions = "^3.8" files = [ - {file = "410861e68886e841bafc94ade903dfc3f0dbf0b8.zip", hash = "sha256:77a42d2fc68afd02edad75b68b83b5d8511ce7a27a193b85e8b00fca26de1846"}, + {file = "dc6406fb6ab4831252b6c0e6a10a657e79283bac.zip", hash = "sha256:5344f46379e2002cbf1891fc6cc2e344b0405c93c88daa9e929d721f312f36cb"}, ] [package.dependencies] @@ -1925,7 +1925,7 @@ xmljson = "0.2.1" [package.source] type = "url" -url = "https://github.com/HumanSignal/label-studio-sdk/archive/410861e68886e841bafc94ade903dfc3f0dbf0b8.zip" +url = "https://github.com/HumanSignal/label-studio-sdk/archive/dc6406fb6ab4831252b6c0e6a10a657e79283bac.zip" [[package]] name = "launchdarkly-server-sdk" @@ -4468,4 +4468,4 @@ uwsgi = ["pyuwsgi", "uwsgitop"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<4" -content-hash = "528aab3e24d511e3b3cd4e63147e9b687c0e610646b66aa8fb0410a5293392be" +content-hash = "3e38271c35b7260168b0d5a27a95b01befb0d20a64dc1d390c445c59cfb6ea09" diff --git a/pyproject.toml b/pyproject.toml index 724133d97d5a..cec277fc82e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -203,7 +203,7 @@ django-migration-linter = "^5.1.0" setuptools = ">=75.4.0" # Humansignal repo dependencies -label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/410861e68886e841bafc94ade903dfc3f0dbf0b8.zip"} +label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/dc6406fb6ab4831252b6c0e6a10a657e79283bac.zip"} [tool.poetry.group.test.dependencies] pytest = "7.2.2" From 3804ad54c1040f331fd20c6922d316fd52886387 Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Sat, 16 Nov 2024 06:01:59 +0000 Subject: [PATCH 4/6] [submodules] Bump HumanSignal/label-studio-sdk version Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/11867727471 --- poetry.lock | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index 520860e23119..4dec03e3fa87 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1902,7 +1902,7 @@ description = "" optional = false python-versions = "^3.8" files = [ - {file = "dc6406fb6ab4831252b6c0e6a10a657e79283bac.zip", hash = "sha256:5344f46379e2002cbf1891fc6cc2e344b0405c93c88daa9e929d721f312f36cb"}, + {file = "8c6e2e4e94b1fae331fbe7de8098f306785986fe.zip", hash = "sha256:3119623c599dee99f4148ce87d211b2267d7251290db40ae2660b582b2ce0dc9"}, ] [package.dependencies] @@ -1925,7 +1925,7 @@ xmljson = "0.2.1" [package.source] type = "url" -url = "https://github.com/HumanSignal/label-studio-sdk/archive/dc6406fb6ab4831252b6c0e6a10a657e79283bac.zip" +url = "https://github.com/HumanSignal/label-studio-sdk/archive/8c6e2e4e94b1fae331fbe7de8098f306785986fe.zip" [[package]] name = "launchdarkly-server-sdk" @@ -4468,4 +4468,4 @@ uwsgi = ["pyuwsgi", "uwsgitop"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<4" -content-hash = "3e38271c35b7260168b0d5a27a95b01befb0d20a64dc1d390c445c59cfb6ea09" +content-hash = "c10b5cbe7eb93ca01a9db3b2b5e52b1b6ff1b28d767f0b7bc4361699c712e036" diff --git a/pyproject.toml b/pyproject.toml index cec277fc82e2..2657a9587d7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -203,7 +203,7 @@ django-migration-linter = "^5.1.0" setuptools = ">=75.4.0" # Humansignal repo dependencies -label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/dc6406fb6ab4831252b6c0e6a10a657e79283bac.zip"} +label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/8c6e2e4e94b1fae331fbe7de8098f306785986fe.zip"} [tool.poetry.group.test.dependencies] pytest = "7.2.2" From a566db3cedc6b18df3a4c72dd9e6dea033dfcb85 Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Sat, 16 Nov 2024 01:50:35 -0500 Subject: [PATCH 5/6] add unit test for MIG label config export formats --- label_studio/tests/export.tavern.yml | 105 +++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/label_studio/tests/export.tavern.yml b/label_studio/tests/export.tavern.yml index cb94bb3d5370..d2243fb5e21f 100644 --- a/label_studio/tests/export.tavern.yml +++ b/label_studio/tests/export.tavern.yml @@ -83,6 +83,7 @@ stages: response: status_code: 200 + --- test_name: YOLO_export_option_polygons strict: true @@ -173,3 +174,107 @@ stages: name: 'ASR_MANIFEST' disabled: true status_code: 200 + + +--- +test_name: mig_export +strict: false +marks: +- usefixtures: + - django_live_url +stages: +- id: signup + type: ref +- name: stage + request: + headers: + content-type: application/json + json: + label_config: + + + + + + method: POST + url: '{django_live_url}/api/projects' + response: + save: + json: + pk: id + status_code: 201 +- name: stage_export + request: + method: GET + url: '{django_live_url}/api/projects/{pk}/export/formats' + response: + strict: + - json:list_any_order + json: + - title: 'JSON' + description: !anystr + link: 'https://labelstud.io/guide/export.html#JSON' + name: 'JSON' + - title: 'JSON-MIN' + description: !anystr + link: 'https://labelstud.io/guide/export.html#JSON-MIN' + name: 'JSON_MIN' + - title: 'CSV' + description: !anystr + link: 'https://labelstud.io/guide/export.html#CSV' + name: 'CSV' + - title: 'TSV' + description: !anystr + link: 'https://labelstud.io/guide/export.html#TSV' + name: 'TSV' + - title: 'COCO' + description: !anystr + link: 'https://labelstud.io/guide/export.html#COCO' + tags: ['image segmentation', 'object detection'] + name: 'COCO' + disabled: true + - title: 'YOLO' + description: !anystr + link: 'https://labelstud.io/guide/export.html#YOLO' + tags: ['image segmentation', 'object detection'] + name: 'YOLO' + disabled: true + - title: 'YOLOv8 OBB' + description: !anystr + link: 'https://labelstud.io/guide/export.html#YOLO' + tags: ['image segmentation', 'object detection'] + name: 'YOLO_OBB' + disabled: true + - title: 'CONLL2003' + description: !anystr + link: 'https://labelstud.io/guide/export.html#CONLL2003' + tags: ['sequence labeling', 'text tagging', 'named entity recognition'] + name: 'CONLL2003' + disabled: true + - title: 'Pascal VOC XML' + description: !anystr + link: 'https://labelstud.io/guide/export.html#Pascal-VOC-XML' + tags: ['image segmentation', 'object detection'] + name: 'VOC' + disabled: true + - title: 'Brush labels to NumPy' + description: !anystr + link: 'https://labelstud.io/guide/export.html#Brush-labels-to-NumPy-amp-PNG' + tags: ['image segmentation'] + name: 'BRUSH_TO_NUMPY' + disabled: true + - title: 'Brush labels to PNG' + description: !anystr + link: 'https://labelstud.io/guide/export.html#Brush-labels-to-NumPy-amp-PNG' + tags: ['image segmentation'] + name: 'BRUSH_TO_PNG' + disabled: true + - title: 'ASR Manifest' + description: !anystr + link: 'https://labelstud.io/guide/export.html#ASR-MANIFEST' + tags: ['speech recognition'] + name: 'ASR_MANIFEST' + disabled: true + status_code: 200 From 9a6c3ce0e84e7f84f61f6fa66b263a78801b976a Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Mon, 18 Nov 2024 19:04:06 +0000 Subject: [PATCH 6/6] [submodules] Bump HumanSignal/label-studio-sdk version Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/11899232452 --- poetry.lock | 7 ++++--- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index d8e9d953198c..ed8ddbda16d4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1902,7 +1902,7 @@ description = "" optional = false python-versions = "^3.8" files = [ - {file = "8c6e2e4e94b1fae331fbe7de8098f306785986fe.zip", hash = "sha256:3119623c599dee99f4148ce87d211b2267d7251290db40ae2660b582b2ce0dc9"}, + {file = "505bf58261478e9b0babb53a4815ccf8c4bd2ed9.zip", hash = "sha256:45e5ec3f15d9d65a504b35e66ff370821e313fa0ad4f1b1e70e3f3813e272895"}, ] [package.dependencies] @@ -1925,7 +1925,7 @@ xmljson = "0.2.1" [package.source] type = "url" -url = "https://github.com/HumanSignal/label-studio-sdk/archive/8c6e2e4e94b1fae331fbe7de8098f306785986fe.zip" +url = "https://github.com/HumanSignal/label-studio-sdk/archive/505bf58261478e9b0babb53a4815ccf8c4bd2ed9.zip" [[package]] name = "launchdarkly-server-sdk" @@ -3439,6 +3439,7 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, @@ -4467,4 +4468,4 @@ uwsgi = ["pyuwsgi", "uwsgitop"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<4" -content-hash = "c10b5cbe7eb93ca01a9db3b2b5e52b1b6ff1b28d767f0b7bc4361699c712e036" +content-hash = "9a7b74be4ae28a022c3ddddcf5030cb0497d86bda9f5d8e23d3ce9a4d7f08263" diff --git a/pyproject.toml b/pyproject.toml index 2657a9587d7e..fe7fbebd0b73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -203,7 +203,7 @@ django-migration-linter = "^5.1.0" setuptools = ">=75.4.0" # Humansignal repo dependencies -label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/8c6e2e4e94b1fae331fbe7de8098f306785986fe.zip"} +label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/505bf58261478e9b0babb53a4815ccf8c4bd2ed9.zip"} [tool.poetry.group.test.dependencies] pytest = "7.2.2"