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

[BUG] Memory Leak maybe? #921

Open
mayishazn opened this issue Apr 19, 2024 · 1 comment
Open

[BUG] Memory Leak maybe? #921

mayishazn opened this issue Apr 19, 2024 · 1 comment
Labels
memory issues with RAM

Comments

@mayishazn
Copy link

Using the new cellpose denoise cyto3. It seems while running through the model.eval. my machine is using up 15GB RAM. My images are 2048*2048 pixels. They're just not that big. And I set a limit to only parse through 5 images at a time.

image

The notebook I am running is as follows: https://drive.google.com/file/d/1-Wat0MptBA9t4jyKJt9BLUhanU5LrA5t/view?usp=sharing

Any help appreciated! Thanks!!

@mayishazn mayishazn added the bug Something isn't working label Apr 19, 2024
@mrariden mrariden added memory issues with RAM and removed bug Something isn't working labels May 6, 2024
@mayishazn
Copy link
Author

To add more details - I have watched the RAM increase as it went through a batch of 5 images. Even after running:
del styles
del names
del imgs
del imgs_dn
gc.collect()

the RAM usage remains capped. It seems cellpose itself is hogging memory and not clearing info between processing batches of images.

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

No branches or pull requests

2 participants