MouseLand / cellpose

a generalist algorithm for cellular segmentation with human-in-the-loop capabilities
https://www.cellpose.org/
BSD 3-Clause "New" or "Revised" License
1.4k stars 403 forks source link

image segmentation problem #258

Closed iyasasse closed 3 years ago

iyasasse commented 3 years ago

I have confocal microscope images. I run this segmentation code "python -m cellpose --dir ~ --pretrained_model cyto --chan 2 --diameter 50 --save_png --no_npy --cellprob_threshold 0.0 --fast_mode". I do not get good segmentation of my cells, some are missed while some are wrongly identified. please is there some thing I can do to get better segmentation? I have tried to varry the diameter but segmentation is not still good. I have upload an example with its mask/output 22042021 lif - M105_PV_GFP_S1_cp_masks

22042021 lif - M105_PV_GFP_S1_cp_output 22042021 lif - M105_PV_GFP_S1

carsen-stringer commented 3 years ago

can you try turning off flow_threshold (set flow_threshold=0), also you can try turning off fast mode to improve the segmentation

iyasasse commented 3 years ago

Dear Carsen,

Thank you for your reply and suggestion. It was good but we still are not able to get good segmentation for our images. So we wish to do 3D-segmentation now.

We have tried to run 3D using the cyto model, it runs for a very long time and return no masks. We cannot figure out what the problem can be.

Our images are of size 2352x2352.

I had wished to send you a copy but it's too large to send because it can not attach.

Please we would be glad to receive suggestions from you on how to proceed. I can also attach a file to my former issue if you wish.

Best regards,

Iya Sasse Ruth Nyaba

On Wed, May 5, 2021, 3:11 PM carsen-stringer @.***> wrote:

can you try turning off flow_threshold (set flow_threshold=0), also you can try turning off fast mode to improve the segmentation

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MouseLand/cellpose/issues/258#issuecomment-832675168, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT6MNREBUPBOJAVES2MPPHTTME7ZVANCNFSM44DRFTHQ .

iyasasse commented 3 years ago

Dear Carsen,

Thank you for your help on the segmentation of our problem last time.

We also wish to do 3D segmentation but we encountered the following issues. Firstly, the segmentation runs for very long times and secondly we get a message that 'there is insufficient space to save the results'

Our images are generated using confocal microscope and of size '2352x2352' pixels.

Can help us again with any further tips or maybe we need to use different parameters. For the parameters, we used cell diameter of 45, cellprobability threshold of 0.2 and flowthreshold of 0.

Best regards,

Iya

On Wed, 5 May 2021 at 14:11, carsen-stringer @.***> wrote:

can you try turning off flow_threshold (set flow_threshold=0), also you can try turning off fast mode to improve the segmentation

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MouseLand/cellpose/issues/258#issuecomment-832675168, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT6MNREBUPBOJAVES2MPPHTTME7ZVANCNFSM44DRFTHQ .

iyasasse commented 3 years ago

Dear Carsen,

sorry to send this in a different mail.

Find below a link to a sample of our Tif image.

https://drive.google.com/file/d/12ESyyzmUMRGFnc1prIQ2poVWuuaH4oMy/view?usp=sharing

I hope to hear from you soon,

Iya

carsen-stringer commented 3 years ago

if you are having issues with 3D segmentations, I recommend trying the stitch_threshold parameter: https://cellpose.readthedocs.io/en/latest/settings.html#d-settings. going forward, we recommend usage questions, not bugs, to be asked here: https://forum.image.sc/tag/cellpose

going to close this issue for now, let us know if you have any questions