-
Notifications
You must be signed in to change notification settings - Fork 50
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
Extend automatic segmentation CLI to allow continuing annotation #858
Conversation
I realized that I was missing starting the GUI after returning the viewer, which is now taken care of now. Thank you for the suggestion. This should be GTG now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good now! Have you checked that the instance segmentation is fetched from the viewer correctly though?
# We extract the segmentation in "committed_objects" layer, where the user either: | ||
# a) Performed interactive segmentation / corrections and committed them, OR | ||
# b) Did not do anything and closed the annotator, i.e. keeps the segmentations as it is. | ||
instances = viewer.layers["committed_objects"].data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested once that this actually works? I am never sure about the actual state logic of napari.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I tried this out, by removing labels, adding segmentations and closing the annotator. It works for all cases!
This PR closes #729, to (optionally) support continuing annotation / view automatic segmentations after automatic segmentation CLI process is completed. GTG from my side!