Code Monkey home page Code Monkey logo

gan_mnist's Introduction

Certainly! Here's an example of a README.md file for your repository:

# GAN for MNIST

This repository contains code for a Generative Adversarial Network (GAN) designed to generate handwritten digits from the MNIST dataset.

## Repository Files

- `.gitattributes`: Configuration file for Git attributes.
- `.gitignore`: Specifies files and directories to be ignored by Git.
- `README.md`: The main documentation file explaining the repository and its contents.
- `classifier_model.h5`: Trained classification model for MNIST digits.
- `create_classification_model.py`: Script to create and train a classification model for MNIST digits.
- `create_generator_model.py`: Script to create and train the generator model of the GAN.
- `generate_img.py`: Script to generate images using the trained GAN.
- `generated_image.pickle`: Pickle file containing generated images.
- `generated_image.png`: PNG file of a sample generated image.
- `generator_model.h5`: Trained generator model of the GAN.
- `install_requirements.py`: Script to install the necessary dependencies for running the code.
- `predict_to_generated_image.py`: Script to generate images based on input predictions.
- `requirements.txt`: List of Python dependencies required for the project.

## Installation

1. Clone the repository:
   ```shell
   git clone https://github.com/masanbasa3k/GAN_mnist.git
  1. Navigate to the project directory:

    cd GAN_mnist
  2. Run the install_requirements.py script to install the required dependencies:

    python install_requirements.py

Usage

Training the Classification Model

  1. Run the create_classification_model.py script to create and train the classification model for MNIST digits:
    python create_classification_model.py

Training the Generator Model

  1. Run the create_generator_model.py script to create and train the generator model of the GAN:
    python create_generator_model.py

Generating Images

  1. Run the generate_img.py script to generate images using the trained GAN:
    python generate_img.py

Generating Images based on Predictions

  1. Run the predict_to_generated_image.py script to generate images based on input predictions:
    python predict_to_generated_image.py

Additional Information

  • The repository includes pre-trained models for both the classifier and generator, as classifier_model.h5 and generator_model.h5, respectively.

  • The generated images are saved as generated_image.pickle, which contains a Python object storing the generated images, and generated_image.png, which is a sample image rendered as a PNG file.

  • If you encounter any issues or have any questions, please create an issue in the GitHub repository.

Enjoy generating handwritten digits with GAN for MNIST!


Feel free to modify and customize the content based on your specific project needs.

gan_mnist's People

Contributors

masanbasa3k avatar

Stargazers

Orhan Gazi Barak avatar

Watchers

Kostas Georgiou avatar  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.