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

Subsample annotation display for very large numbers of annotations #765

Open
arjunrajlab opened this issue Aug 22, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@arjunrajlab
Copy link
Collaborator

I have noticed that performance tends to degrade in terms of responsiveness when there are a lot of annotations displayed on the image at once. In discussions with David, it seems like random subsampling is the preferred option. Thibault said that we could do this by downloading all the annotations and assigning each one a random number between 0 and 1. Then we basically threshold to decide what percentage to show. I think a reasonable starting point is that if you have over 40K annotations, only show 10K of them. As you increase the number of annotations, always max out at around 10K of them to display. If you have, say, 30K annotations to display, then just show the 30K. It's only when you go above 40K that it starts to subsample. Also, this should be an option that is enabled by default, but that you can turn off in the settings (with a warning if you have over 40K annotations that this might make things slower).

There is something to be figured out which is that the annotation list should show all the annotations, but sometimes the annotation on the list may not show up if it was randomly not selected. I think if you highlight or click on the annotation list, it should convert that annotation to "shown", perhaps by setting its random number to 1 or something like that.

@arjunrajlab arjunrajlab added the enhancement New feature or request label Aug 22, 2024
@arjunrajlab arjunrajlab added this to the v2 milestone Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Selected for development
Development

No branches or pull requests

2 participants