Skip to content

Commit

Permalink
update inference_loop.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benmalef committed Oct 23, 2024
1 parent fda1ad9 commit 730b2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GANDLF/data/inference_dataloader_histopath.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def __getitem__(self, idx):
self._selected_level,
(self._patch_size[0], self._patch_size[1]),
# as_array=True, openslide-python doesn't return a ndarray, return an image
)
).convert('RGB')

patch = np.asarray(patch) # convert the image to ndarray
# this is to ensure that channels come at the beginning
Expand Down

0 comments on commit 730b2e8

Please sign in to comment.