Reading the development scenes

Research data, not ground truth. Every pixel remains unknown as a background target. Projected per-instance masks are unverified hypotheses; they can overlap and do not define which structures are visible. Source species names are unverified. A training loss must explicitly account for this uncertainty.

The checked reader covers 916 scenes and 4,580 placements from 442 source images across 66 source-name strings. Some strings are morphotypes or possible alternate names; they are not 66 confirmed species. Many placements reuse the same source images and background fields, including neighboring focus planes from the same location. It does not load validation or test scenes.

from diatom_pilot.weak_scene_dataset import WeakSceneDataset

dataset = WeakSceneDataset()
scene = dataset[0]
grayscale = scene["image"]                       # H x W, uint8
supports = scene["weak_projected_supports"]      # N x H x W, bool
unknown = scene["unknown_region"]                # H x W, all True
metadata = scene["instances"]                    # source and placement provenance

Use WeakSceneDataset(include_mask_variants=True) to reconstruct the three unverified source-mask proposals for each placement. See proposal agreement examples and limitations. The scene image itself was rendered with the center proposal only.

A separate group-separated development comparison must be loaded by explicitly choosing its train or validation partition. It is not included in the default reader collection and is not an independent biological test.

The reader checks scene and support-archive hashes by default. It retains overlapping instance supports separately and does not create a binary foreground/background target.

Reader source · Full dataset read check · Inspect diverse scenes