/SimCLR-tensorflow2

This Repository contains unoffical implementation of SimCLR paper in Tensorflow2

Primary LanguageJupyter NotebookMIT LicenseMIT

A Simple Framework for Contrastive Learning of Visual Representation. (SimCLR)

Image of SimCLR Arch

Dependencies

  • tensorflow 2.x

file structure

pretrained_weights                : pretrained weights of simclr model.
images                            : contains images like plots.
simclr-data-creator.ipynb         : file contains code for creating a custom imagenet data.
simclr-model.ipynb                : file contains code for training simclr model.
simclr-linear_evaluator-lg.ipynb  : file contains code for the linear evaluation of the trained simclr model, with logistic regression.
simclr-nonlinear-evaluator.ipynb  : file contains code for nonlinear evaluation of trained simclr moel, with None linear dense tensorflow layer.
resnet-supervised-model.ipynb     : file contains code for creating a supervised model for the custom imagenet data.  

Acknowledgements

Dataset

Dataset, is created using the simclr-data-creator.ipynb file, which creates a custom imagenet data.

References