Skip to content

StrongSort

Paper: StrongSORT: Make DeepSORT Great Again

StrongSort uses an appearance gallery, Kalman motion, camera-motion compensation, and geometric fallback association. BoxMOT runs its online tracker; detector and appearance-model selection are configured separately.

Tasks and variants

Task Default variant Other variants
2D boxes (AABB) AABB + ReID None (ReID is required)
Oriented boxes (OBB) OBB + ReID None (ReID is required)

Python AABB mode also supports optional EdgeTAM mask guidance with --tracker strongsort --tracker-backend python --asso-func iou --edgetam --mask-guidance-weights edgetam.pt. It requires IoU association and per_class=False, retains this tracker's existing association rules, and adds temporal model inference. Accuracy gains have not been established for this extension.

What BoxMOT Needs For StrongSort

  • A detector plus appearance embeddings. Appearance cues are central to this tracker. The Python implementation can generate missing embeddings from a supplied Frame or consume embeddings already attached to Detections.
  • Supports both AABB and OBB detections in BoxMOT.
  • Good when appearance matching matters more than raw speed, especially for pedestrian-style MOT benchmarks.

Direct construction accepts reid=ReIDConfig(...) or a prebuilt AppearanceEncoder, as described in the Python API.

ECC camera-motion compensation is enabled by default. Supply the current frame even when detections already contain embeddings. Set StrongSortConfig(use_cmc=False) to disable CMC, or select another supported cmc_method. Appearance remains required; missing embeddings still need image pixels for ReID. Centroid association and optional mask guidance have their own frame requirements.

Tracks normally need n_init=3 consecutive observations for confirmation. max_age retains unmatched tracks internally; it does not guarantee a visible output row on every missing observation. This page describes the online tracker. The paper's offline linking and interpolation stages are separate workflows; see evaluation postprocessing.

Use tracker.active_tracks to inspect the live identity pool, including tentative and temporarily missed tracks. Output rows contain only confirmed tracks updated in the current frame.

Python API

Pass algorithm settings through StrongSortConfig, for example StrongSort(config=StrongSortConfig(min_conf=0.6)). Direct construction and create_tracker("strongsort") use the same algorithm defaults. See the tracker configuration guide for presets and component settings.

Bases: TrackerConfig

Configure StrongSORT's appearance gallery, confirmation, and matching costs.

Shared history and association settings are inherited from TrackerConfig. max_iou_dist applies to overlap metrics; centroid fallback matching uses centroid_max_distance. Motion fusion defaults to the existing gated blend.

Parameters:

  • min_conf (float, default: 0.6 ) –

    Minimum detection confidence accepted for tracking.

  • max_cos_dist (float, default: 0.4 ) –

    Maximum cosine distance for appearance-gallery matching.

  • max_iou_dist (float, default: 0.7 ) –

    Maximum geometry distance for fallback association.

  • n_init (int, default: 3 ) –

    Consecutive hits required to confirm a track.

  • nn_budget (int | None, default: 100 ) –

    Maximum number of appearance-gallery features stored per track.

  • mc_lambda (float, default: 0.98 ) –

    Appearance-cost weight in the blend with Mahalanobis distance; the motion-distance weight is one minus this value.

  • motion_fusion (str, default: 'blend' ) –

    Appearance-pass motion handling: off, gate, or gate and blend.

  • fuse_iou (bool, default: False ) –

    Combine appearance-gallery distances with IoU before motion fusion.

  • fuse_detection_score (bool, default: False ) –

    Fuse detection confidence into appearance-pass costs before motion fusion.

  • ema_alpha (float, default: 0.9 ) –

    Previous-embedding weight in exponential smoothing; higher values retain more history and adapt more slowly.

  • gating_only_position (bool, default: False ) –

    Gate appearance matches using center coordinates instead of all measured geometry coordinates.

  • geometric_recovery_max_age (int, default: 1 ) –

    Maximum unmatched age eligible for geometric fallback after appearance matching, measured after prediction.

  • det_thresh (float, default: 0.3 ) –

    Minimum detection confidence for the shared tracking kernel.

Bases: BoxTracker

Track AABB or OBB detections with appearance and configurable camera motion.

Attributes:

  • active_tracks (list[Track]) –

    Live StrongSORT identities, including temporarily missed tracks.

  • cmc –

    Camera-motion compensation method.

Image frames are required when camera-motion compensation is enabled (ECC by default). Appearance embeddings are required and are generated with ReID when absent from inputs. Detection filtering uses min_conf, confirmation uses n_init, and geometric fallback matching uses max_iou_dist.

Parameters:

  • config (StrongSortConfig | None, default: None ) –

    Immutable algorithm settings. None selects StrongSortConfig defaults.

  • kalman (KalmanConfig | None, default: None ) –

    Immutable filter noise, timing, and supported behavior settings. None preserves tracker defaults.

  • reid (ReIDConfig | AppearanceEncoder | None, default: None ) –

    Immutable encoder configuration or a canonical appearance encoder. Missing embeddings are generated lazily; None selects the default encoder.

  • **kwargs (Unpack[BoxTrackerOptions], default: {} ) –

    Runtime per_class, is_obb, class_ids, class_names, mask_guidance, and edgetam settings.

cmc_detection_boxes

cmc_detection_boxes(dets: ndarray) -> ndarray

Apply the tracking confidence threshold unless CMC sets its own.

reset

reset() -> None

Clear active tracks and appearance galleries for a new sequence.