Giter VIP home page Giter VIP logo

anime-gans's Introduction

Anime-GANs

Anime-GANs is a project that uses Generative Adversarial Networks (GANs) to generate anime faces. The project is implemented in Python using the PyTorch library.

Training Progress

Dataset

The dataset used for training the GANs can be found here.

Description

The project consists of two main components: the Generator and the Discriminator. The Generator generates new anime faces from a latent space, while the Discriminator tries to distinguish between real and generated faces.

The training process continues for 300 epochs. The image above shows the generated anime faces after 150 epochs. The training was normal up to this point, but the generations in later epochs started getting progressively weird. This could be due to the model beginning to overfit to the training data, or the generator and discriminator getting out of sync, a common issue in GAN training known as "mode collapse".

Code

The code for the project is structured as follows:

  • Import necessary libraries and set up parameters
  • Define data transformation and load the dataset
  • Define the Generator and Discriminator classes
  • Initialize the Generator and Discriminator, and set up the optimizers and loss function
  • Train the Generator and Discriminator
  • Save the generated images and the model

Usage

To run the script, simply execute the following command:

python animegans.py

This will start the training process. The generated images will be saved in the /output directory, and the model will be saved in the /model directory.

Requirements

  • Python 3.6 or later
  • PyTorch 1.0 or later
  • torchvision 0.2.2 or later
  • NumPy 1.15.4 or later

anime-gans's People

Contributors

aacashh 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.