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

Enforce minimum AI inference bounding box #8198

Open
1 of 2 tasks
hotzenklotz opened this issue Nov 14, 2024 · 0 comments
Open
1 of 2 tasks

Enforce minimum AI inference bounding box #8198

hotzenklotz opened this issue Nov 14, 2024 · 0 comments

Comments

@hotzenklotz
Copy link
Member

hotzenklotz commented Nov 14, 2024

Context

Sometimes user want to try out the AI inference features. The upload a tiny datasets and launch this feature or use a really small bounding box. In some cases this BB is too small to run an AI segmentation and the WK worker will crash. We should prevent users from triggering these jobs.

Expected Behavior

WK should enforce a minimum BB in the UI and prevent users from launching a worker run destined to fail. AFAIR, we already enforce a maximum limit for AI jobs.

Current Behavior

The worker crashes with with an Assertion Error:

AssertionError: Your dataset size in the prediction mag ([ 1 89 250]) is so small that no valid prediction output shape can be found (minimum is (2, 50, 128)).

E.g. https://webknossos.org/workflows/e4c9b63f53

Steps to Reproduce the bug

  1. Launch AI job with a really small BB
  2. Kaboom

Your Environment for bug

  • Browser name and version: all
  • Operating System and version: all
  • Version of WEBKNOSSOS (Release or Commit): 2024-11-01
  • Specific to long-running jobs (set jobsEnabled=true in application.conf)
  • Specific to webknossos.org (set isDemoInstance=true in application.conf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant