Skip to content

Commit

Permalink
Fix invalid import structures in otx.api (#2383)
Browse files Browse the repository at this point in the history
Update tiler.py
  • Loading branch information
harimkang authored Jul 21, 2023
1 parent 7319b20 commit 22aaf2a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/otx/api/utils/tiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@

from openvino.model_api.models.utils import DetectionResult

from otx.algorithms.common.utils.logger import get_logger
from otx.api.utils.async_pipeline import OTXDetectionAsyncPipeline
from otx.api.utils.detection_utils import detection2array
from otx.api.utils.nms import multiclass_nms
from otx.api.utils.dataset_utils import non_linear_normalization

logger = get_logger()


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

def filter_tiles_by_objectness(
Expand Down

0 comments on commit 22aaf2a

Please sign in to comment.