module

pipeline

module unitrack.pipeline

Stage protocols, combinators, merges, and the hard-to-soft tree rewrite.

Stages compose into a tree consumed by the :class:`~unitrack.tracker.Tracker`. The protocols (:class:`Stage`, :class:`~unitrack.pipeline.CostProducer`, :class:`GateProducer`, :class:`~unitrack.pipeline.Associator`, :class:`~unitrack.pipeline.Lifecycle`, :class:`~unitrack.pipeline.Visibility`) define the contract; the combinators (:class:`Pipe`, :class:`Sequential`, :class:`Parallel`, :class:`Gated`, :class:`Filter`, :class:`Iterate`) wire stages together.

Members

module

  • baseStage protocols and the construction-time type error.
  • combinatorsStage-tree combinators.
  • diffHard-to-soft node-replacement registry for ``differentiable=True``.
  • mergeMerge strategies for :class:`~unitrack.pipeline.combinators.Parallel`.

type

  • LifecycleStatus machine over a merged :class:`~unitrack.data.Tracklets` snapshot.
  • MaxMerge by elementwise maximum of cost matrices; OR-combines gates.
  • MeanMerge by elementwise mean of cost matrices; AND-combines gates.
  • MergeProtocol for strategies that combine a list of cost expressions.
  • MinMerge by elementwise minimum of cost matrices; OR-combines gates.
  • SoftRegistryRegistry mapping hard node types to soft-replacement factories.
  • StackReduceApply a user-supplied reducer to stacked cost matrices.
  • VisibilityReduce a lifecycle output to the user-facing list of visible IDs.
  • WeightedSumMerge by weighted sum of cost matrices; AND-combines gates.

function

  • default_soft_registryBuild the default hard-to-soft registry for differentiable mode.
  • walk_swapReplace nodes in the stage tree by structural recursion.

Source: unitrack/pipeline/__init__.py:1