flagging-odd-one-out-parts-by-mutual-scoring
Finds the part that differs from its siblings in one frame - a fallen or turned domino in a line, a face-up tile among face-down ones, a standing one among lying ones, a wrong face - with no reference image, no before frame and no training. The parts (masks, boxes, or a sam3 text prompt) are cut out, turned to their long axis (the 180 deg turn chosen to match the others) and scored against each other three ways - appearance by MuSc's mutual patch scoring on DINOv2 (tools/musc), height maps by the same nearest-patch rule on the depth, and the boxes' orientation and footprint - and a robust z-score over the parts says which are odd and why. Use when many copies of one part were placed and one may be wrong - before a domino line is triggered, after a row of bricks or tiles is laid, or to pick the one tile that needs turning over.
n_parts int, camera_name string, appearance_scored bool, aligned_layout boolrobot.get_observationExits
What the skill reports when it ends; a policy branches on these.
outliers_found At least one part is odd - its appearance score over z_threshold (3.5) robust z and 1.4x the median, its height-map score over 3.5 z and 2 mm, its box turned over 20 deg from the others' (when they are laid out aligned), or a side of its box 1.25x off the median at 3.5 z; outliers lists them and parts[i].why says which test.all_consistent Every part passed every test; detail gives the highest z.too_few_parts Under min_parts (4) parts were given or segmented, or no RGB frame.Scripts
Use it
Take this bundle (and the tools it calls) into a registry for your task, then point your policy generator at it:
git clone https://github.com/runtime-si/RoboSkillHub
cd RoboSkillHub && uv sync
uv run --no-sync roboskillhub search "finds the part that differs from its siblings in one frame" --why
uv run --no-sync roboskillhub view --bundles flagging-odd-one-out-parts-by-mutual-scoring --out my_registrySee Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.