RoboSkillHub
Catalog / Skills
skill

segmenting-small-parts-from-a-few-reference-photos

Labels the parts in a frame - which brick, which domino side, which piece - from a handful of labelled reference photos, with no training. A memory bank of DINOv2 features pooled under the references' masks (tools/dinov2) is matched against the frame's part masks (given, or from sam3 with a generic prompt), each mask labelled by its best class (mean of its top-3 cosines to that class's references) when it clears a score and a margin gate; parts not in the bank stay unlabelled. After No-Time-to-Train's reference-based instance segmentation. Use when a task has its own parts (a kit's brick types, a tile's face) and a few photos of them, and a detector's text prompts or one exemplar cannot tell them apart.

Kind
Skill · perceive: finds and measures things in the scene
Robots
any robot
Tasks
domino lego jigsaw
Takes
nothing
Gives
n_proposals int, detail string
Calls
dinov2, sam3
Robot tools
robot.get_observation
License
Apache-2.0
Source
source on GitHub · SKILL.md · upstream code · https://arxiv.org/abs/2507.02798 · v0.1.0

Exits

What the skill reports when it ends; a policy branches on these.

instances_found At least one proposal got a label (best class score >= min_score 0.45, margin to the second >= min_margin); instances lists them with box, score, margin and per-class scores, counts per label.
none_found No proposal cleared the gates, none was 20+ px, or there was no RGB frame.
bank_empty No usable reference (each needs label, mask or box, and an image) and no bank given.

Scripts

label

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 "labels the parts in a frame" --why
uv run --no-sync roboskillhub view --bundles segmenting-small-parts-from-a-few-reference-photos --out my_registry

See Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.