You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2025-02-11 09:26:49,094 [INFO] WRITING LOG OUTPUT TO C:\Users\guiet\.cellpose\run.log
2025-02-11 09:26:49,095 [INFO]
cellpose version: 3.1.0
platform: win32
python version: 3.8.20
torch version: 2.4.1
2025-02-11 09:26:49,436 [INFO] ** TORCH CUDA version installed and working. **
2025-02-11 09:26:49,437 [INFO] >>>> using GPU (CUDA)
2025-02-11 09:26:49,446 [INFO] >>>> running cellpose on 1 images using chan_to_seg GRAY and chan (opt) NONE
2025-02-11 09:26:49,448 [INFO] >> denoise_cyto3 << model set to be used
D:\conda\conda-envs\cellpose-310\lib\site-packages\cellpose\resnet_torch.py:271: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
state_dict = torch.load(filename, map_location=device)
2025-02-11 09:26:49,717 [INFO] >>>> model diam_mean = 30.000 (ROIs rescaled to this size during training)
2025-02-11 09:26:49,718 [INFO] >> cyto3 << model set to be used
2025-02-11 09:26:49,783 [INFO] >>>> loading model C:\Users\guiet\.cellpose\models\cyto3
2025-02-11 09:26:49,859 [INFO] >>>> model diam_mean = 30.000 (ROIs rescaled to this size during training)
2025-02-11 09:26:49,859 [INFO] >>>> cannot auto-estimate diameter for image restoration
Traceback (most recent call last):
File "D:\conda\conda-envs\cellpose-310\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\conda\conda-envs\cellpose-310\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\conda\conda-envs\cellpose-310\lib\site-packages\cellpose\__main__.py", line 358, in <module>
main()
File "D:\conda\conda-envs\cellpose-310\lib\site-packages\cellpose\__main__.py", line 195, in main
diameter = model.diam_labels
AttributeError: 'CellposeDenoiseModel' object has no attribute 'diam_labels'
Thank you for your help,
Best,
Romain
The text was updated successfully, but these errors were encountered:
Describe the bug
Can't run a restore from CLI
To Reproduce
or
get error :
__main__.py: error: unrecognized arguments: --model_type cyto3
NOTE :
a minimal running line for cellpose segmentation without the restoration :
If I remove
--model_type cyto3
, like :I get the error :
Thank you for your help,
Best,
Romain
The text was updated successfully, but these errors were encountered: