This project is a SimCLR training pipeline compatible with :
- MNIST Dataset
- CIFAR10 Dataset
- TMarks Dataset
- Shearo Dataset
To use this repo, install library / dependancies :
conda create --name vae
conda activate vae
conda install pytorch torchvision cudatoolkit=11.3 -c pytorch
pip install -r requirements.txt
To launch a training:
python train_CLR.py # train contrastive learning
In order to modify the dataset, you can use use argparse parameters.
In this repo, we have implemented :
What | Code |
---|---|
A Convolutive Encoder | |
A Non Linear Projection Head | |
Augmentations |
Let's say we have an image
We have features space :
And the prediction space :