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

GPU not being used by Cellpose #899

Open
ismaelfhz opened this issue Mar 26, 2024 · 2 comments
Open

GPU not being used by Cellpose #899

ismaelfhz opened this issue Mar 26, 2024 · 2 comments
Labels
install install help

Comments

@ismaelfhz
Copy link

Install problem
I installed CUDA 11.8.0 and PyTorch 11.8.
TORCH CUDA version installed and working.
The Use GPU option is enabled on the GUI.
Yet, GPU remains idle (i.e. 0%) and CPU runs at max speed while running Cellpose.

Environment info
Cellpose 2.2.3

Run log
(cellpose) PS C:> python -m cellpose
2024-03-26 15:31:20,772 [INFO] WRITING LOG OUTPUT TO C:\Users\XXXXXXXXXX.cellpose\run.log
2024-03-26 15:31:20,772 [INFO]
cellpose version: 2.2.3
platform: win32
python version: 3.11.7
torch version: 2.2.1
2024-03-26 15:31:22,626 [INFO] ** TORCH CUDA version installed and working. **

@ismaelfhz ismaelfhz added the install install help label Mar 26, 2024
@mrariden
Copy link
Collaborator

Only the CNN and the net outputs are processed on the GPU, if you're not actively segmenting an image the GPU isn't utilized

@Nespresso2000
Copy link

I have the same problem. If I enter print('>>> GPU activated? %d'%use_GPU) I get >>> GPU activated? 1 however the GPU usage remains ideal even when I run model.eval() . This function should be using the GPU right? Further I don't get any error at the lines before this when I initialise the model ~ model = models.Cellpose(gpu=True, model_type='cyto')
How can I make sure that cellpose is using the GPU? I have fairly large images to work with around 5GB in size so would like to make use of it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install install help
Projects
None yet
Development

No branches or pull requests

3 participants