Coder Social home page Coder Social logo

arcaneirvine / cat_dog_classifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 189.04 MB

In this project i will be creating a deep neural network classifier that recognizes cats or dogs using tensorflow and image data.

License: MIT License

Python 100.00%
deep-neural-networks tensorflow opencv data-science

cat_dog_classifier's Introduction

Cat or Dog Classifier

Deep Neural Network Classifier that recognizes cat or dog images. This model is easy to use or even tweak it so it classifies different objects of your choice instead of cats or dogs. All you have to do is simply change the data from cats and dogs to objects of your desire!

How it works

  • Grabbed image data off the web (used a tool to massively download images from a single page of cats/dogs)
  • Cleared the data by removing too small or faulty images
  • Loaded the data
  • Scaled the data
  • Split the data
  • Built the NN model
  • Trained model on the data
  • Plot performance
  • Test the model
  • Saved the model

Requirements

  • Python 3.9
  • Tensorflow
  • OpenCV
  • Matplotlib
  • Numpy

How to tweak the model work for your desired data

  • Get some image data between some objects you would want to differentiate
  • If you want to change the project's folder setup you will also need to change the directories in the code accordingly
  • Otherwise throw your images on the 'Data' folder as it is and remove the 'cat' and 'dog' ones
  • (reccomended to manually remove images smaller than 10kb)
  • Run the script and wait for the training to finish and you now have the model of your desire saved in the 'models' directory

Enjoy!

** for the cam_identify.py script you need to hit 'p' after you have an image in front of your webcam ready to get identified and 'q' to close the webcam.

cat_dog_classifier's People

Contributors

arcaneirvine avatar

Watchers

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