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

Segmentation fault with large image segmentation #628

Open
jonhsussman opened this issue Dec 4, 2022 · 1 comment
Open

Segmentation fault with large image segmentation #628

jonhsussman opened this issue Dec 4, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jonhsussman
Copy link

jonhsussman commented Dec 4, 2022

Hello,

I am using Mesmer to segment large images from CODEX multiplexed imaging. This has worked well for all of the data, but since beginning to generate images of larger size, we are running into a segmentation fault error on images with sizes greater than about 33k X 33k, which occurs after a couple of hours of running. It is hard to difficult to pinpoint the exact size of image that begins to cause this error, but it works for images of about 31k X 31k just with a very long runtime (~8 hours). We are running app.predict(image, image_mpp=0.5). Considering the possibility that this could be an issue of RAM, the issue still persists after doubling the allotted RAM to 900 GB.

First, this is the output log for a successful run:
image

Then, this is the output for run which causes the error:
image

Has anyone else encountered this error on larger images?

@jonhsussman jonhsussman added the bug Something isn't working label Dec 4, 2022
@ngreenwald
Copy link
Collaborator

Hey John,
For an image that large, I would expect you would have a much easier time processing it in smaller crops of say 10k x 10k or 20k x 20k pixels. You wouldn't have very many cells at the boundary to worry about overlaps, so you would likely get a performance speedup without sacrificing much, if any, accuracy. Maybe @msschwartz21 has some ideas about the error you're seeing so that we can continue to expand the image size supported with the model.

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

2 participants