GithubHelp home page GithubHelp logo

nikheelpandey / byol-pytorch Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 231 KB

PyTorch implementation "Bootstrap your own latent: A new approach to self-supervised Learning"

License: Apache License 2.0

Python 2.73% Jupyter Notebook 97.27%

byol-pytorch's Introduction

Implementation of BYOL

Reference: https://arxiv.org/abs/2006.07733

Bootstrap Your Own Latent proposes a new self-supervised image representation learning approach. It uses pairs consisting of different views of the same image as data input.

Architecture

The proposed learning approach uses an online network and a target network as shown below in order to generate two encodings of different views of the same image. Architecture

Loss

The l2 loss is used to calculate and backpropagate gradients in only the online network whereas the target network uses an exponential moving average of gradients from the online network.

Optimizer

The BYOL model is trained using the LARS optimizer.

After training, only the encoder of the online network is kept and a classifier can be trained over that encoder.

Performance

The l2 loss function after 25 epochs on CIFAR10. The loss function for the BYOL model should further go down as we increase the epochs parameter. The epochs parameter is also responsible for scheduling the learning rate.Contrastive Loss @ 25 epochs

TODO:

  • Train classifier on the online encoder.
  • Evaluate the classifier accuracy on STL10.

byol-pytorch's People

Contributors

nikheelpandey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.