Skip to content

Commit 715b175

Browse files
committed
sagemaker test
1 parent 9d66602 commit 715b175

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/converter_test/test_sagemaker.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
import superannotate as sa
33

44

5-
def sagemaker_object_detection(tmpdir):
6-
out_dir = tmpdir / "object_detection"
5+
def sagemaker_instance_segmentation(tmpdir):
6+
out_dir = tmpdir / "instance_segmentation"
77
sa.import_annotation_format(
8-
'tests/converter_test/SageMaker/input/toSuperAnnotate/object_detection',
9-
str(out_dir), 'SageMaker', 'test-obj-detect', 'Vector',
10-
'object_detection', 'Web'
8+
'tests/converter_test/SageMaker/input/toSuperAnnotate/instance_segmentation',
9+
str(out_dir), 'SageMaker', 'test-obj-detect', 'Pixel',
10+
'instance_segmentation', 'Web'
1111
)
1212

13-
project_name = "sagemaker_object_detection"
13+
project_name = "sagemaker_instance_segmentation"
1414

1515
projects = sa.search_projects(project_name, True)
1616
if projects:
1717
sa.delete_project(projects[0])
18-
project = sa.create_project(project_name, "converter vector", "Vector")
18+
project = sa.create_project(project_name, "converter vector", "Pixel")
1919

2020
sa.create_annotation_classes_from_classes_json(
2121
project, out_dir + "/classes/classes.json"
@@ -26,12 +26,12 @@ def sagemaker_object_detection(tmpdir):
2626
return 0
2727

2828

29-
def sagemaker_instance_segmentation(tmpdir):
30-
out_dir = tmpdir / "instance_segmentation"
29+
def sagemaker_object_detection(tmpdir):
30+
out_dir = tmpdir / "object_detection"
3131
sa.import_annotation_format(
32-
'tests/converter_test/SageMaker/input/toSuperAnnotate/instance_segmentation',
33-
str(out_dir), 'SageMaker', 'test-obj-detect', 'Pixel',
34-
'instance_segmentation', 'Desktop'
32+
'tests/converter_test/SageMaker/input/toSuperAnnotate/object_detection',
33+
str(out_dir), 'SageMaker', 'test-obj-detect', 'Vector',
34+
'object_detection', 'Desktop'
3535
)
3636

3737
return 0

0 commit comments

Comments
 (0)