Giter Club home page Giter Club logo

gan-traffic-sign's Introduction

Deep Convolutional GAN in Tensorflow for Traffic Sings

DCGAN Tensorflow implementation of Deep Convolutional Generative Adversarial Networks was done by Kim Taehoon. Also the huge part of this README is copied from his repo.

alt tag

  • Brandon Amos wrote an excellent blog post and image completion code based on this repo.
  • To avoid the fast convergence of D (discriminator) network, G (generator) network is updated twice for each D network update, which differs from original paper.

Prerequisites

Dataset

To training purposes I compiled 3 datasets (TSRD (I suppose with Japanies signs), Belgium-TSC, German-GTSRB) and extracted only speed limit signs with various numbers, stop sign, road closed, no entry for vehicular traffic.

Usage

To train a model with downloaded dataset:

$ python main.py --dataset DATASET_NAME --input_height=28 --output_height=28 --train
or
$ python main.py --dataset DATASET_NAME --input_height=108 --train --crop

To test with an existing model:

$ python main.py --dataset DATASET_NAME --input_height=28 --output_height=28
or
$ python main.py --dataset DATASET_NAME --input_height=108 --crop  

Results

Progress of training

Basic dataset Blue Cirle dataset Blue Circle with preprocessing
result blueres newblue

Generated Signs

Basic dataset Blue Cirle dataset Blue Circle with preprocessing
res blueres newblue

After 6th epoch:

result6

After 10th epoch:

result10

After 17th epoch:

result17

After 24th epoch:

result24

TODO:

[DONE] Remove mnist related code

  1. Preprocessing of dataset: apply auto crop and [DONE] brightness/contrast adjustment
  2. Play around with networks architecture
  3. Add traffic sign classifier and compare result on "real" signes and DCGAN-generated

Author

Aleksander Lukashou / @va9abund with reference to @carpedm20

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.