Giter Site home page Giter Site logo

catsvsdogs's Introduction

CatsvsDogs

Introduction

This model is for the classification of cats vs dogs . I have used a simple CNN architecture in this model containig 2 Convolution layers followed by Max pooling layer. Then i have used 2 fully connected layer. Adam optimzer is used in this model for better optimization.Epochs used is 50.

Files

Image.py contains the code of the classifier. my_model.h5 contains the trained model. my_mode_weights.h5 contains the trained weights. 1.py contains loaded model and use for predicting the class (0/1) dogs and cats

Library used

keras. keras.model for importing Sequential model. keras.layers for importing Dense,Conv2D,Maxpool layers,Flatten. numpy,matplotlib.pyplot,

Model

This model contains total 4 layers and 2 max pool layers. First layer is convolution layer with 128 filters size (5,5) along with the bias value and the input is (64,64,3) 3 is for RBG . Strides use is 1 and padding is 'valid'(output is less than input features). Activation function used is relu . Followed by maxpool layer with size (3,3) and padding valid . Second layer is also Convolution layer with 64 filter and all the things like padding , stride is of same size but size of filters is now (3,3).Again followed by maxpool layer . Now a fuction is used for flatting the output from maxpool layer into a vector which goes into the fully connected layer with 128 nodes and activation used is relu. Last layer used contains only one node for (0/1) with activation function sigmoid.

catsvsdogs's People

Contributors

rohit3475 avatar sid573 avatar

Watchers

James Cloos 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.