Giter Club home page Giter Club logo

olivetti-cnn's Introduction

Language grade: Python License: MIT PyTorch Keras Python Scikit-learn OpenCV PyCharm

Olivetti - CNN

To run:

python -W ignore olivetti.py --write-to-file True --generate-data True

The test-set accuracy should be close to the 97%.

Steps

1. The dataset is divided into the 65% - 35% ratio.

We have 400 samples; 260 training images and 140 test images.

If we train the model on 260 images the maximum accuracy will be 5%.

python -W ignore olivetti.py --write-to-file True

2- Generate images

We will have two types of image generator: train and test

train_data_gen = ImageDataGenerator(rescale=1./255, shear_range=0.2, 
                                    zoom_range=0.2, horizontal_flip=True)

So what does it mean?

From a selected sample:

Image of example_img

10 samples are generated based on the shearing, zoom, and horizontal flip:

Image of train_gen

Each training samples are generated for 230 images

Each test samples are generated for 71 images.

Total 55.721 training images, 9935 test images.

3. Train and Test Loss (After 5 epoch)

Image of loss

Contributing ๐Ÿ’ญ

Pull requests are welcome.

For major changes, please open an issue, then discuss what you would like to change.

License ๐Ÿ“œ

MIT

olivetti-cnn's People

Contributors

ahx-code 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.