Git Product home page Git Product logo

animegan's Introduction

Anime Face Generation

Implementation of Deep Convolution GAN to generate Anime Faces ❤️

Below are the pictures of characters generated by our model (left) and some images from the training data (right).

Generated Images         Original Images
                 Generated                                                       Original

The model has been trained for 100 epochs and can be trained for more to obtain slightly better results. The Discriminator.pth and Generator.pth is included if one plans to continue the training of the model.

To generate the character images of resolution 64*64 (I know this is too low), one can use generate.py with the arguments:

--path: (Optional) Specify the path where you want to save the images.
--num_images: Number of images of Characters you want to generate.

The model can be trained using main.py and below are the arguments accepted by the script:

--dataset: Specify the location of the dataset to train the model.
--epoch: The number of epochs to train the model.
--device: (Optional: default CPU) The device on which the model is to be trained.
--continue: (Optional: default False) Set this as True if you want continue training the model.
--seed: (Optional) Set the value of seed manually to reproduce the results for an experiment.

The dataset which is used for this fun project was Anime Faces

Thanks to GAN hacks by Soumith Chintala (The repo can be found here) which made it much easier to train the model and help me learn many things.

Also to Aladdin Persson's YouTube Channel which helped me to learn implement the code.

animegan's People

Contributors

bijmuj avatar toobie-2b avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.