Git Product home page Git Product logo

dogs-vs-cats-image-classification's Introduction

Dogs-vs-Cats-Image-Classification

This is a Convolutional Neural Network (CNN) which is written in python language. This CNN model is trained on few thousand images of cats and dogs, and later be able to predict if the given image is of a cat or a dog. This model achieves over 80% accuracy.

Simple Image Classification using CNN — Deep Learning in python

The process of building a Convolutional Neural Network always involves four major steps.
Step 1: Convolution
Step 2: Pooling
Step 3: Flattening
Step 4: Full connection

Description

Cat Classifier was build using 2 layers Deep Neural Network. It was trained on 209 images and tested on 50 images.

Each image was a 64*64 RGB image. Input image was flattened to a vector. Correspnding vector was multiplied with weight matrix.

Weight matrix were randomly initalized and then added with the bias term. The result called linear unit. Then Relu of the linear unit was taken.

Same process was repeated one more time, but this time instead of Relu, we used sigmoid activation function.

If the output was greater than 0.5 it was predicted as cat and if the output was less than 0.5 it was predicted as non-cat.

Here Gradient Descent ws used to update the weights and biased terms.

Using these, Finally I have obtained traning accuracy of 98% and test accuracy of 80%.

Dataset

Data set can be downloaded from here

dogs-vs-cats-image-classification's People

Contributors

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