Giter Site home page Giter Site logo

cartoon_gan's Introduction

This is a simple DCGAN network that generates cartoon faces. The code from this implementation is pretty much borrowed form this awesome PyTorch tutorial with some minor adjustments. The only purpose of this repo is to explore/experiment GAN and have some fun.

While the dataset used in this repos is cartoon faces, the code can pretty much generate all kinds of images.

to get started, do pip install -r requirements.txt

use python run.py --begin_training True --img_path [PATH to training images directory] to train model

use python run.py --generate_img True --num_img [number of images] to generate image(s) from random noise

For more options, see python run.py -h

Example:

Noise:

img 1

Generated output:

img2

You should be able to build a grid of whatever size you configure.

An example of grid size =3, which means running (python run.py --generate_img True --num_img 9):

single_output

cartoon_gan's People

Contributors

hiepnguyen034 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mishav78

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.