Skip to content

Commit

Permalink
update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benmalef committed Oct 21, 2024
1 parent 16678f3 commit eebd280
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions GANDLF/data/inference_dataloader_histopath.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ def _basic_preprocessing(self):
mask = get_tissue_mask(np.asarray(
self._os_image.read_region(
(0, 0), self._mask_level, (mask_xdim, mask_ydim)
))
).convert('RGB'))
)

if self._selected_level != self._mask_level:
mask = resize(mask, (height, width))
mask = (mask > 0).astype(np.ubyte)
Expand Down

0 comments on commit eebd280

Please sign in to comment.