-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add neuron reconstruction job backend and frontend part #5922
Conversation
…-nuclei-reconstruction-job
And disable jobs
…-nuclei-reconstruction-job
@philippotto I am currently working on making the bounding box of the volume that should be predicted for neurons configurable in the frontend. The approach I went for is having another select (just like it is right now when the dataset has multiple color layers). I think the advantages are that the user can / must explicitly but quite easy via the bounding box tool, select the volume for the prediction. Therefore the selected volume is first visually displayed to the user so the user can check again whether thats exactly the volume the user wants. Do you think my arguments make sense and that I chose the right approach? Thanks for you feedback. 🐱 |
@MichaelBuessemeyer Sounds great! In the rare (?) scenario that a user happens to have 6 digits in their clipboard, they can always go to the bounding box tab to paste it there. We want to encourage the use of the bounding box tools and therefore it makes sense to reuse that. Good thinking! |
Thanks , thats a very smart solution to that problem 👍 |
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.
@philippotto I just checked the frontend part of the neuron inferral again. It is now ready for your review. Could you please take over that review? 👀 📝
Random emoji of this post: 🐧
frontend/javascripts/oxalis/view/right-border-tabs/starting_job_modals.js
Outdated
Show resolved
Hide resolved
frontend/javascripts/oxalis/view/right-border-tabs/starting_job_modals.js
Outdated
Show resolved
Hide resolved
@fm3 could you please check the backend changes? |
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.
Backend looks good 🎉
…nds/webknossos into add-nuclei-reconstruction-job
…-nuclei-reconstruction-job
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.
@philippotto I just finished applying your feedback. I also added the example screenshot for the neuron inferral. Could you please another look on this pr 👀 🏃♂️
Random emoji of this post: 🏎️
@@ -186,8 +187,7 @@ function StartingJobModal(props: StartingJoblModalProps) { | |||
<br /> | |||
<div style={{ textAlign: "center" }}> | |||
<img | |||
//TODO: get an image | |||
src="/assets/images/nuclei_inferral_example.jpg" | |||
src={`/assets/images/${_.snakeCase(jobName)}_example.jpg`} |
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.
this will make it very hard to search where the file is used. I'd suggest to create a mapping object from jobName to path to make it easier to find. something like this:
const jobNameToImagePath = {
"neuron_inferral": "neuron_inferral_example.jpg",
...
}
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.
also: the screenshot quality of the new image is quite poor. maybe set the zoom value to 1 to avoid resizing issues? also, I'd hide the "crosshair" in the image.
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.
Thanks for the feedback. I did notice that the image had such a bad resolution. It should be better blazingly sharp 🗡️ now.
…-nuclei-reconstruction-job
frontend/javascripts/oxalis/view/right-border-tabs/starting_job_modals.js
Outdated
Show resolved
Hide resolved
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.
Awesome! I could test it and after fixing an issue in vx, it worked very well :) I only left some cosmetic feedback for the UI. Merging this PR is blocked by the worker PR, anyway.
frontend/javascripts/oxalis/view/right-border-tabs/starting_job_modals.js
Outdated
Show resolved
Hide resolved
frontend/javascripts/oxalis/view/right-border-tabs/starting_job_modals.js
Outdated
Show resolved
Hide resolved
frontend/javascripts/oxalis/view/right-border-tabs/starting_job_modals.js
Outdated
Show resolved
Hide resolved
Sorry I didn’t read through all of the code and comments just now, but quick question: what mechanism are you using to limit this feature to scm team members? the isSuperUser property is not currently exposed in the user json, is it? |
Oh, this is a good point. It's only using |
Co-authored-by: Philipp Otto <[email protected]>
…nds/webknossos into add-nuclei-reconstruction-job
I added isSuperUser to the user json in 46629d6 |
@philippotto Could you please check the change that makes the neuron inferral only available to super users? |
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.
LGTM :)
…ssos into docs * 'docs' of github.com:scalableminds/webknossos: * 'master' of github.com:scalableminds/webknossos: Split cells via Min Cut (#5885) Clean up backend util package (#6048) Guard against empty saves (#6052) Time tracking: Do not fail on empty timespans list (#6051) Fix clip button changing position (#6050) Include ParamFailure values in error chains (#6045) Fix non-32-aligned bucket requests (#6047) Don't enforce save state when saving is triggered by a timeout and reduce tracing layout analytics event count (#5999) Bump cached-path-relative from 1.0.2 to 1.1.0 (#5994) Volume annotation download: zip with BEST_SPEED (#6036) Sensible scalebar values (#6034) Faster CircleCI builds (#6040) move to Google Analytics 4 (#6031) Fix nightly (fix tokens, upgrade puppeteer) (#6032) Add neuron reconstruction job backend and frontend part (#5922) Allow uploading multi-layer volume annotations (#6028)
* docs: Split cells via Min Cut (#5885) Clean up backend util package (#6048) Guard against empty saves (#6052) Time tracking: Do not fail on empty timespans list (#6051) Fix clip button changing position (#6050) Include ParamFailure values in error chains (#6045) Fix non-32-aligned bucket requests (#6047) Don't enforce save state when saving is triggered by a timeout and reduce tracing layout analytics event count (#5999) Bump cached-path-relative from 1.0.2 to 1.1.0 (#5994) Volume annotation download: zip with BEST_SPEED (#6036) Sensible scalebar values (#6034) Faster CircleCI builds (#6040) move to Google Analytics 4 (#6031) Fix nightly (fix tokens, upgrade puppeteer) (#6032) Add neuron reconstruction job backend and frontend part (#5922) Allow uploading multi-layer volume annotations (#6028)
This PR adds the necessary parts to the frontend and backend to make the new nuclei reconstruction job of the worker callable.
Open TODOs:
URL of deployed dev instance (used for testing):
Steps to test:
yarn enable-jobs
.Issues: