Repository navigation
The labelled filter keeps a crop with any annotation and refuses a dataset without labels - #92
Merged
Merged
Conversation
The filter is a switch with no parameter: a crop passes when it holds a nonzero pixel in
a label paired with its raw, one point being enough, and a raw without a paired label
array fails every draw. A definition's line is `{name: labelled}` and the page's control
is a checkbox. A min_fraction on labelled is read and ignored with a warning, so a round
pinned to a definition that has one still loads; the plan rule never carries it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A definition's
labelledfilter becomes a switch with no parameter.{name: labelled}, and the page's control is a checkbox, "skip crops without annotation".Why
The filter used to require a share of annotated pixels (
min_fraction) and passed a dataset without labels unread. In a round of a buffer meant to hold annotated crops, withmin_fraction: 0.05:Definitions that still name
min_fractionThey load: the number is read and ignored, and the spec carries a warning. A round re-reads its pinned definition while it sources, so refusing the key would fail a round that is under way when the worker restarts. The plan rule never carries it, and the page writes the line without it.
Deploying
The harness side is JaneliaSciComp/mia-snippets#307, and the two must go live together: the current harness requires
min_fraction, which this worker no longer sends. A rule with filters gets a new plan digest, pinned in both repos' tests.Not in this PR
The planner does not know that a dataset's binding has no labels, so such a dataset still enters the pool and fails its stage job with
no crop passed the filters.Testing
The definition, plan, page, API and registration tests pass, and lint and typecheck are clean. The full suite was not run.
Stacked on #91.
@StephanPreibisch @jakobtroidl