Code Monkey home page Code Monkey logo

google-colab's Introduction

Google Colab

The goal of these Google Colab notebooks is to catpure the distribution of Steam banners and sample with a DCGAN.

Usage

  • Run download_steam_banners.ipynb to download Steam banners.
  • Run GAN.ipynb to train one of the suggested GANs, preferably DCGAN, to generate Steam banners.

Results

The dataset consists of 27,974 Steam banners with RGB channels and resized from 460x215 to 28x28 resolution. For faster computations, the dataset is aggregated and stored as a NumPy structure (.npy) in a folder called data/.

A DCGAN model was trained for 500,000 updates with a mini-batch size of 128, which is about 2,300 epochs. After the training is done, the generator and discriminator networks are stored as .hd5 files in a folder called checkpoints/.

NB: A snapshot called 128x128.zip with 31,723 Steam banners, saved as .jpg files, with RGB channels and resized to 128x128 resolution, is also provided. The data comes from another of my Github projects based on Steam API instead of SteamSpy API. This dataset is not used here, due to constraints of Google Colab (available RAM, and computation time before the hosted runtime is at risk to be killed), but it could be used in future projects such as StyleGAN for which image size is expected to have square proportions and to be a power of 2.

Generated Steam banners

Results obtained with different numbers of iterations are shown on the Wiki.

A grid of generated Steam banners after 500,000 iterations: 4k display Generated Steam banners after 500,000 iterations

Real Steam banners

A grid of real Steam banners: 4k display Real Steam banners

References

google-colab's People

Contributors

woctezuma avatar

Watchers

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