Skip to content

Single channel uint8 input fails with low_contrast_enhancement=True #33

@rossbar

Description

@rossbar

MRE:

>>> from cellSAM.cellsam_pipeline import cellsam_pipeline
>>> import imageio.v3 as iio
>>> img = iio.imread("sample_imgs/ep_micro.png")
>>> mask = cellsam_pipeline(img, low_contrast_enhancement=True, use_wsi=True, visualize=False, gauge_cell_size=False)
Traceback (most recent call last)
   ...
ValueError: Images of type float must be between -1 and 1

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