Skip to content

Repository files navigation

SimCLR

Implementation of SimCLR (A Simple Framework for Contrastive Learning of Visual Representations)

  • Requirements

    • numpy
    • torch
    • torchvision
    • opencv-python
  • command

 - python3 main.py --epochs [epochs] --batch_size [B] --temperature [T] --strength [S] --out_dim [out_dim] --num_worker [N] --valid_size [val_size] - python3 linear_eval.py --batch_size [B] --simclr_path [path] --dataset [dataset] --hid_dim [hid_dim] --num_worker [N] --finetune --baseline
  • results
DatasetSTL10CIFAR10
Baseline54.80170.653
No Finetune66.19250.401
Finetune73.86671.795

Reference

  1. A Simple Framework for Contrastive Learning of Visual Representations (https://arxiv.org/abs/2002.05709)
  2. STL-10 Dataset (https://cs.stanford.edu/~acoates/stl10/)

About

A Simple Framework for Contrastive Learning of Visual Representations (ICML'20)

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages