hyrax.models.simclr
Classes
Normalized Temperature-scaled Cross Entropy Loss. Based on Chen, 2020 |
|
Transformation Class specifically for ColorJitter to prevent wrong domain during the augmentation |
|
SimCLR model. Implementation based on Chen, 2020 |
Module Contents
- class NTXentLoss(temperature=0.1)[source]
Bases:
torch.nn.ModuleNormalized Temperature-scaled Cross Entropy Loss. Based on Chen, 2020
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- class PositiveRescale(transform)[source]
Transformation Class specifically for ColorJitter to prevent wrong domain during the augmentation