DREEM Models¶
User-facing models¶
There are two main model APIs users should interact with.
GlobalTrackingTransformeris the underlying model architecture we use for tracking. It is made up of aVisualEncoderand aTransformerEncoder-Decoder. Only more advanced users who have familiarity with python and pytorch should interact with this model. For others see belowGTRRunneris apytorch_lightningaround theGlobalTrackingTransformer. It implements the basic routines you need for training, validation and testing. Most users will interact with this model.
Model Parts¶
For advanced users who are interested in extending our model, we have modularized each component so that its easy to compose into your own custom model. The model parts are
VisualEncoder: A CNN backbone used for feature extraction.Transformerwhich is composed of a:- SpatioTemporal
Embeddingwhich computes the spatial and temporal embedding of each detection. TransformerEncoder: A stack ofTransformerEncoderLayersTransformerDecoder: A stack ofTransformerDecoderLayers
- SpatioTemporal
- An
AttentionHeadwhich computes the association matrix from the transformer output.