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

Maximum amount of segmented cells bounded from segmentation output file format (16-bit unsigned integer TIFF images) #207

Open
asom opened this issue Aug 2, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@asom
Copy link

asom commented Aug 2, 2023

Hi,
I am running the following command:
steinbock segment deepcell --minmax

On a big image, it works fine and segments the image quite well. However, after the segmentation reaches the 65536 cells, it assigns to all the remaining cells the same number(id). Is there any way to circumvent that? For example get as output a 32-but TIFF file?

@nilseling
Copy link
Contributor

Hi @asom

Have a look at #132 for how to change the mask bit encoding. @Milad4849 could you please document this somewhere visible? Let's leave this issue open until it's in the docs.

@asom
Copy link
Author

asom commented Aug 5, 2023

Thanks @nilseling for your quick response!

Trying to replicate it, running 0.16.1 version, I encounter continiously the same error:

[0m could not open ****my_folder***/STEINBOCK_MASK_DTYPE=uint32: failed to retrieve path for ****my_folder***/STEINBOCK_MASK_DTYPE=uint32: lstat ****my_folder***/STEINBOCK_MASK_DTYPE=uint32: no such file or directory

Somehow recognizes the "STEINBOCK_MASK_DTYPE" as folder extension.

The command I am running is the following:

singularity run -e STEINBOCK_MASK_DTYPE=uint32 -B /sc:/sc docker://ghcr.io/bodenmillergroup/steinbock:0.16.1 segment deepcell --img img --minmax --panel panel.csv -o masks

I would be more than grateful, if you could give me some further insights.

@jwindhager
Copy link
Contributor

Since you're using Singularity, you'll need to specify the STEINBOCK_MASK_DTYPE environment variable with --env:

singularity run --env STEINBOCK_MASK_DTYPE=uint32 -B /sc:/sc docker://ghcr.io/bodenmillergroup/steinbock:0.16.1 segment deepcell --img img --minmax --panel panel.csv -o masks

Note that this will only work with Singularity 3.6 or newer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants