
Extract backbone embeddings from a fitted MoCo v2 encoder
Source:R/foundation_moco.R
foundation_moco_embed.RdReturns the feature_dim backbone output of the query encoder
(the projection head is by design discarded after pre-training, so
the returned embedding is the reusable representation suitable for
downstream DSM tasks). Set projection = TRUE to obtain the
normalised projection-head output instead, which is useful when
visualising the contrastive space.