cellpose icon indicating copy to clipboard operation
cellpose copied to clipboard

[BUG] Fail to download "older" models

Open romainGuiet opened this issue 4 months ago • 0 comments

Dear @carsen-stringer

Describe the bug Download models using a script works for some but fails for others. From the models page on the documentation, I could find this list of model names :

MODEL_LIST = [ 'cyto3' , 'tissuenet_cp3', "livecell_cp3", "yeast_PhC_cp3", "yeast_BF_cp3", "bact_phase_cp3", "bact_fluor_cp3", "deepbacs_cp3", "cyto2_cp3", 'cyto2' , 'cyto', 
"cytotorch_0", "cyto2torch_0", "size_cytotorch_0.npy","size_cytotorch_0", "size_cyto2torch_0.npy","size_cyto2torch_0", "size_cyto3.npy","size_cyto3",  "cyto_0", "nuclei_0", "size_cyto_0.npy", "size_nuclei_0.npy" ,"CP", "CPx", "TN1", "TN2", "TN3", "LC1", "LC2", "LC3", "LC4", "style_choice.npy"
               ]

To Reproduce but when running the script below

from cellpose import models

MODEL_LIST = [ 'cyto3' , 'tissuenet_cp3' ,"livecell_cp3","yeast_PhC_cp3","yeast_BF_cp3","bact_phase_cp3","bact_fluor_cp3","deepbacs_cp3","cyto2_cp3",
                'cyto2' , 'cyto', "cytotorch_0", "cyto2torch_0", "size_cytotorch_0.npy","size_cytotorch_0", "size_cyto2torch_0.npy","size_cyto2torch_0", "size_cyto3.npy","size_cyto3",
                "cyto_0", "nuclei_0", "size_cyto_0.npy", "size_nuclei_0.npy" ,"CP", "CPx", "TN1", "TN2", "TN3", "LC1", "LC2", "LC3", "LC4", "style_choice.npy"
               ]

for m in MODEL_LIST:
    print(m)
    models.CellposeModel(model_type=m)
    print("=====")

Some are downloaded but the others return model_type does not exist, using default model See screenshot below image

Thank you for your help

Romain

romainGuiet avatar Oct 08 '24 14:10 romainGuiet