Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segment_cellular_images should always return the same output type #13

Open
msschwartz21 opened this issue Apr 3, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@msschwartz21
Copy link
Member

cellSAM/cellSAM/model.py

Lines 98 to 100 in 74ebceb

if preds is None:
print("No cells detected.")
return None

In the case where there are no cells, segment_cellular_images returns None which is different from the standard output of a tuple of length 3. This immediately breaks any downstream processes that rely on a standard output shape. Instead of returning None, I would return a mask of zeros and similarly "empty" versions of the two other outputs.

@msschwartz21 msschwartz21 added the bug Something isn't working label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant