Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the user guide for the big picture.
nidl.estimators.ssl.utils.CoMMProjectionHead¶
- class nidl.estimators.ssl.utils.CoMMProjectionHead(input_dim=2048, hidden_dim=512, output_dim=256)[source]¶
Bases:
ProjectionHeadProjection head used in CoMM [1].
It is a 3-layer MLP, with batch normalization and ReLU non-linearities after the first two layers. Set sync_batchnorm=True in the estimator to synchronize the batch normalization across devices.
- Parameters:
- input_dimint, default=2048
Input dimension.
- hidden_dimint, default=512
Dimension of the two hidden layers.
- output_dimint, default=256
Output dimension.
References
[1]Benoit Dufumier, Javiera Castillo-Navarro, et al., “What to align in multimodal contrastive learning?”, ICLR 2025.