Skip to content

Commit

Permalink
Update GANDLF/data/inference_dataloader_histopath.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sarthak Pati <[email protected]>
  • Loading branch information
benmalef and sarthakpati authored Oct 31, 2024
1 parent adcd561 commit 9185b70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GANDLF/data/inference_dataloader_histopath.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def _basic_preprocessing(self):
try:
mask_xdim, mask_ydim = self._os_image.level_dimensions[self._mask_level]
mask = get_tissue_mask(
# this is needed because openslide returns an RGBA image
np.asarray(
self._os_image.read_region(
(0, 0), self._mask_level, (mask_xdim, mask_ydim)
Expand Down

0 comments on commit 9185b70

Please sign in to comment.