Code Monkey home page Code Monkey logo

jem-experiments's Introduction

Joint Energy-based Models

Here is a rough implementation of Your Classifier is Secretly an Energy Based Model and You Should Treat It Like One (Grathwohl, Wang, Jacobsen, Duvenaud, Norouzi, Swersky, 2019).

The code is hacked together and there are certainly more than a few bugs. I expect to clean it up and fully replicate the paper's results in the coming ~week.

Currently (Wednesday 12/11) I have only trained a small resnet to 50% accuracy on 10% of CIFAR10. Although training becomes very unstable towards the end, the generated samples are promising.

Generally I stopped the samples towards the right earlier so they are noiser and less mode-collapsey:

Class Samples
Plane
Car
Bird
Cat
Deer
Dog
Frog
Horse
Ship
Truck

Next steps, roughly in order:

  • Make the restart code more sophisticated so I can train longer without babysitting it so much. Currently it diverges a LOT and the auto restart only works maybe 50% of the time.
  • Train on all of CIFAR10 to convergence
  • Make some pretty plots of inception scores (I know, they're considered harmful)
  • Clean up the code so others can train and generate samples
  • Try and figure out methods to stabilize training (SGLD & loss tuning)

jem-experiments's People

Contributors

rjeli avatar

Stargazers

Samuel Bancroft avatar Andrew Tian avatar

Watchers

James Cloos avatar  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.