HenriquesLab / ZeroCostDL4Mic

ZeroCostDL4Mic: A Google Colab based no-cost toolbox to explore Deep-Learning in Microscopy
MIT License
558 stars 129 forks source link

Training issues #218

Open carolche opened 2 years ago

carolche commented 2 years ago

Hi Everyone,

I'm experiencing the same problem as a previous user (mafsousa, March 2022). I tried training my own model on the Cellpose/Omnipose notebook as well as command line (from kevinjohncutler's github), but I've been getting errors. I'm using the following:

guijacquemet commented 2 years ago

Hi @carolche

Many thanks for reaching out! It looks like you may have an issue with your training dataset. You indicate that you saved your segmentation ground truth as binary images? Do you have only one structure to segment per image or multiple ? If you have more than one structure (ie multiple cells,), Cellpose would require label images to train.

carolche commented 2 years ago

@guijacquemet Yes, you are entirely right! I forgot to label the images! But alas, I still get an error.......

Screen Shot 2022-11-01 at 15 02 18

Thanks for your help.

guijacquemet commented 2 years ago

Hi @carolche

The error message shows you have less than 5 labels per image in your training dataset. Is this the case?

Maybe you could share your dataset?

Cheers

Guillaume

carolche commented 1 year ago

Hello @guijacquemet

so sorry for the late reply! I really appreciate your help. I was able to figure what the problem was. I wasn't labeling the masks appropriately. I tried a few different things and what worked best was to use ImageJ, adaptive threshold to make a binary mask, then threshold again, followed by counting and creating an ROI map. and it's working so far..... Thank you for all your help! Keep up the good work!

Caroline

Burt3 commented 1 year ago

Hi @carolche,

Would you please be able to provide an explanation to how you solved this issue (FileNotFoundError), as I am experiencing the exact same issue! I am currently producing a PNG mask image using the Cellpose GUI to complement my source images. Thanks:)