Skip to content

Commit 7db6457

Browse files
committed
✅ Address review comments
1 parent 57191b1 commit 7db6457

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

tests/engines/test_nucleus_detection_engine.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from tiatoolbox.annotation.storage import SQLiteStore
1515
from tiatoolbox.models.engine.nucleus_detector import (
1616
NucleusDetector,
17-
# _flatten_predictions_to_dask,
1817
)
1918
from tiatoolbox.utils import env_detection as toolbox_env
2019
from tiatoolbox.utils.misc import imwrite

tiatoolbox/models/engine/nucleus_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ def post_process_wsi(
465465
)
466466

467467
centroid_maps = da.map_overlap(
468-
rechunked_prediction_map,
469468
self.model.postproc,
469+
rechunked_prediction_map,
470470
min_distance=min_distance,
471471
threshold_abs=threshold_abs,
472472
threshold_rel=threshold_rel,

tiatoolbox/models/engine/semantic_segmentor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ def prepare_full_batch(
13691369
full_output_dict = {tuple(row): i for i, row in enumerate(full_output_locs)}
13701370
matches = [full_output_dict[tuple(row)] for row in batch_locs]
13711371

1372-
total_size = np.max(matches).astype(np.uint16) + 1
1372+
total_size = np.max(matches).astype(np.uint32) + 1
13731373

13741374
# Initialize full output array
13751375
full_batch_output = np.zeros(

0 commit comments

Comments
 (0)