Skip to content

[BUG] #1385

@aryehw

Description

@aryehw

Before you fill out this form:

Did you review the FAQ?

Did you look through previous (open AND closed) issues posted on GH?

Now fill this form out completely:

Describe the bug

The problem is that when I try to change the flow threshold (and probably and of the additional setting in Segmentation), I get the following error:

    2025-12-22 18:52:00,942 [INFO] computing masks with cell prob=0.000, flow error threshold=0.000
    Traceback (most recent call last):
    File "/home/amw/anaconda3/envs/cellpose/lib/python3.10/site-packages/cellpose/gui/gui.py", line 1870, in compute_cprob
    maski = dynamics.compute_masks_and_clean(
    AttributeError: module 'cellpose.dynamics' has no attribute 'compute_masks_and_clean

To Reproduce

Steps to reproduce the behavior:
run python -m cellpose
drag RGB image into GUI
run CPSAM
enter any value into flow threshold and press enter.

Run log

Please post all command line/notebook output for us to understand the problem. For this please make sure you are running with verbose mode on. So command line, with --verbose tag, or in a notebook first run

In the problem description I posted the relevant command line output , when using --verbose.

system info:

pop os 22.04
fresh conda env running python 3.10
python -m pip install cellpose[GUI]

chatgpt claims that this is due to a mismatch in the GUI version and the cellpose version.
However, its suggestions for a fix (basically, reinstall and make sure there are no old versions around) do not work.

Additional info:

$python -m cellpose --version

cellpose version: 4.0.8
platform: linux
python version: 3.10.19
torch version: 2.9.1+cu128

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions