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

Improvement: Remember labelling mode #507

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MuhsinFatih
Copy link
Contributor

The Mode tool in the toolbar in Annotator allows users to switch between segment and label modes, however the user has to click this every time they navigate to the next image if they want to annotate images only with image-level labels. I made a small modification, passing the current mode to the route and passing that to Annotator props.

The new behavior is that the annotator "remembers" the annotation mode. This makes sense because it is unlikely that a user would want to label images in a dataset to have mixed label types. This will save a lot of time for people who want to only annotate with image-level labels only. In my use-case, clicking the tool every time was a dealbreaker

The change is really very simple. I attached a video showing the new behavior. Notice that it doesn't switch back to segment mode when I navigate to the next/previous image

Screen.Recording.2021-09-14.at.10.33.39.PM.mov

Disclaimer:
I never used vue.js for any project (mostly I'm a react and svelte person), so my understanding is very limited. If I used a bad practice please edit my PR to conform with the project guidelines

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

Successfully merging this pull request may close these issues.

1 participant