Command Palette

Search for a command to run...

Назад к скиллам
скилл № 66433

sam3-tracking

Use this skill when a dataflow uses SAM 3 (model.curio.sam3@1) and a task writes, wires or fixes its Track Objects node, which follows objects named in words…

БесплатноБез исполняемых скриптов
urban-toolkitот urban-toolkit★ 37 звёзд на GitHub

Установить sam3-tracking в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

SAM 3, Track Objects and Segment Images

SAM 3 is a model of the Model Catalog that finds every object a short phrase names, such as curb ramp or traffic cone, and follows each one from frame to frame of a video under one id. Its package has two nodes: Track Objects, model.curio.sam3/track-objects, runs it through every video of a collection, and Segment Images, model.curio.sam3/segment-images, runs it on every image of a collection, or every frame Sample Video Frames sampled from one.

Which node

  • Objects named in words, followed through a collection's videos, are a Track Objects node, wired from the Data Loading node that loads the collection (curio_load_collection(...)). Rows that are not videos are left out.
  • Its code is one call of track_objects, from the package's module sam3_tracking, which reads the node's widgets by their chips, and two settings its code sets. Change what it does through its widgets: a new node of the template starts with them, and a plan or a node.create gives one its name, its type and its value; on a node already on the canvas, node.settings.write's widgets set them by name. Keep the call, which hands it curio_load_model("model.curio.sam3"), a literal id Curio reads, and curio_derived_file.
  • Objects named in words, found in a collection's images or in a video's frames, with how much of each image they cover, are a Segment Images node (below), wired from the Data Loading node of the images, or from a Sample Video Frames node for a video's frames.
  • An Image Segmentation node does not run SAM 3: Segmentation's segment_images refuses a concept segmentation model, and a model dropped on a node swaps only for one of the node's type.
  • A table of the objects is Track Objects' own tracks, which a Python Computation node wired from it reads by its key (below); a chart of them is a Vega-Lite node on that node's table.

Its settings

Its widgets, each passed to track_objects as the argument of its name:

  • labels, a text list: the phrases to look for, short noun phrases. Any phrase works; the 35 labels of the model are the prompts its package names, such as sidewalk, crosswalk, curb ramp, tactile paving, pole, bollard, trash bin, traffic cone, construction barrier, pothole, person, car and bicycle.
  • every_seconds, a number, 0.5 by default: the gap between two frames SAM 3 looks at, in seconds. A longer gap runs faster and can miss what passes quickly.
  • from_seconds, a number, 0 by default: where the part of each video to track starts, in seconds from its start.
  • max_frames, a number, 450 by default: the most frames of a video one run looks at. A part of W seconds needs W / every_seconds frames, rounded up, so a 15 minute video fits whole at a frame every 2 s. Keep it, and fit more of a video with a larger every_seconds, or track it in parts with from_seconds and TO_SECONDS.
  • width, a number, 960 by default: the widest frames are read and drawn at, in pixels.

Two settings may be None, which no widget holds, so they are constants at the top of its code, each passed as the argument of its name in lowercase; change one in the node's code:

  • FORGET_SECONDS, 10 by default: SAM 3 lets go of an object it has not seen for that long. The object's track ends where it was last seen, and if it comes back it is a new object, with a new id and a track of its own, counted again in <label>_objects. Raise it when an object hidden for longer, such as behind a parked truck, should keep one id; each frame then takes longer, since SAM 3 follows every object it saw in that time. None follows every object to the part's end.
  • TO_SECONDS, None by default (the video's end): where the part of each video to track ends, in seconds from its start.

What it returns

Two tables, as one dict: a node wired from Track Objects reads each by its key, with a chip, [!! input_0:videos !!] or [!! input_0:tracks !!], and Simple View shows each as a tab, videos first, whose cards play the overlays.

videos has one row per video, its overlay: the frames SAM 3 looked at, each object's mask and box drawn in its label's color with its label and id, which Simple View plays in real time, each frame at its own time in the video. The row keeps the video's own columns, its fields and its position, and has:

  • file_id, path, thumbnail and image_url: the overlay's;
  • video_file_id and name: the video tracked;
  • t_s: where the overlay starts in the video, so a time in the video is t_s plus the time in the overlay;
  • duration_s, fps, width and height: the overlay's;
  • <label>_objects: how many objects of each label of labels it followed, a space written as _, such as traffic_cone_objects.

tracks has one row per object of every video: video_file_id, video, object_id (the id drawn on the overlay), label, start_s and end_s (the first and the last time it was seen, in seconds from the video's start), frames (how many of

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • evals/evals.json
  • evals/files/walk.json
  • evals/truth.json

FAQ

Что делает скилл sam3-tracking?

Use this skill when a dataflow uses SAM 3 (model.curio.sam3@1) and a task writes, wires or fixes its Track Objects node, which follows objects named in words, such as curb ramp or traffic cone, through a collection's videos, or its Segment Images node, which finds them in a collection's images or in the frames Sample Video Frames samples, or reads what either returns: two tables, each video's overlay with its counts and every object's track, or each image's counts and shares per label and its overlay. It gives each node's settings, its output's columns, how a later node reads them, and what each of its stops means.

Как установить скилл sam3-tracking?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sam3-tracking запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sam3-tracking с