Skip to content

Commit 1bb8627

Browse files
committed
Increase default ROI size to 2048
Pass roi_size through infer_omero_wsi pipeline and update package version to 0.3.2.
1 parent 7026404 commit 1bb8627

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/shell/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# SPDX-License-Identifier: MIT
44
"""Version information for shell."""
55

6-
__version__ = "0.3.1"
6+
__version__ = "0.3.2"

src/shell/infer_omero_wsi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,7 @@ def infer_omero_wsi(
16891689
save_eho=save_eho,
16901690
output_path=output_path,
16911691
tile_overlap=tile_overlap,
1692+
roi_size=inference_tile_size,
16921693
sw_overlap=sw_overlap,
16931694
num_fetch_workers=num_fetch_workers,
16941695
)
@@ -1736,6 +1737,7 @@ def _run_pipeline(
17361737
save_eho: str | None,
17371738
output_path: str,
17381739
tile_overlap: int,
1740+
roi_size: int,
17391741
sw_overlap: float,
17401742
num_fetch_workers: int = 4,
17411743
) -> np.ndarray:
@@ -1842,6 +1844,7 @@ def _run_pipeline(
18421844
tile_eho,
18431845
model,
18441846
device,
1847+
roi_size=(roi_size, roi_size),
18451848
overlap=sw_overlap,
18461849
)
18471850
del tile_eho

src/shell/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# ---------------------------------------------------------------------------
4141
# Default inference parameters
4242
# ---------------------------------------------------------------------------
43-
VAL_ROI_SIZE: tuple[int, int] = (512, 512)
43+
VAL_ROI_SIZE: tuple[int, int] = (2048, 2048)
4444
VAL_SW_BATCH: int = 16
4545
VAL_SW_OVERLAP: float = 0.25
4646

0 commit comments

Comments
 (0)