Skip to content

Commit 22aaf2a

Browse files
authored
Fix invalid import structures in otx.api (#2383)
Update tiler.py
1 parent 7319b20 commit 22aaf2a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/otx/api/utils/tiler.py

-5
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@
1313

1414
from openvino.model_api.models.utils import DetectionResult
1515

16-
from otx.algorithms.common.utils.logger import get_logger
1716
from otx.api.utils.async_pipeline import OTXDetectionAsyncPipeline
1817
from otx.api.utils.detection_utils import detection2array
1918
from otx.api.utils.nms import multiclass_nms
2019
from otx.api.utils.dataset_utils import non_linear_normalization
2120

22-
logger = get_logger()
23-
2421

2522
class Tiler:
2623
"""Tile Image into (non)overlapping Patches. Images are tiled in order to efficiently process large images.
@@ -78,8 +75,6 @@ def tile(self, image: np.ndarray) -> List[List[int]]:
7875
x2 = min(loc_j + self.tile_size, width)
7976
y2 = min(loc_i + self.tile_size, height)
8077
coords.append([loc_j, loc_i, x2, y2])
81-
logger.debug(f"------------------------> Num tiles: {len(coords)}")
82-
logger.debug(f"------------------------> {height}x{width} ~ {self.tile_size}")
8378
return coords
8479

8580
def filter_tiles_by_objectness(

0 commit comments

Comments
 (0)