GithubHelp home page GithubHelp logo

ahmed-habashy / dcgan-on-cifar10 Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 9 KB

In this script, we use Deep Convolutional Generative Adversarial Networks (DCGANs) to generate new images that resemble CIFAR10 dataset images.

Python 100.00%
cifar10 cnn dcgan dcgan-keras dcgan-tensorflow dcgans gan gans

dcgan-on-cifar10's Introduction

DCGAN on CIFAR10 Dataset

In this script, we use Deep Convolutional Generative Adversarial Networks (DCGANs) to generate new images that resemble CIFAR10 dataset images.

Requirements

To run this script, you need to have the following libraries installed: Keras TensorFlow numpy matplotlib

File Structure

Copy code ├── README.md ├── dcgan_cifar10.py

Usage

To run the script, run the following command: python dcgan_cifar10.py

The script will train the generator model for 200 epochs and generate a plot of the generated images every 10 epochs. The generated images will be saved to a file called generated_plot_e<epoch_number>.png.

Note

The script saves the generator model to the file generator_model.h5 and the discriminator model to the file discriminator_model.h5. If you want to use these models for generating new images, you can load them using the Keras load_model() function.

For example, to load the generator model: from keras.models import load_model #load the generator model model = load_model('generator_model.h5')

Credits The code in this script is based on the example provided in the Keras documentation.

dcgan-on-cifar10's People

Contributors

ahmed-habashy 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.