Skip to content

Commit a8f3c51

Browse files
Narek MkhitaryanNarek Mkhitaryan
authored andcommitted
rename GenAI to Multimodal
1 parent bbd34be commit a8f3c51

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"Document",
8080
"Tiled",
8181
"PointCloud",
82-
"GenAI",
82+
"Multimodal",
8383
]
8484

8585

@@ -307,7 +307,7 @@ def create_project(
307307
:param project_description: the new project's description
308308
:type project_description: str
309309
310-
:param project_type: the new project type, Vector, Pixel, Video, Document, Tiled, PointCloud, GenAI.
310+
:param project_type: the new project type, Vector, Pixel, Video, Document, Tiled, PointCloud, Multimodal.
311311
:type project_type: str
312312
313313
:param settings: list of settings objects

src/superannotate/lib/core/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class ProjectType(BaseTitledEnum):
108108
TILED = "Tiled", 5
109109
OTHER = "Other", 6
110110
POINT_CLOUD = "PointCloud", 7
111-
GEN_AI = "GenAI", 8
111+
MULTIMODAL = "Multimodal", 8
112112
UNSUPPORTED_TYPE_1 = "UnsupportedType", 9
113113
UNSUPPORTED_TYPE_2 = "UnsupportedType", 10
114114

src/superannotate/lib/core/service_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,5 @@ class SettingsListResponse(ServiceResponse):
246246
ProjectType.PIXEL: ImageResponse,
247247
ProjectType.DOCUMENT: DocumentResponse,
248248
ProjectType.POINT_CLOUD: PointCloudResponse,
249-
ProjectType.GEN_AI: ImageResponse,
249+
ProjectType.MULTIMODAL: ImageResponse,
250250
}

src/superannotate/lib/core/usecases/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ def validate_export_type(self):
8282
raise AppValidationException(
8383
"COCO format is not supported for this project."
8484
)
85-
elif self._export_type == 3 and self._project.type != ProjectType.GEN_AI.value:
85+
elif (
86+
self._export_type == 3
87+
and self._project.type != ProjectType.MULTIMODAL.value
88+
):
8689
raise AppValidationException(
8790
"CSV format is not supported for this project."
8891
)

tests/integration/annotations/validations/test_gen_ai_annotation_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
class TestVectorValidators(TestCase):
10-
PROJECT_TYPE = "GenAi"
10+
PROJECT_TYPE = "Multimodal"
1111

1212
@patch("builtins.print")
1313
def test_validate_annotation_without_metadata(self, mock_print):

tests/integration/projects/test_basic_project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
sa = SAClient()
1212

1313

14-
class TestGenAIProjectBasic(BaseTestCase):
15-
PROJECT_NAME = "TestGenAICreate"
16-
PROJECT_TYPE = "GenAI"
14+
class TestMultimodalProjectBasic(BaseTestCase):
15+
PROJECT_NAME = "TestMultimodalCreate"
16+
PROJECT_TYPE = "Multimodal"
1717
PROJECT_DESCRIPTION = "DESCRIPTION"
1818
ANNOTATION_PATH = (
1919
"data_set/sample_project_vector/example_image_1.jpg___objects.json"

tests/integration/projects/test_create_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_create_project_datetime(self):
9191
def test_create_project_with_wrong_type(self):
9292
with self.assertRaisesRegexp(
9393
AppException,
94-
"Available values are 'Vector', 'Pixel', 'Video', 'Document', 'Tiled', 'PointCloud', 'GenAI'.",
94+
"Available values are 'Vector', 'Pixel', 'Video', 'Document', 'Tiled', 'PointCloud', 'Multimodal'.",
9595
):
9696
sa.create_project(self.PROJECT, "desc", "wrong_type")
9797

0 commit comments

Comments
 (0)