Detecting Parts From Exemplars Sam3のロゴ

Detecting Parts From Exemplars Sam3

組織
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.

概要

公開者runtime-si
リポジトリRoboSkillHub
スキル名detecting-parts-from-exemplars-sam3
スター
242
フォーク
27
同梱ファイル
2
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    runtime-siがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Detecting Parts From Exemplars Sam3」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-parts-from-exemplars-sam3
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDetecting Parts From Exemplars Sam3を有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDetecting Parts From Exemplars Sam3を読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Detecting Parts From Exemplars Sam3は作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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).

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでDetecting Parts From Exemplars Sam3を使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Detecting Parts From Exemplars Sam3はプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDetecting Parts From Exemplars Sam3をインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-parts-from-exemplars-sam3を貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Detecting Parts From Exemplars Sam3を使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Detecting Parts From Exemplars Sam3で使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDetecting Parts From Exemplars Sam3を利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Detecting Parts From Exemplars Sam3」は無料ですか?

はい。runtime-siがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇