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

Calculate memory needed #1002

Open
laurend opened this issue Aug 20, 2024 · 2 comments
Open

Calculate memory needed #1002

laurend opened this issue Aug 20, 2024 · 2 comments
Labels
memory issues with RAM question Further information is requested

Comments

@laurend
Copy link

laurend commented Aug 20, 2024

When applying a custom model to a ~3 GB 3D data set (1000x1024x ~1500 slices, 16-bit grayscale), I encountered issues with running out of memory.

I've seen several issues on this topic, but I can no longer find a specific comment where someone gave a way to calculate how much memory is needed to process data of a given size. Could someone share with me how to do this? I have access to clusters at my university and need to specify how much memory I need for various data sets, which can be up to 20GB.

My PC has 64 GB memory cpu and 24GB gpu. It's not clear to me which memory is used when cellpose is called using GPU or also why it's so much higher than the dataset size. I apologize if this is a naive question.

Thanks!

@carsen-stringer carsen-stringer added question Further information is requested memory issues with RAM labels Sep 9, 2024
@carsen-stringer
Copy link
Member

The main memory usage on the CPU RAM will be for saving the flows. It will be 6x the dataset size for all the flows + in float64 so 4x more than that in your case.

@carsen-stringer
Copy link
Member

I noticed excessive memory usage in 3D and it should be resolved now, you likely do still need around 8x the image size in terms of ram. you can install the latest version with the update: pip install git+https://github.com/mouseland/cellpose.git

I will also create plots so people know memory required by image size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
memory issues with RAM question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants