GithubHelp home page GithubHelp logo

nathan-yan / mnist-neural-automata Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 32.94 MB

Generating novel MNIST digits using neural cellular automata.

License: MIT License

Python 100.00%
mnist mnist-dataset automata neural-network gans autoencoder cellular-automata

mnist-neural-automata's Introduction

a gif of generated mnist digits

Growing MNIST digits with differential cellular automata.

This is based heavily on Mordvintsev et al. [https://distill.pub/2020/growing-ca/]. To generate novel digits you can run automata_test.py, which will use the pretrained models inside the ./models directory.

To train your own network, run automata.py first to train the differential cellular automata and autoencoder to generate good looking MNIST digits. Then using the generated model, run automata_persistent_mnist.py to train the automata to generate persistent digits. Finally using the new generated model, run gan_mnist.py to train a Generative Adversarial Network on the latent vectors of the autoencoder. Finally using that model and the model from automata_persistent_mnist.py, you can run automata_test.py. The code right now is kinda messy so I'm working on cleaning it up and making the training pipeline easier.

Using this autoencoder/GAN technique is definitely not the best way of approaching it, and I'm hoping to train the whole thing end-to-end as a GAN to generate more realistic looking digits.

Dependencies

  • numpy>=1.16.0
  • matplotlib>=3.0.0
  • torch>=1.4.0

mnist-neural-automata's People

Contributors

nathan-yan avatar nathanchrisyan avatar

Stargazers

 avatar Yuma Matsuoka avatar Phil Tomson avatar  avatar Elias Eskelinen avatar

Watchers

 avatar

Forkers

philtomson

mnist-neural-automata's Issues

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.