Closed ashishshel closed 1 year ago
From the code snippet above, the immediate thing that jumps out is your single_mask.shape
has 0's in the first and last dimension, implying the array is empty. That explains the blank images. Re: how you ended up with 0-D arrays - that is likely a result upstream in the processing pipeline - the indexing step (single_mask = overlay_data[0, :, :, 0]
) should not result in a 0-D array, so there must be some other components to your pipeline that are modifying things unexepctedly. I'd suggest reviewing the pipeline carefully and consider raising an issue to whichever wrapper for the model you're using.
As it stands, this doesn't strike me as a mesmer bug so I will close this. Feel free to reopen if there is an un-wrapped (i.e. non-steinbock) minimal reproducing example.
Describe the bug I have currently set up the Mesmer standalone pipeline and I'm having issues with generating cell segmentation mask files (tiff format). I have separately run Mesmer using Steinbock (on a docker container )and I'm able to generate these mask files (attached - image with grey dots). I have written a few lines of code to generate a 16bit mask file in the Standalone Mesmer pipeline that I am pasting below. However, this gives me a blank file. Could you please suggest how I could generate the same mask file as is generated through Steinbock-Mesmer