Git Product home page Git Product logo

convolutional-autoencoder's Introduction

convolutional autoencoder

A convolutional autoencoder and associated utilies to train the network. This model was developed specifically for the compression/distillation of Flappy Bird game frames, so layers are currently sized to take inputs of 288 x 512 RGB images. Images of different resolution will be rescaled to 288 x 512.

System Setup

This code was developed and tested on Ubuntu 18.04, using Python 3.5 and Pytorch 1.3.1.

Run the Code with Defaults

  1. [optional] Clone the [Flappy Bird Deep Q Learning repo] (https://github.com/uvipen/Flappy-bird-deep-Q-learning-pytorch)
    git clone https://github.com/uvipen/Flappy-bird-deep-Q-learning-pytorch
  2. [optional] Run the game with the trained DQN model.
    python3.5 test.py (or appropriate python version) You'll notice this version has no background. If you want the background go grab a different repo or run it in pygame.
  3. While the game is running, use something like [vokoscreen] (https://github.com/vkohaupt/vokoscreen) to grab frames and and save them to the train_data/flappy_bird directory.
    sudo apt-get install vokoscreen
  4. Add the filenames of the images to train_data/flappy_bird_images.txt. Modify directories in train.py as necessary to point to your local directory.
  5. python3.5 train.py (or appropriate python version)

Options

There are currently two optimizers available: Adam and SGD. The model in saved_models was trained with Adam and the default parameters. The SGD option includes some extras for allowing a burn-in period among other things.

convolutional-autoencoder's People

Contributors

bigrobinson avatar

Watchers

 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.