Detecting Parts From Exemplars Sam3 logo

Detecting Parts From Exemplars Sam3

Organization
runtime-si
detecting-parts-from-exemplars-sam3

Finds every part that looks like a few example boxes in a camera frame - and, unlike owlv2's one-box search, not like a few negative boxes - with SAM 3's visual-exemplar prompts (sam3.detect_like), returning a box, score and mask per part and the count. Use when a graph has one or more boxed examples of a part (from a detector, a click, an earlier step) and needs all its copies, optionally excluding a look-alike part it has also boxed.

Overview

Publisherruntime-si
RepositoryRoboSkillHub
Skill namedetecting-parts-from-exemplars-sam3
Stars
242
Forks
27
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by runtime-si on GitHub. Read the source before you install it.

Installation

Install the Detecting Parts From Exemplars Sam3 AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-parts-from-exemplars-sam3
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/runtime-si/RoboSkillHub.git /tmp/RoboSkillHub
mkdir -p .claude/skills
cp -r /tmp/RoboSkillHub/skills/detecting-parts-from-exemplars-sam3 .claude/skills/detecting-parts-from-exemplars-sam3
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Detecting Parts From Exemplars Sam3 in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Detecting Parts From Exemplars Sam3 on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Detecting Parts From Exemplars Sam3 is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

detecting-parts-from-exemplars-sam3

Give it boxes around one or more examples of a part (exemplar_boxes, pixels in camera's frame), optionally boxes around parts it must not return (negative_boxes) and a noun phrase (text). It returns a box, score and mask for every other part SAM 3 finds like the examples, and the count. The exemplars themselves are left out.

SAM 3's promptable concept segmentation takes box exemplars as positive or negative visual prompts; without text, the tool passes the placeholder phrase "visual" as upstream does for exemplar-only prompts.

Why not PiDiViT

This was meant to port PiDiViT (ICCV 2025, Apache-2.0). Its repository publishes no PiDiViT weights; its README points to DE-ViT's checkpoints (Google Drive, not on Hugging Face) and it builds on detectron2, which is why DE-ViT itself was skipped. SAM 3 is the few-shot exemplar detector here with public weights the hub already uses.

How it composes

  • Before it: a box on one or more examples. owlv2.detect or mm-grounding-dino with a text prompt, a pointing VLM + sam3.segment_point, or an operator click.
  • After it: the masks go to grasp proposals directly; to name which kit part each one is, segmenting-small-parts-from-a-few-reference-photos classifies masks against labelled references (it labels, this finds).
  • Instead of it: detecting-all-like-exemplar (owlv2 / GeCo exemplar search, boxes only, no negative prompts).

Measured

Setup (2026-11-30, pool host gcp1397, RTX PRO 6000; sam3.pt from the ModelScope mirror): the target-part eval set of tools/README.md, built by its scripts. 57 MuJoCo renders on real station backgrounds (37 overhead at ~1 m, 20 wrist; generator seeds 30 20 7) and 40 PuzzleMap jigsaw photos (317 pieces). Same protocol as owlv2-like: for each class in an image, the largest labelled instance is the exemplar (3-shot: the three largest, when the class has more than three), searched in its own image; a hit is IoU >= 0.5 with another instance of that class. "Other-class hits" are boxes on a part of another class (a brick exemplar matching a domino); "false boxes" match no part. Run with tests/bundles/_target_parts_eval.py sam3-like and _target_parts_score.py.

set, class (instances)sam3, 1 box, floor 0.5sam3, 1 box, 0.85owlv2.detect_like, 0.85 (its default)owlv2, 0.7
overhead LEGO (62)82 %, 1 false box / 26 searches2 %, 048 %, 1494 %, 647
overhead DUPLO (22)95 %, 0 / 129 %, 077 %, 1100 %, 138
overhead domino (38)87 %, 1 / 1911 %, 050 %, 297 %, 313
wrist LEGO / DUPLO / domino (4 / 1 / 5)100 / 100 / 100 %, 00 %50 / 100 / 60 %, 0100 %, 44
jigsaw pieces (317)100 %, 12 false boxes / 40 photos99 %, 0100 %, 1100 %, 262
  • Overhead, SAM 3 at 0.5 finds 82-95 % of the copies with about one false box per 20 searches; owlv2 at its 0.85 default finds 48-77 %, and lowering owlv2 to 0.7 to match the recall gives hundreds of false boxes.
  • SAM 3's scores sit lower than owlv2's: the floor is not shared. 0.5 on bricks and dominoes; 0.85 on the jigsaw photos (at 0.5 the mat edges give 12 false boxes over 40 photos).
  • 3 exemplars (classes with more than 3 instances: 16 LEGO, 4 DUPLO, 7 domino left to find) did not beat 1 at 0.5 (75 / 100 / 86 %); they help above 0.6 (LEGO 0.7: 50 % against 34 %).
  • Neither tells the kinds apart overhead. At 0.5 a LEGO exemplar also boxed 80 parts of the other classes over 26 searches (owlv2 0.85: 23 at much lower recall). To name which part each box is, pass the masks to segmenting-small-parts-from-a-few-reference-photos (its own eval: kind accuracy 0.59 at 1 reference, 0.72 at 5, from ground-truth masks), or give the look-alike as a negative_boxes exemplar (not measured here).
  • Time per search 0.075 s median (owlv2 0.035 s); peak GPU memory 4.5 GB.
  • Renders and photos only; no real-station frames were run.

Weights and licence

facebook/sam3 is gated on Hugging Face. The pool GPU hosts have no HF token, so GAP_SAM3_CHECKPOINT points the sam3 tool at a local sam3.pt: the eval used the public ModelScope mirror (https://www.modelscope.cn/models/facebook/sam3/resolve/master/sam3.pt, 3,450,062,241 bytes). SAM 3's weights and code are under Meta's SAM License, as for the existing sam3 tool. This skill's script is the hub's own code (Apache-2.0).

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Detecting Parts From Exemplars Sam3 AI skill do?

Finds every part that looks like a few example boxes in a camera frame - and, unlike owlv2's one-box search, not like a few negative boxes - with SAM 3's visual-exemplar prompts (sam3.detect_like), returning a box, score and mask per part and the count. Use when a graph has one or more boxed examples of a part (from a detector, a click, an earlier step) and needs all its copies, optionally excluding a look-alike part it has also boxed.

Why use Detecting Parts From Exemplars Sam3 on TypingMind?

Because you install it once and use it with any model. Detecting Parts From Exemplars Sam3 is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Detecting Parts From Exemplars Sam3 in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-parts-from-exemplars-sam3. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Detecting Parts From Exemplars Sam3?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Detecting Parts From Exemplars Sam3?

As many as you like. As long as a model supports skills, you can use Detecting Parts From Exemplars Sam3 with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Detecting Parts From Exemplars Sam3 AI skill free?

Yes. It is published on GitHub by runtime-si under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇