cellpose icon indicating copy to clipboard operation
cellpose copied to clipboard

[BUG] Cellpose hogging the CPU during multi-threading

Open BennyGinger opened this issue 11 months ago • 0 comments

Describe the bug I integrated cellpose in my analysis pipeline, which mainly preprocess images then use cellpose to segment. During the preprocess I use multithreading a lot (mainly to extract image from large stack). I recently upgraded my conda env with the newest cellpose 3.0, since then only 2 CPU are used at a time (compared to 16 with cellpose 2.0). I can see in that all processes are sent (many python processes appear when I launch the script) but all are inactive but 2.

I can isolate my image preprocess module and it works fine (with 16 CPU). Just by importing cellpose reduce the CPU usage to 2.

Any suggestions?

BennyGinger avatar Mar 08 '24 23:03 BennyGinger