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
Describe the bug
Hi, I get error when I run cellpose on the CLI setting --diameter 0. so the diameter gets estimated. I don't get the error when I supply a value for the diameter.
My versions and OS:
cellpose version: 3.1.0
platform: win32
python version: 3.10.15
torch version: 2.5.1+cu118
Run log
This is the full traceback
Traceback (most recent call last):
File "C:\Users\malieva\miniconda3\envs\cellpose\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\malieva\miniconda3\envs\cellpose\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\malieva\miniconda3\envs\cellpose\lib\site-packages\cellpose\__main__.py", line 358, in <module>
main()
File "C:\Users\malieva\miniconda3\envs\cellpose\lib\site-packages\cellpose\__main__.py", line 205, in main
out = model.eval(
File "C:\Users\malieva\miniconda3\envs\cellpose\lib\site-packages\cellpose\models.py", line 187, in eval
diams, _ = self.sz.eval(x, channels=channels, channel_axis=channel_axis,
File "C:\Users\malieva\miniconda3\envs\cellpose\lib\site-packages\cellpose\models.py", line 773, in eval
diam_style = self.diam_mean if (diam_style == 0 or
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
The text was updated successfully, but these errors were encountered:
Describe the bug
Hi, I get error when I run cellpose on the CLI setting
--diameter 0.
so the diameter gets estimated. I don't get the error when I supply a value for the diameter.To Reproduce
This is the commad I am running
My versions and OS:
cellpose version: 3.1.0
platform: win32
python version: 3.10.15
torch version: 2.5.1+cu118
Run log
This is the full traceback
The text was updated successfully, but these errors were encountered: