Giter Site home page Giter Site logo

yaazipedia / cat-dog-image-classifier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yatheen07/cat-dog-image-classifier

0.0 1.0 0.0 3.25 MB

This Repository contains cat dog image classifier model implemented Using Convolutional Neural Network.

Python 100.00%

cat-dog-image-classifier's Introduction

cat-dog-image-classifier

Complete Steps to implement a CNN to classify between cat and dog image

Step 1 : Getting the Dataset

The dataset is available in the link : https://www.kaggle.com/c/dogs-vs-cats/data
Download this dataset, extract and store it in localdisk

Step 2 : Installing Required Packages [Python 3.6]

1. OpenCV     ---> '3.4.0'     [ Used to handle image operations like : reading the image , resizing , reshaping]
2. numpy      ---> '1.14.4'    [ Image that is read will be stored in an numpy array ]
3. TensorFlow ---> '1.8.0'     [ Tensorflow is the backend for Keras ]
4. Keras      ---> '2.1.6'     [ Keras is used to implement the CNN ]

Step 3 : How the Model Works ??

Note : Spyder is used to develop the code. Set the working Directory Correctely.
       Open the trained_model.py file and set the image you want to test [Ref. Line Number 24 ]
       
This will predict the output for the image you have specified. 
Once you have understood the basic working of the model, its now time to build the classifier from the scratch.

Step 4 : Building the Classifier

Steps involved in building a classifier is briefed in classifier.py
13 actual substeps are involved in building your CNN! 
This will build the model and save the trained model as a Json file. 
The weights of the trained model are stored in a seperate file.

Step 5: How to use the trained Model ?

Once you have imported the packages, you can directely load your trained classifier from the json file.
Then load the weights from the h5 file saved in the previous step.
This basically has 6 substeps before you can see the result.

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.