Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/superannotate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import logging.config

from version import __version__
from superannotate.version import __version__
from superannotate.lib.app.analytics.class_analytics import attribute_distribution
from superannotate.lib.app.analytics.class_analytics import class_distribution
from superannotate.lib.app.annotation_helpers import add_annotation_bbox_to_json
Expand Down Expand Up @@ -295,3 +295,4 @@
file_dir = os.path.split(os.path.realpath(__file__))[0]

logging.config.fileConfig(os.path.join(file_dir, "logging.conf"))
logger = logging.getLogger()
2 changes: 1 addition & 1 deletion src/superannotate/lib/app/analytics/class_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .common import aggregate_annotations_as_df

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


@Trackable
Expand Down
2 changes: 1 addition & 1 deletion src/superannotate/lib/app/analytics/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from shapely.geometry import Polygon


logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def df_to_annotations(df, output_dir):
Expand Down
2 changes: 1 addition & 1 deletion src/superannotate/lib/app/bin/superannotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import fire
from lib.app.interface.cli_interface import CLIFacade

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()

# TODO Add help text
HELP_TEXT = ""
Expand Down
2 changes: 1 addition & 1 deletion src/superannotate/lib/app/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from PIL import Image
from tqdm import tqdm

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()

DEFAULT_IMAGE_EXTENSIONS = ("jpg", "jpeg", "png", "tif", "tiff", "webp", "bmp")
DEFAULT_FILE_EXCLUDE_PATTERNS = ("___save.png", "___fuse.png")
Expand Down
2 changes: 1 addition & 1 deletion src/superannotate/lib/app/convertors/baseStrategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from .vott_converters.vott_to_sa_vector import vott_to_sa
from .yolo_converters.yolo_to_sa_vector import yolo_object_detection_to_sa_vector

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()

CONVERSION_ALGORITHMS = {
"from": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ....common import write_to_json
from ..baseStrategy import baseStrategy

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


class CocoBaseStrategy(baseStrategy):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ....common import write_to_json
from .coco_converter import CocoBaseStrategy

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


class CocoPanopticConverterStrategy(CocoBaseStrategy):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .coco_api import _maskfrRLE
from .coco_api import decode

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def annot_to_bitmask(annot):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .coco_api import _maskfrRLE
from .coco_api import decode

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def annot_to_polygon(annot):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .coco_api import _polytoMask
from .coco_api import _toBbox

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def sa_vector_to_coco_object_detection(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .dataloop_helper import _create_attributes_list
from .dataloop_helper import _update_classes_dict

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def dataloop_to_sa(input_dir, task, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from ..sa_json_helper import _create_sa_json
from ..sa_json_helper import _create_vector_instance

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def googlecloud_to_sa_vector(path, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def image_downloader(url, file_name):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .labelbox_helper import _create_classes_id_map
from .labelbox_helper import image_downloader

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def labelbox_instance_segmentation_to_sa_pixel(json_data, output_dir, input_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .labelbox_helper import _create_attributes_list
from .labelbox_helper import _create_classes_id_map

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def labelbox_to_sa(json_data, output_dir, task):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from ..sa_json_helper import _create_pixel_instance
from ..sa_json_helper import _create_sa_json

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def sagemaker_instance_segmentation_to_sa_pixel(data_path, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ..sa_json_helper import _create_sa_json
from ..sa_json_helper import _create_vector_instance

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def sagemaker_object_detection_to_sa_vector(data_path, main_key, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .supervisely_helper import _base64_to_polygon
from .supervisely_helper import _create_attribute_list

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def supervisely_instance_segmentation_to_sa_pixel(json_files, class_id_map, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .supervisely_helper import _base64_to_polygon
from .supervisely_helper import _create_attribute_list

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def supervisely_to_sa(json_files, class_id_map, task, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from ..sa_json_helper import _create_vector_instance
from .vgg_helper import _create_attribute_list

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def vgg_to_sa(json_data, task, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .voc_helper import _get_voc_instances_from_xml
from .voc_helper import _iou

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def _generate_polygons(object_mask_path):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .voc_helper import _get_voc_instances_from_xml
from .voc_helper import _iou

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def _generate_polygons(object_mask_path):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from ..sa_json_helper import _create_sa_json
from ..sa_json_helper import _create_vector_instance

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def vott_to_sa(file_list, task, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from ..sa_json_helper import _create_sa_json
from ..sa_json_helper import _create_vector_instance

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def yolo_object_detection_to_sa_vector(data_path, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from .vott_converters.vott_to_sa_vector import vott_to_sa
from .yolo_converters.yolo_to_sa_vector import yolo_object_detection_to_sa_vector

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()

CONVERSION_ALGORITHMS = {
"from": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ....common import write_to_json
from ..baseStrategy import baseStrategy

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


class CocoBaseStrategy(baseStrategy):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ....common import write_to_json
from .coco_converter import CocoBaseStrategy

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


class CocoPanopticConverterStrategy(CocoBaseStrategy):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .coco_api import _maskfrRLE
from .coco_api import decode

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def annot_to_bitmask(annot):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .coco_api import _maskfrRLE
from .coco_api import decode

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def annot_to_polygon(annot):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .coco_api import _polytoMask
from .coco_api import _toBbox

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def sa_vector_to_coco_object_detection(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .dataloop_helper import _create_attributes_list
from .dataloop_helper import _update_classes_dict

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def dataloop_to_sa(input_dir, task, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from ..sa_json_helper import _create_sa_json
from ..sa_json_helper import _create_vector_instance

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def googlecloud_to_sa_vector(path, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def image_downloader(url, file_name):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .labelbox_helper import _create_classes_id_map
from .labelbox_helper import image_downloader

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def labelbox_instance_segmentation_to_sa_pixel(json_data, output_dir, input_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .labelbox_helper import _create_attributes_list
from .labelbox_helper import _create_classes_id_map

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def labelbox_to_sa(json_data, output_dir, task):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from ..sa_json_helper import _create_pixel_instance
from ..sa_json_helper import _create_sa_json

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def sagemaker_instance_segmentation_to_sa_pixel(data_path, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ..sa_json_helper import _create_sa_json
from ..sa_json_helper import _create_vector_instance

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def sagemaker_object_detection_to_sa_vector(data_path, main_key, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .supervisely_helper import _base64_to_polygon
from .supervisely_helper import _create_attribute_list

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def supervisely_instance_segmentation_to_sa_pixel(json_files, class_id_map, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .supervisely_helper import _base64_to_polygon
from .supervisely_helper import _create_attribute_list

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def supervisely_to_sa(json_files, class_id_map, task, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from ..sa_json_helper import _create_vector_instance
from .vgg_helper import _create_attribute_list

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def vgg_to_sa(json_data, task, output_dir):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .voc_helper import _get_voc_instances_from_xml
from .voc_helper import _iou

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def _generate_polygons(object_mask_path):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .voc_helper import _get_voc_instances_from_xml
from .voc_helper import _iou

logger = logging.getLogger("superannotate-python-sdk")
logger = logging.getLogger()


def _generate_polygons(object_mask_path):
Expand Down
Loading