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

Auto-Select via SAM #7051

Merged
merged 83 commits into from
May 17, 2023
Merged

Auto-Select via SAM #7051

merged 83 commits into from
May 17, 2023

Conversation

fm3
Copy link
Member

@fm3 fm3 commented May 4, 2023

TODO

  • Backend
    • Request data from datastore
    • Send data to SAM server
    • Forward returned data to frontend
    • Include elementClass in sam server request
    • Double-check bbox/mag combination (does the datastore interpret the bbox as mag1 or as in-mag? do we need to mag-align the bbox?)
    • Double-check what happens if the bbox is outside of the layer? Is the data black? What would be best for SAM?
    • Before merging, set segmentAnythingEnabled = false in application.conf and refresh snapshots with that
  • Frontend
    • integrate
    • add switch between old and new quick select strategy
    • support different mags
    • support other viewports
    • optimize performance
      • prefetch embedding and session
      • misc optimizations
    • fix bugs
      • incorrect strides for yz viewport
      • correct alignment of bboxes
      • invisible geometries
      • incorrect cache look up due to empty bboxes
      • bbox too large error

URL of deployed dev instance (used for testing):

Steps to test:

  • activate "quick select tool"
  • use it as usual (without activating the AI button)
  • activate the AI button and use it similar to the old tool via dnd

Issues:


  • Updated changelog
  • Updated documentation if applicable
  • Removed dev-only changes like prints and application.conf edits
    • Backend/application.conf
    • Frontend
  • Considered common edge cases
  • Needs datastore update after deployment

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.

Awesome, works very well! 🎉

  • Minor: The center dot of the quick select rectangle is distorted in the YZ and XZ viewports if the scale is not uniform

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.

Frontend code LGTM 👍 🎉

@philippotto philippotto enabled auto-merge (squash) May 17, 2023 09:03
@philippotto philippotto merged commit 155e94e into master May 17, 2023
@philippotto philippotto deleted the sam branch May 17, 2023 09:06
hotzenklotz added a commit that referenced this pull request May 17, 2023
…ty-list-drawings

* 'master' of github.com:scalableminds/webknossos: (23 commits)
  fix scrolling in organization switcher in terms-of-services modal (#7083)
  Auto-Select via SAM (#7051)
  Build STL in chunks when exporting them (#7074)
  Improve performance for large (oversegmentation) meshes (#7077)
  Fix display of used storage in power plan (#7057)
  Fix user limits for invites (#7078)
  adds fileSize to voxelytics workflow list (#7071)
  Improve error logging for bucket requests (#7053)
  Fix zarr streaming datasource-properties.json generation for non-wkw/zarr datasets (#7065)
  Min length for layer names is one (#7064)
  Include voxelytics workflow name in tab title (#7070)
  Fix local to global layer index look up (#7066)
  Merge editable mappings (#7026)
  store correct artifacts for wkorg nightly (#7060)
  Team edit modal (#7043)
  Fix voxel offset in chunk name for unsharded neuroglancer precomputed datasets (#7062)
  Fix offset when loading non-aligned buckets for zarr/n5/precomputed (#7058)
  fixes wallTimes query for workflow reports (#7059)
  Handle Remote Dataset Edge Cases: compressed content-encoding, float voxel size (#7041)
  Release 23.05.2 (#7056)
  ...
hotzenklotz added a commit that referenced this pull request May 17, 2023
…ove_wkconnect

* 'master' of github.com:scalableminds/webknossos: (33 commits)
  Fix bug in fallback rendering when layer has missing mags (#7082)
  Fix duplicate on volumes with no fallback layer (#7085)
  fix scrolling in organization switcher in terms-of-services modal (#7083)
  Auto-Select via SAM (#7051)
  Build STL in chunks when exporting them (#7074)
  Improve performance for large (oversegmentation) meshes (#7077)
  Fix display of used storage in power plan (#7057)
  Fix user limits for invites (#7078)
  adds fileSize to voxelytics workflow list (#7071)
  Improve error logging for bucket requests (#7053)
  Fix zarr streaming datasource-properties.json generation for non-wkw/zarr datasets (#7065)
  Min length for layer names is one (#7064)
  Include voxelytics workflow name in tab title (#7070)
  Fix local to global layer index look up (#7066)
  Merge editable mappings (#7026)
  store correct artifacts for wkorg nightly (#7060)
  Team edit modal (#7043)
  Fix voxel offset in chunk name for unsharded neuroglancer precomputed datasets (#7062)
  Fix offset when loading non-aligned buckets for zarr/n5/precomputed (#7058)
  fixes wallTimes query for workflow reports (#7059)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate ML model for "quick segment" tool
5 participants