Open SalimSoria opened 2 months ago
Hi @SalimSoria UnMICST can possibly work with Syto13 depending on how similar it looks to Hoechst/DAPI. Just specify the channel number as an option in the params file. Both cellpose and UnMICST require a certain amount of RAM allocation for the output masks. This is independent on your GPU memory. How much RAM have you allocated and available to use?
When you downsampled the image, this allowed your image to fit into RAM however this may not yield optimal results since the pixel size between your image and the model's training data might be different. UnMICST is trained at 0.65 microns per pixel. Please confirm your image's pixel size. If it is still running for several hours, it is likely that we haven't fully solved your GPU driver issue and it is falling back on CPU (slower but will likely eventually finish).
Hi @clarenceyapp
After about 5 hours, my tissue image passed the segmentation:worker (unmicst-1) step successfully then failed at the segmentation:s3seg. Any thoughts on what this could be?
Below is the .command.log
:
Matplotlib is building the font cache; this may take a moment.
/app/S3segmenter.py:18: DeprecationWarning: Please use `uniform_filter` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated.
from scipy.ndimage.filters import uniform_filter
Traceback (most recent call last):
File "/app/S3segmenter.py", line 484, in <module>
tissueCrop =tifffile.imread(imagePath,key=iChan)
File "/usr/local/lib/python3.8/site-packages/tifffile/tifffile.py", line 800, in imread
return tif.asarray(**kwargs)
File "/usr/local/lib/python3.8/site-packages/tifffile/tifffile.py", line 3128, in asarray
pages = self.pages._getlist(key)
File "/usr/local/lib/python3.8/site-packages/tifffile/tifffile.py", line 5311, in _getlist
return [getitem(key)]
File "/usr/local/lib/python3.8/site-packages/tifffile/tifffile.py", line 5360, in _getitem
self._seek(key)
File "/usr/local/lib/python3.8/site-packages/tifffile/tifffile.py", line 5281, in _seek
raise IndexError('index out of range')
IndexError: index out of range
@SalimSoria this appears similar to this thread. https://forum.image.sc/t/the-error-in-processing-s3seg/87313/55 There are two issues:
I'm currently working with NanoString GeoMx ome.tiff whole-slide IF images containing the following four channels: FITC, Cy3, TexasRed, and Cy5. Ideally, I would want to use MCMICRO as the end-to-end pipeline for marker quantification, but my current goal is to simply create a segmentation mask for my tissues.
I've now gotten Exemplar-001 and Exemplar-002 to complete using the Unmicst segmentation module. I haven't been able to do this on my image.
Some of my concerns of the tissue are:
nump.core_exceptions.MemoryError
with cellpose and unmicst stating that it can't allocate an X amount of GiB. Is there any way to crop or reduce the area where unmicst is applied? My ome.tiff images contains a lot of blank space that separates the two sections of tissue. However, once I used thescalingFactor
parameter inparams.yml
, the image no longer produced an error but instead was stuck here for multiple hours:Here is some of the metadata for one of my images:
Here was the output log when I tried using cellpose and the run failed: