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

[BUG] Drawing masks does not work properly at high ROI counts? #1060

Open
JannikMen opened this issue Nov 22, 2024 · 0 comments
Open

[BUG] Drawing masks does not work properly at high ROI counts? #1060

JannikMen opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JannikMen
Copy link

Description
In certain areas of an image drawing a mask leads to one of three outcomes:
Case 1) Mask is drawn as a closed shape but appears as an open shape afterwards (single stroke is enabled)
Case 2) Mask cannot be drawn
Case 3) "Drawing mode" cannot be left. Cellpose has to be restarted.

Reproducing the issue
So far the issue only occured with in a single image and can be reproduced by trying to draw masks around certain areas. For other areas of the same image it works fine.

Log entries
Case 1) GUI_INFO: 1070 ROIs saved to C:/Users/janni/AppData/Local/CellposeEnvironment/P7-Tag2-40er-links_green_seg.npy
No extraordinary output in the console

Case 2) ERROR: cell too small without overlaps, not drawn
Eventhough drawing even smaller masks in other areas of the image works just fine

Case 3) QGraphicsScene::removeItem: item 0x139b23ac170's scene (0x0) is different from this scene (0x139b52600e0)
Appears for every pixel touched by the cursor

Screenshots
Mask not closed
Here you can see an example of Case 1

Maybe the problem lies with the high number of ROIs? Previously edited images all had a lower ROI count

@JannikMen JannikMen added the bug Something isn't working label Nov 22, 2024
@JannikMen JannikMen changed the title Drawing masks does not work properly [BUG] Drawing masks does not work properly Nov 25, 2024
@JannikMen JannikMen changed the title [BUG] Drawing masks does not work properly [BUG] Drawing masks does not work properly at high ROI counts? Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant