Skip to content

[BUG] Unable to process simple 2D image in GUI #1475

Closed

Description

@JensWendt

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

Running cellpose-gui with version 4.2.0, I am unable to process simple 2D images (1 channel).
I tried with multiple of my own "sample" images and then with the "official" blobs sample to make sure it was not something weird in my .tif-headers.

To Reproduce

  • Load up Fiji
  • Samples > blobs
  • export as .tif
  • start cellpose GUI
  • load blobs.tif
  • run segmenation with defaults

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

C:\Users\MiN_Acc2\Desktop>conda.bat activate cellpose
[GUI INFO] : WRITING LOG OUTPUT TO C:\Users\MiN_Acc2\.cellpose\run.log

cellpose version:       4.2.0
platform:               win32
python version:         3.11.15
torch version:          2.7.1
2026-06-16 14:27:55,738 [io INFO] WRITING LOG OUTPUT TO C:\Users\MiN_Acc2\.cellpose\run.log
2026-06-16 14:27:55,739 [io INFO]
cellpose version:       4.2.0
platform:               win32
python version:         3.11.15
torch version:          2.7.1
2026-06-16 14:27:56,409 [core INFO] ** TORCH CUDA version installed and working. **
GUI_INFO: loading image: C:/Users/MiN_Acc2/Desktop/blobs.tif
2026-06-16 14:28:03,100 [io INFO]  : image shape: (254, 256, 1)
(1, 254, 256, 1)
{'lowhigh': None, 'percentile': [1.0, 99.0], 'normalize': True, 'norm3D': True, 'sharpen_radius': 0.0, 'smooth_radius': 0.0, 'tile_norm_blocksize': 0.0, 'tile_norm_smooth3D': 0.0, 'invert': False}
2026-06-16 14:28:09,047 [core INFO] ** TORCH CUDA version installed and working. **
2026-06-16 14:28:09,048 [core INFO] >>>> using GPU (CUDA)
2026-06-16 14:28:12,240 [models INFO] >>>> loading model C:\Users\Public\.cellpose\models\cpsam_v2
{'lowhigh': None, 'percentile': [1.0, 99.0], 'normalize': True, 'norm3D': True, 'sharpen_radius': 0.0, 'smooth_radius': 0.0, 'tile_norm_blocksize': 0.0, 'tile_norm_smooth3D': 0.0, 'invert': False}
NET ERROR: 2D image provided, but channel_axis is not None. Set channel_axis=None to process 2D images of ndim=2.

Might be related to #1402 , but I am unsure.

When I am running the same steps as above on cellpose=3.1.1.3 (both in different conda envs) everything works smoothly.

Activity

  1. mrariden commented on Jun 17, 2026

    @mrariden
    Collaborator

    This should be resolved with cellpose 4.2.1.1, please try to update with

    pip install --upgrade cellpose

    and check back if that works.

  2. JensWendt commented on Jun 17, 2026

    @JensWendt
    Author

    solved it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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