CellProfiler / CellProfiler-plugins

Community-contributed and experimental CellProfiler modules.
http://plugins.cellprofiler.org/
56 stars 68 forks source link

Update runstardist.py #205

Closed mccruz07 closed 1 year ago

mccruz07 commented 1 year ago

Potentially resolves the issue#196 stardist plugin does not free gpu memory. Now you can runStardist and runCellpose on the same pipeline.

Tested on windows, need to test on Macs

bethac07 commented 1 year ago

So, TLDR, releasing memory in tf is way harder than in torch, but Mario's code works on non-Macs, and hopefully the limiting code works in other situations.