I'm trying to pre-process WSI images using PyTorch. I have stored the WSI images in google drive and mounted it to my google colab pro account(which is having 35GB ram) and trying to read them. To read the images, I'm using openslides. Images were in .tiff
format.
wsi = openslide.open_slide(path)
The WSI images were around the average size of 100k x 100k pixels and were taken from miccai2020 pathology challenge. When I run the code, the colab runs out of ram and restarts the session. As I noticed the ram runs out while openslide is trying to read the WSI image from the given path. Can anyone identify the issue and give me a solution?