Code Monkey home page Code Monkey logo

gan_waifu_generator's Introduction

GAN_Waifu_Generator

A Generative Adversarial Network trained on a dataset of over 60,000 anime girl images to generate new ones. Based on the original model proposed by Goodfellow et al. in the paper "Generative Adversarial Networks", this model simultaneously trains both a generator to create new images and a discriminator to distinguish between the generated images and the real images. Subsequently, the generator then is able to create accurate waifu images which, if you use them as profile pictures as often as I do, is a big help.

Dataset

Unfortunately I couldn't find the link to the original source of the 60,000 waifu images (;-;). However, the dataset is essentially comprised of 63633 square images of anime girl faces of different resolutions. All of them were resized to be 64x64 when training the model.

Sample Results

Single Images

Groups of Images

Gif

Note: This is a size-reduced version of the original GIF, hence its lowered resolution and slow change speed.

Training Results

Loss values were calculated as an mean average over the first and last 1000 values for the initial losses and final losses, respectively.

Initial Generator Loss: 1.02

Final Generator Loss: 1.16

Initial Discriminator Loss: 0.65

Final Discriminator Loss: 0.66

Future Improvements

This project was mostly limited due to the complexity of the GAN (the GAN used was fairly simple) and the low-quality images used. In the future, if a dataset comprised of higher-resolution waifu pictures was used, it would eliminate some of the effects related to the weird green pixels generated and produce much more usable profile pictures. Also, further research needs to be done into why the loss values for the generator and discriminator did not decrease.

Acknowledgments

Generative Adversarial Networks by Goodfellow et al.: https://arxiv.org/pdf/1406.2661.pdf

Training code based off of Nagesh Singh Chauhan's: https://www.kdnuggets.com/2020/03/generate-realistic-human-face-using-gan.html

gan_waifu_generator's People

Contributors

chubbyman2 avatar

Stargazers

 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.