Giter VIP home page Giter VIP logo

simclr_pytorch's Introduction

Implementation of SimCLR in PyTorch

The whole code has been implemented in Jupyter Notebook.

Using LARS

param_names = []
for n,p in self.net.named_parameters():
    params.append(p)
    param_names.append(n)
parameters = [{'params':params,'param_names':param_names}]
optimizer = LARS(parameters,
                 lr = self.lr,
                 weight_decay = self.weight_decay,
                 exclude_from_weight_decay=["batch_normalization", "bias"])

simclr_pytorch's People

Contributors

sadimanna avatar

Stargazers

 avatar Hyunseok, Lee avatar Yifan Li avatar jdlamstein avatar Ahmed OSMAN avatar  avatar  avatar  avatar Saketh Bachu avatar Jonathan Choi avatar Charlie Cheng-Jie Ji avatar  avatar Grigorios Kalliatakis avatar

Watchers

James Cloos avatar  avatar

simclr_pytorch's Issues

Test results of your experiment.

I cannot find the test result of you experiment report anywhere both in the blog or in the github notebook.

P.S. One assumption is that the value must be very high since the network is pre-trained with ImageNet isn't it?

Why do we need this part?

Hi, @sadimanna , in the PreModel, why do we need below? Thanks!
self.pretrained.conv1 = nn.Conv2d(3, 64, kernel_size=(3, 3), stride=(1, 1), bias=False)

Imrealun is not defined

----> 1 criterion = Imrealun(batch_size = 128, loss_weight = 0.5, temperature = 0.5)

NameError: name 'Imrealun' is not defined

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.