Skip to content

Detection

Detection finds the subject in every frame, writing a bounding box and mask per detection. It runs a prompt-capable model (SAM 3, given a text prompt) or a trained or imported closed-set model.

Parameters

Model

model_id · string · required

Detection model to run: a built-in, experiment-trained, or imported model id.

Size / variant

model_variant · string

Model size/variant, if the model has size options; omit for the default.

Confidence threshold

conf_threshold · number · default 0.5 · range 0–1

Minimum detection confidence to keep (0–1).

Batch size

batch_size · integer · range ≥ 1

Frames per GPU forward pass. Omit to use the model's default (4 for batch-capable YOLO models, 1 for SAM3); bounded by GPU memory.

Use every

every_n_frames · integer · default 1 · range ≥ 1

Use every Nth frame of the video: 1 detects every frame, 4 detects frames 0, 4, 8, … Cost falls roughly in proportion. Tracking and embedding count the same source frames, so they can only go coarser by a multiple of this.