Giter Club home page Giter Club logo

nopemon's Introduction

nopemon

Generating Pokémon with various GAN generator architectures, using pytorch. Part of the Seminar on Computer Vision, University of Helsinki, 2020.

What's this?

I got Generative Adversarial Networks as the subject for my seminar report, and I decided to pit two advanced GAN generator architectures agains each other, using a tried-and-true DCNN as the baseline. The seminar report, with a bunch of images, explanation and results, is available here.

Disclaimer

The code is still quite messy. I'll try to get around to cleaning it a bit soon!

Getting started

  1. Make sure you have Python 3 installed
  2. Install requirements: pip3 install -r requirements.txt
  3. Check that everything works: python3 ./discriminator.py
    • This should result in Trainable parameters: 2765568
  4. You're good to go!

Data

The raw data is expected to consist of

  • .png -format images with
  • one row of rectangular frames each

Personally, I used this dataset, and the folders in data.py are set up so that this dataset will work if extracted under 3d/3D Battlers in the project directory. Alternatively, you can change SPRITE_LOCATIONS to load data from elsewhere.

To generate a dataset for training, just make sure that you have valid sprites in SPRITE_LOCATIONS and run data.py. This will split the input sprites, pick a given number of frames from them and save the frames under data/pokemon (where PyTorch expects it to be).

Training

To train the models, just comment out the relevant rows under if __name__ == '__main__' in training.py and run it. (I know, it's a bit of a mess, sorry!)

Visualization

This repo includes some nice interactive visualizations for SAGAN and StyleGAN. To see those, run sagen_visualize.py or stylegen_visualize.py, respectively.

nopemon's People

Contributors

laitalaj avatar

Stargazers

Teemu Sarapisto 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.