Closed romainGuiet closed 2 months ago
I have the same issue when using the GUI version of omnipose. For several of the models, the download is failing, e.g.
2024-02-21 16:40:20,333 [INFO] Downloading: "https://www.cellpose.org/models/bact_phase_omnitorch_0" to C:\Users\schlda00\.cellpose\models\bact_phase_omnitorch_0
https://www.cellpose.org/models/bact_phase_omnitorch_0 C:\Users\schlda00\.cellpose\models\bact_phase_omnitorch_0
ERROR: HTTP Error 500: INTERNAL SERVER ERROR
Thank you for your help! Best, Kai
Same issue here
2024-02-22 13:52:48,350 [INFO ] [models.py 61 cache_model_path ] Downloading: "https://www.cellpose.org/models/bact_phase_omnitorch_0" to C:\Users\elpad\.cellpose\models\bact_phase_omnitorch_0
https://www.cellpose.org/models/bact_phase_omnitorch_0 C:\Users\elpad\.cellpose\models\bact_phase_omnitorch_0
ERROR: HTTP Error 500: INTERNAL SERVER ERROR
WORKAROUND : Models can be found in this repository and manually added to C:\Users\**USERNAME**\.cellpose\models
or linux/mac equivalent folder.
Cheers
R
Thanks @romainGuiet! I also wanted to upload them somewhere but I recently formatted all of my computers and I had no trace of the models anywhere 🤦
Hi, I have just tried to download the bacterial model and got the following error:
models.CellposeModel(pretrained_model='/content/models/bact_phase_omnitorch_0')
model = models.CellposeModel(gpu=use_GPU)
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
[<ipython-input-10-6dec1cfe5f2f>](https://localhost:8080/#) in <cell line: 2>()
1 #model_name = 'bact_phase_omni'
----> 2 models.CellposeModel(pretrained_model='/content/models/bact_phase_omnitorch_0')
3
4 model = models.CellposeModel(gpu=use_GPU)
3 frames
[/usr/local/lib/python3.10/dist-packages/torch/serialization.py](https://localhost:8080/#) in __init__(self, name_or_buffer)
445 class _open_zipfile_reader(_opener):
446 def __init__(self, name_or_buffer) -> None:
--> 447 super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
448
449
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
Does anyone know how to solve it?
Hi @phisanti ,
Does anyone know how to solve it?
You can use the workaround : https://github.com/kevinjohncutler/omnipose/issues/79#issuecomment-1966104372
Sorry I did not see this everyone! Carsen took the omnipose models off the Cellpose server to save space. She will put them back on for a time while I convert to using the models hosted on OSF. Thank you very much @romainGuiet for helping out.
Hi all, does anybody have the size_cyto2_omnitorch_0.npy
model? It's also missing on the cellpose website and on the repository made by @romainGuiet. Thank you very much!
Hi @ElpadoCan ,
does anybody have the size_cyto2_omnitorch_0.npy model?
You're lucky 🥳, I found it in my model
folder, please unzip this size_cyto2_omnitorch_0.zip
It's also missing on the cellpose website and on the repository made by @romainGuiet.
I didn't create the repository 😬 I just managed to find it in the documentation, it was all @kevinjohncutler job! Indeed it would be worthy to add it there too...
Cheers,
R
Nice @romainGuiet thank you very much! It's my lucky day 😎
Carsen and I figured out a way to redirect the old download requests, so this issue should be solved for all prior versions including the one used for the cellprofiler plugin.
Dear omnipose team,
When running :
python -m omnipose --dir DIR --pretrained_model bact_fluor_omni --diameter 50.0 --omni --cluster --save_tif --no_npy --use_gpu --verbose
it tries to download the model but fails :
I just tried and I could download https://www.cellpose.org/models/cyto_0 without an issue ...
Best
Romain