Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cellpose - two models not found #321

Open
Marien-kaefer opened this issue Jul 29, 2024 · 0 comments
Open

Cellpose - two models not found #321

Marien-kaefer opened this issue Jul 29, 2024 · 0 comments

Comments

@Marien-kaefer
Copy link

Hi there,

I am trying to use pre-trained Cellpose for the segmentation of bacteria in transmitted light images in the Cellpose 2D colab notebook. All is well until using the models in step 6.

Selecting the model "Cytoplasm2_Omnipose", I get the following error message:
`WARNING:cellpose.models:model_type does not exist, using default model

HTTPError Traceback (most recent call last)
in <cell line: 82>()
82 if model_choice == "Cytoplasm2_Omnipose":
83 channels=[segment_channel,nuclear_channel]
---> 84 model = models.Cellpose(gpu=True, model_type="cyto2_omni")
85 print("Cytoplasm2_Omnipose model enabled")
86

9 frames
/usr/lib/python3.10/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
641 class HTTPDefaultErrorHandler(BaseHandler):
642 def http_error_default(self, req, fp, code, msg, hdrs):
--> 643 raise HTTPError(req.full_url, code, msg, hdrs, fp)
644
645 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 500: INTERNAL SERVER ERROR`

Selecting the model "Bacteria_Omnipose", I get the following error message:

`WARNING:cellpose.models:model_type does not exist, using default model

HTTPError Traceback (most recent call last)
in <cell line: 97>()
97 if model_choice == "Bacteria_Omnipose":
98 channels=[segment_channel,nuclear_channel]
---> 99 model = models.Cellpose(gpu=True, model_type="bact_omni")
100 Object_diameter = 0
101 print("Bacteria_omnipose model enabled")

9 frames
/usr/lib/python3.10/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
641 class HTTPDefaultErrorHandler(BaseHandler):
642 def http_error_default(self, req, fp, code, msg, hdrs):
--> 643 raise HTTPError(req.full_url, code, msg, hdrs, fp)
644
645 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 500: INTERNAL SERVER ERROR`

Other models, e.g. Nuclei or Cytoplasm2 are fine and generate segmentations. The images are single focal plane grey scale, single channel tif images.

Any help would be much appreciated. Thanks!

Marie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant