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

Iterate UI for AI job modal #7368

Merged
merged 33 commits into from
Oct 23, 2023
Merged

Iterate UI for AI job modal #7368

merged 33 commits into from
Oct 23, 2023

Conversation

dieknolle3333
Copy link
Contributor

@dieknolle3333 dieknolle3333 commented Oct 5, 2023

Steps to test:

  • set isWkorgInstance and jobsEnabled to true in application.conf
  • open annotation and click "AI analysis" button. click through the modal.
  • make sure its working in the same cases as before, such as when viewing a dataset as a superuser
  • make sure the "Merge this volume annotation with its fallback layer" in the context menu of a segment layer is still working.
    NB: it seemed not to be working before and still isnt, at least for me. its probably important to test this in depth during review 😅

TODOs:

  • revisit description
  • exchange Alert component
  • use ai job enum
  • improve layout
  • make sure materialize volume annotation is working

Issues:


(Please delete unneeded items, merge only when none are left open)

@@ -130,11 +130,11 @@ features {
discussionBoard = "https://forum.image.sc/tag/webknossos"
discussionBoardRequiresAdmin = false
hideNavbarLogin = false
isWkorgInstance = false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

revert!

@@ -26,7 +26,7 @@ import { clamp, computeArrayFromBoundingBox, rgbToHex } from "libs/utils";
import { getBaseSegmentationName } from "oxalis/view/right-border-tabs/segments_tab/segments_view_helper";
import { V3 } from "libs/mjs";
import { ResolutionInfo } from "oxalis/model/helpers/resolution_info";
import { isBoundingBoxExportable } from "../action-bar/download_modal_view";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove class before merging

@dieknolle3333 dieknolle3333 marked this pull request as ready for review October 10, 2023 09:15
Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

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

Great work and implementation of the mockup! I only left some small comments during the review. Please also see my notes from testing:

  • Trying to open the modal in an annotation with only a segmentation layer, I get a
    TypeError: Cannot use 'in' operator to search for 'tracingId' in undefined
      at getReadableNameOfVolumeLayer (starting_job_modals.tsx:90:10)
      at StartJobForm (starting_job_modals.tsx:531:44)
    
    If none of the processing jobs make sense without a color layer, the "AI Analysis" button should probably be disabled and have a tooltip explaining that.
  • Since the modal requires to select a bounding box and creating bounding boxes is not possible when viewing a dataset, the "AI Analysis" functionality cannot be used when viewing a dataset at the moment. Maybe there should always be an option to use the full bounding box? This way, the functionality could at least be used when viewing small datasets.
  • [Minor] The images are 500x500 px² (~600 kb), but are displayed much smaller (150x150 px²) which is only ~10% (~35% on hi-res). It might make sense to provide a smaller variant. However, this might be a general issue in our code-base and it might make sense to investigate and fix this in general as part of a separate issue.
  • Also, has been like this before, but when there are multiple color layers, the label for the layer selection simply reads "color". Could you please replace this with "Layer" (since the placeholder already reads "Select a color layer")
    image
  • The volume annotation materialization functionality also doesn't work for me (doesn't do anything when clicking the button). I'll have a look at what's the issue with that.

The required property of this rule was misleading since it is not required if
a bounding box cannot be configured, but in addition seems to be ignored if a
validator is set.
Thus in the validator one needs to make sure to avoid letting the validation
fail if a bounding box cannot be configured.

Also improve validation messages for bounding box selection form item.
@daniel-wer
Copy link
Member

@dieknolle3333 I should have fixed the volume annotation materialization functionality, at least the job is triggered for me, again. Would be great if you could check as well :) The issue was a form validation regression introduced in #7357.

@dieknolle3333
Copy link
Contributor Author

dieknolle3333 commented Oct 16, 2023

@daniel-wer I tried to test the volume annotation materialization, and I just wanted to make sure that this toast is expected in my case.
Screenshot from 2023-10-16 17-17-10
Before you fixed it, nothing happened at all.

Thank you for looking into this so quickly!

@daniel-wer
Copy link
Member

I tried to test the volume annotation materialization, and I just wanted to make sure that this toast is expected in my case.

Yes, that's expected :)

@dieknolle3333
Copy link
Contributor Author

I downsampled the images – maybe we have to fix the sizing for more pictures later on, but I shouldn't worsen the problem 😀

@dieknolle3333
Copy link
Contributor Author

@daniel-wer I think and hope that I addressed all of your feedback :)

Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

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

Great work, was a pleasure to look at and use. I only left two small suggestions :)


You can launch the nuclei inferral from the `Menu` dropdown in the action bar at the top. Use the `Start AI analysis` link to start the analysis.
You can launch the neuron segmentation from the action bar at the top. Use the `Start AI neuron segmentation` button in the modal to start the analysis.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
You can launch the neuron segmentation from the action bar at the top. Use the `Start AI neuron segmentation` button in the modal to start the analysis.
You can launch the AI analysis modal using the button in the action bar at the top. Use the `Start AI neuron segmentation` button in the modal to start the analysis.

@dieknolle3333
Copy link
Contributor Author

thank you for the considerate review!

@dieknolle3333 dieknolle3333 enabled auto-merge (squash) October 23, 2023 11:53
@dieknolle3333 dieknolle3333 merged commit cba39c7 into master Oct 23, 2023
2 checks passed
@dieknolle3333 dieknolle3333 deleted the ai-job-modal branch October 23, 2023 12:09
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.

Iterate on UI for AI features
2 participants