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

Erode dilate contour master #218

Merged
merged 21 commits into from
Dec 23, 2020
Merged

Erode dilate contour master #218

merged 21 commits into from
Dec 23, 2020

Conversation

tddough98
Copy link
Collaborator

@tddough98 tddough98 commented Dec 23, 2020

What

This PR is a hotfix for three additional actions in DeepCell Label: erode, dilate, and active contour. The names of these actions on the frontend are shrink, expand, and autofit, respectively. The keybinds are q (for erode), Q (for dilate), and m (for autofit), then a Space to confirm the action. They are only available in whole-label mode and require a single label to be selected.

A test instance of this PR is available here: new-actions-test.q2qqtvkafv.us-east-2.elasticbeanstalk.com

Why

These actions will allow for cleaner, faster adjustment of labels without a brush.

This PR does not include tests for the new actions, but the tests are written in branch erode-dilate-active-contour (see commit dfde2d2), as these tests use the new DummyLoader features from the file-loader branch. You can see on the linked commit that the tests are passing for these actions. We're aiming to merge in these actions without the rest of the file-loader branch so that we can start using them with Anolytics without any hiccups the file loaders might cause. I'll add these tests to the file-loader branch as soon as this is merged in.

Copy link
Contributor

@geneva-miller geneva-miller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this on one of the files that Anolytics currently has to work on (a few other files as well) and it works just as expected. Hoping to get this in ASAP so I can get annotators to start using this.

browser/caliban.py Outdated Show resolved Hide resolved
Copy link
Contributor

@willgraf willgraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few numpy-related performance suggestions.

browser/caliban.py Outdated Show resolved Hide resolved
browser/caliban.py Outdated Show resolved Hide resolved
browser/caliban.py Outdated Show resolved Hide resolved
browser/caliban.py Outdated Show resolved Hide resolved
browser/caliban.py Show resolved Hide resolved
browser/caliban.py Outdated Show resolved Hide resolved
tddough98 and others added 6 commits December 23, 2020 13:56
Co-authored-by: willgraf <7930703+willgraf@users.noreply.github.com>
Co-authored-by: willgraf <7930703+willgraf@users.noreply.github.com>
Co-authored-by: willgraf <7930703+willgraf@users.noreply.github.com>
Copy link
Contributor

@geneva-miller geneva-miller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and user tested on some edge cases, very excited to have annotators start using these actions! 🎉

@tddough98 tddough98 merged commit 3e25ce2 into master Dec 23, 2020
@tddough98 tddough98 deleted the erode-dilate-contour-master branch December 23, 2020 21:48
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.

None yet

3 participants