yamle.methods.contrastive module#
- class yamle.methods.contrastive.SimCLRVisionMethod(random_augment_num_ops=2, random_augment_magnitude=10, *args, **kwargs)[source]#
Bases:
BaseMethodThis is the base class for contrastive pre-training of vision models.
It uses RandAugment to perform random augmentations on the input images to create two views.
- Parameters: