Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid import structures in otx.api #2383

Merged
merged 1 commit into from
Jul 21, 2023
Merged
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
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