Skip to content

Commit

Permalink
Fix openvino import error due to Tiler init import (#2015)
Browse files Browse the repository at this point in the history
Remove init import for Tiler to prevent OpenVINO import
  • Loading branch information
goodsong81 authored Apr 17, 2023
1 parent cbce4e1 commit 823a66b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion otx/algorithms/detection/adapters/openvino/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
IOptimizationTask,
OptimizationType,
)
from otx.api.utils import Tiler
from otx.api.utils.dataset_utils import add_saliency_maps_to_dataset_item
from otx.api.utils.detection_utils import detection2array
from otx.api.utils.tiler import Tiler

logger = get_logger()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from otx.api.entities.label_schema import LabelSchemaEntity
from otx.api.entities.model_template import TaskType
from otx.api.serialization.label_mapper import LabelSchemaMapper
from otx.api.utils import Tiler
from otx.api.utils.tiler import Tiler
from otx.api.utils.detection_utils import detection2array

from .utils import get_model_path, get_parameters
Expand Down
5 changes: 0 additions & 5 deletions otx/api/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
# Copyright (C) 2021-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

from .async_pipeline import OTXDetectionAsyncPipeline
from .tiler import Tiler

__all__ = ["Tiler", "OTXDetectionAsyncPipeline"]

0 comments on commit 823a66b

Please sign in to comment.