You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am segmenting timelapse image datasets using cellpose.
Which has been working verywell for all purposes inside of a jupyter notebook.
When I use the same code in a script (a nbconverted script, i.e. an exact copy of the notebook) I get a large memory scaling usage.
In the notebook to segment (individually) 13 - 1900x1900 pixel images uses less than 5GB of ram and less than 2GB of VRAM.
I tried to segment just one single image (1900 x 1900 pixels) and I got the same error.
When I run the script I max out my machine's memory (128GB).
Without prior knowledge to this code, I am suspecting that this memory usage might not be a leak but rather my system using GPU in a notebook and the CPU in the script despite the code not changing.
I have a minimal example below that will hopefully reproduce on your end.
Thank you for creating and maintaining this software! Thank you for engaging with the scientific community, and thank you for your time and help!
It was wierd...It seemed like I "primed" the python interpreter by running a single image through cellpose's eval prior to looping through a list of images. I could not explain why or what the python interpreter is doing.
Describe the bug
I am segmenting timelapse image datasets using cellpose.
Which has been working verywell for all purposes inside of a jupyter notebook.
When I use the same code in a script (a nbconverted script, i.e. an exact copy of the notebook) I get a large memory scaling usage.
In the notebook to segment (individually) 13 - 1900x1900 pixel images uses less than 5GB of ram and less than 2GB of VRAM.
I tried to segment just one single image (1900 x 1900 pixels) and I got the same error.
When I run the script I max out my machine's memory (128GB).
Without prior knowledge to this code, I am suspecting that this memory usage might not be a leak but rather my system using GPU in a notebook and the CPU in the script despite the code not changing.
I have a minimal example below that will hopefully reproduce on your end.
Thank you for creating and maintaining this software! Thank you for engaging with the scientific community, and thank you for your time and help!
To Reproduce/Run log
code used:
Other information
System is running Linux Pop OS 22.04.
python 3.10.16
cellpose 3.1.0
numpy 1.26.4
csbdeep 0.8.1
The text was updated successfully, but these errors were encountered: