Giter VIP home page Giter VIP logo

gans-pytorch's Introduction

GANs-pytorch

Implementation of different generative adversarial networks using pytorch. GAN consist of two neural network that compete each other to get better in a particular task while simultaneously trying to defeat each other. The two networks namely generator that is tasked with creating a data(imagery, text, sound) out to pure noise and a discriminator that discrimnate between real data and fake data forged by generator, both the netwroks learn from each other and get better until eventually generator makes data that it is impossible for discrimnator to differentiate real data from fake data anymore and outputs 1/2 for all inputs.

Requirements-

	python==3.8.3
	pip==20.0.2
	matplotlib==3.1.3
	pytorch==1.5.0
	torchvision==0.6.0
	numpy==1.18.4
	opencv-python==4.2.0.32
	GitPython==3.1.2
	tensorboard==2.2.2
	imageio==2.9.0
	jupyter==1.0.0

1) Classic GAN

Classic gan is the implementation of vanilla gan developed originally by Ian Goodfellow in his paper Generative Adversarial Nets proposed in 2014. It uses MNIST dataset and developes real looking handwritten digits from noise and feedback by discrimnator.

Original paper- https://papers.nips.cc/paper/5423-generative-adversarial-nets.pdf

Classic gan output

Usage

To train-

	train_classic_gan.py --num_epochs --batch_size --enable_tensorboard 

 

This implementation is inspired from pytorch-GANs created by Aleksa Gordic

 

I will be uploading implementation of other gans in future like Cycle-GAN, DCGAN and StyleGAN trying to follow the code style of classic GAN.

 

Be my guest to build over my code and use it wisely

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.