Giter Site home page Giter Site logo

sorin-postelnicu / dcgan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iarunava/dcgan

0.0 0.0 0.0 453.34 MB

In this repository, I reproduce the DCGAN paper using PyTorch

License: BSD 3-Clause "New" or "Revised" License

Shell 0.06% Python 1.97% Jupyter Notebook 97.97%

dcgan's Introduction

DCGAN

In this repository, I have reproduced the DCGAN paper. The paper can be found here: DCGAN The implementation is done using PyTorch. I have also released pretrained models. Also, I am publishing a colab notebook, with which you can reproduce the entire model in just one go. And with the help of the pretrained models, you can also, see amazing results, right in your browser and start playing with it.

How to use

  1. Go to the Colab Notebook: DCGAN Colab

  1. Clone the repository and cd into it
git clone https://github.com/iArunava/DCGAN.git
cd DCGAN/
  1. Start training the model
# To train the model of the Oxford Flowers Dataset
python3 init.py --mode train -dt flowers


# To train the model of the Stanford Cars Dataset
python3 init.py --mode train -dt cars


# To train the model of the Dogs Dataset
python3 init.py --mode train -dt dogs
  1. Test the model using pretrained model
python3 init.py --mode predict -gpath /path/to/pretrained/generator/model.pth

Note: You can download the pretrained model, the links are available in the readme of the flowers, cars directories under results directories.

Samples generated using DCGAN

  1. Faces Dataset

fake_41_faces

  1. Stanford Cars Dataset

Epoch 100

  1. Oxford Flowers Dataset

Epoch 200

  1. Simpsons Faces

fake_99 (2)

The images were resized to 64x64 before training

Pretrained models

  1. Generator trained on the Stanford Cars Dataset for 100 epochs: 100 epoch trained Generator

  2. Generator trained on the Oxford Flowers Dataset for 300 epochs: 300 epoch trained Generator

  3. Generator trained on the Simpsons Faces Dataset for 300 epochs: 300 epoch trained Generator

License

The code in this repository is made available for free. Feel free to fork and go crazy. Also, you are welcome to use this code in commercial purposes for free, with just proper linkage redirecting back to this repository.

dcgan's People

Contributors

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