Skip to content

Commit 5040c49

Browse files
committed
Warning to info
1 parent 6fc1298 commit 5040c49

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

docs/source/tutorial.sdk.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ to convert them to other annotation formats:
239239

240240
.. code-block:: python
241241
242-
sa.export_annotation_format("<input_folder>", "<output_folder>", "<dataset_format>", "<dataset_name>",
242+
sa.export_annotation_format("<input_folder>", "<output_folder>", "<dataset_format>", "<dataset_name>",
243243
"<project_type>", "<task>", "<platform>")
244244
245245
.. note::
@@ -256,7 +256,7 @@ You can find more information annotation format conversion :ref:`here <ref_conve
256256
257257
# From SA panoptic format to COCO panoptic format
258258
sa.export_annotation_format(
259-
"tests/converter_test/COCO/input/fromSuperAnnotate/cats_dogs_panoptic_segm",
259+
"tests/converter_test/COCO/input/fromSuperAnnotate/cats_dogs_panoptic_segm",
260260
"tests/converter_test/COCO/output/panoptic",
261261
"COCO", "panoptic_test", "Pixel","panoptic_segmentation","Web"
262262
)
@@ -277,8 +277,8 @@ You can find more information annotation format conversion :ref:`here <ref_conve
277277
278278
# YOLO annotation format to SA Web platform annotation format
279279
sa.import_annotation_format(
280-
'tests/converter_test/YOLO/input/toSuperAnnotate',
281-
'tests/converter_test/YOLO/output',
280+
'tests/converter_test/YOLO/input/toSuperAnnotate',
281+
'tests/converter_test/YOLO/output',
282282
'YOLO', '', 'Vector', 'object_detection', 'Web'
283283
)
284284

superannotate/db/projects.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def upload_images_from_folder_to_project(
529529
if not isinstance(project, dict):
530530
project = get_project_metadata(project)
531531
if recursive_subfolders:
532-
logger.warning(
532+
logger.info(
533533
"When using recursive subfolder parsing same name images in different subfolders will overwrite each other."
534534
)
535535
if exclude_file_patterns is None:
@@ -910,14 +910,14 @@ def upload_annotations_from_folder_to_project(
910910
):
911911
"""Finds and uploads all JSON files in the folder_path as annotations to the project.
912912
913-
WARNING: The JSON files should follow specific naming convention. For Vector
913+
The JSON files should follow specific naming convention. For Vector
914914
projects they should be named "<image_filename>___objects.json" (e.g., if
915915
image is cats.jpg the annotation filename should be cats.jpg___objects.json), for Pixel projects
916916
JSON file should be named "<image_filename>___pixel.json" and also second mask
917917
image file should be present with the name "<image_name>___save.png". In both cases
918918
image with <image_name> should be already present on the platform.
919919
920-
WARNING: Existing annotations will be overwritten.
920+
Existing annotations will be overwritten.
921921
922922
:param project: project name or metadata of the project to upload annotations to
923923
:type project: str or dict
@@ -932,15 +932,15 @@ def upload_annotations_from_folder_to_project(
932932
:rtype: list of strs
933933
"""
934934
if recursive_subfolders:
935-
logger.warning(
935+
logger.info(
936936
"When using recursive subfolder parsing same name annotations in different subfolders will overwrite each other."
937937
)
938938

939-
logger.warning(
939+
logger.info(
940940
"The JSON files should follow specific naming convention. For Vector projects they should be named '<image_name>___objects.json', for Pixel projects JSON file should be names '<image_name>___pixel.json' and also second mask image file should be present with the name '<image_name>___save.png'. In both cases image with <image_name> should be already present on the platform."
941941
)
942942

943-
logger.warning("Existing annotations will be overwritten.")
943+
logger.info("Existing annotations will be overwritten.")
944944
if not isinstance(project, dict):
945945
project = get_project_metadata(project)
946946

@@ -1155,14 +1155,14 @@ def upload_preannotations_from_folder_to_project(
11551155
):
11561156
"""Finds and uploads all JSON files in the folder_path as pre-annotations to the project.
11571157
1158-
WARNING: The JSON files should follow specific naming convention. For Vector
1158+
The JSON files should follow specific naming convention. For Vector
11591159
projects they should be named "<image_filename>___objects.json" (e.g., if
11601160
image is cats.jpg the annotation filename should be cats.jpg___objects.json), for Pixel projects
11611161
JSON file should be named "<image_filename>___pixel.json" and also second mask
11621162
image file should be present with the name "<image_name>___save.png". In both cases
11631163
image with <image_name> should be already present on the platform.
11641164
1165-
WARNING: Existing pre-annotations will be overwritten.
1165+
Existing pre-annotations will be overwritten.
11661166
11671167
:param project: project name or metadata of the project to upload pre-annotations to
11681168
:type project: str or dict
@@ -1177,14 +1177,14 @@ def upload_preannotations_from_folder_to_project(
11771177
:rtype: list of strs
11781178
"""
11791179
if recursive_subfolders:
1180-
logger.warning(
1180+
logger.info(
11811181
"When using recursive subfolder parsing same name pre-annotations in different subfolders will overwrite each other."
11821182
)
1183-
logger.warning(
1183+
logger.info(
11841184
"The JSON files should follow specific naming convention. For Vector projects they should be named '<image_name>___objects.json', for Pixel projects JSON file should be names '<image_name>___pixel.json' and also second mask image file should be present with the name '<image_name>___save.png'. In both cases image with <image_name> should be already present on the platform."
11851185
)
11861186

1187-
logger.warning(
1187+
logger.info(
11881188
"Identically named existing pre-annotations will be overwritten."
11891189
)
11901190
if not isinstance(project, dict):

superannotate/input_converters/import_to_sa_conversions.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
"""
2-
Module which will run converters and convert from other
2+
Module which will run converters and convert from other
33
annotation formats to superannotate annotation format
44
"""
5-
import sys
6-
import os
75
import glob
8-
import shutil
96
import logging
10-
from argparse import Namespace
7+
import os
8+
import shutil
119

1210
from .converters.converters import Converter
1311

0 commit comments

Comments
 (0)