-
Notifications
You must be signed in to change notification settings - Fork 428
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] merging cells sometimes freeezes cellpose/system #724
Comments
Just tested this on another system. Same problem. It's a more powerful machine. Here, all 60 GB RAM will be used by cellpose for a few minutes at times, when merging labels.
|
😅 looking at the code cellpose-noob-I realized that one can select objects. Selecting an object with left click and merging it with another by clicking the other one now while holding alt works fine (not particularly but sufficiently fast). So, the issue only manifests when trying to merge objects with objects with alt+click & alt+click. |
oh that's very weird thanks for tracking this down, will look into it |
I had been facing the same problem. Is there any way we can merge masks using Jupyter? I create masks in batch in Jupyter but need to use GUI to merge masks. Also the GUI Alt+click was working few days back and though it was slow (as mentioned) - sometimes it took a very long time and freezed everything, however now I am trying to use Alt+click its not working. I would be really grateful if you found a fix for this! Thank you |
@anoshqa -did you try this? If there is no reaction at all, make sure the alt key is actually working. Also, probably no the issue here, but some other programs have issues correctly tracking the alt key state when switching windows with alt+tab. |
Hi Jan, I cannot understand what you mean by selecting objects in a row. I can't seem to select 2 cells in a row and merge them. I select one cell by left click and then when I click on another, the previous selection goes away. I tried using shift but then the brush button starts. I will make sure Alt key works, my PC actually hanged today after I attempted Alt+Click - I believe its because of big image size and this bug that you mentioned that Alt + Click takes too much of memory sometimes. |
In cellpose v2.2.2 and current main, under windows, w/o CUDA, trying to merge objects with (alt+click & alt+click) leads to memory spike of varying size (0 to > 20 GB).
To Reproduce
open an image, add labels, observe system memory while merging two labels (with alt+click & alt+click)
Run log
system almost froze after starting second merge (see screenshots).
Screenshots
![image](https://private-user-images.githubusercontent.com/1266815/244339543-bb8099fe-58a9-42ae-a012-efe306af332b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTkxMjAsIm5iZiI6MTczOTYxODgyMCwicGF0aCI6Ii8xMjY2ODE1LzI0NDMzOTU0My1iYjgwOTlmZS01OGE5LTQyYWUtYTAxMi1lZmUzMDZhZjMzMmIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMTEyNzAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTBmMDkyZGIxMTVlNTU3Mzc3NmU0MmEzNzYzMWU0ZWU0NjhkNTA0ZmIzOWNmMWNlY2U5OGUxMmRjZWI3NzFiMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.fBfETzBHSmI_XaKe0Lu-tLmlvK7QlguAiGMnmzci3hI)
The text was updated successfully, but these errors were encountered: