Replies: 2 comments 7 replies
-
Hello, @Peregalli! AFAIK, FAST does not have support to store the softmax output as a pyramidal image. If you wish to make such a pyramidal image, you will have to run your network on the WSI and extract the softmax output as individual image patches and stitch these together yourself. Note that this may be tricky to do if you are doing overlapping inference. I have modified your first script which should extract patches at the requested patch size, and then you can do whatever you want with these later on:
Some notes:
Hope it helps! Let me know if you have further questions. EDIT: If you wish to get the image patch and softmax output pairs, you could try to do something like this in the loop after the
But it might be that the extracted image patches will not be on-to-one with the pred patches, but give this a try first. |
Beta Was this translation helpful? Give feedback.
-
Hi As @andreped says, the TIFF backend in FAST does not support floats yet, which we need for tensors with giga resolution. |
Beta Was this translation helpful? Give feedback.
-
Hi!
My aim is to have a probability segmentation output of the whole WSI and export it as a numpy array to use it as an image. I have to separate scripts. The first one uses the colon the colon epithelium segmentation HE model with my WSI and saves it in a .tiff file.
The second script imports .tiff segmentation and extracts aligned patches from the original WSI and segmentation inference and saves them as .png.
I would like to get the predictions as a probability (or a heatmap) without output thresholding. My problem is when I import .tiff file is already binary. I have seen that there is an attribute
heatmapOutput
inSegmentationNetwork
class but when I set that parameter asTrue
, I can not save the segmentation correctly. Another thing is that I am usinggetPatchAsImage
instead ofgetLevelAsImage
.This is my code to get segmentation:
And this is how I am extracting patches
In this second script I am using two segmentations, one from colon epithelium model and the other from nuclei segmentation, however for both segmentation scripts I have the same problem. I would greatly appreciate your help!
Beta Was this translation helpful? Give feedback.
All reactions