Giter Site home page Giter Site logo

acarcos / cat-dog-classification Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 58.68 MB

Machine learning classification using VGG16 to identify cats and dogs.

Home Page: https://acarcos.github.io/cat-dog-classification/index.html

CSS 3.06% HTML 44.54% JavaScript 2.34% Jupyter Notebook 50.07%

cat-dog-classification's Introduction

Dogs vs. Cats

images/dog-cat.jpg

Kaggle Competition

This competition consists to create an algorithm to classify whether images contain either a dog or a cat. This is easy for humans, dogs, and cats. The computer will find it a bit more difficult.

Data Set

Asirra (Animal Species Image Recognition for Restricting Access) is a HIP that works by asking users to identify photographs of cats and dogs. This task is difficult for computers, but studies have shown that people can accomplish it quickly and accurately.

Asirra is unique because of its partnership with Petfinder.com, the world's largest site devoted to finding homes for homeless pets. They've provided Microsoft Research with over three million images of cats and dogs, manually classified by people at thousands of animal shelters across the United States. Kaggle is fortunate to offer a subset of this data for fun and research.

Image Recognition Attacks

While random guessing is the easiest form of attack, various forms of image recognition can allow an attacker to make guesses that are better than random. There is enormous diversity in the photo database (a wide variety of backgrounds, angles, poses, lighting, etc.), making accurate automatic classification difficult.

Algorithm

  • To solve this classification problem, a Convolutional Neural Network was trained using a VGG16 arquitecture and a pre-trained model. Since there are some approaches to this problem using the Sequential and Fine-Tuning model, here the Transfer Learning method was used.

  • The algorithm was runned in Google Collab GPU taking 15 minutes for training, and giving an accuracy of 0.87.

  • The neural network was trained with a dataset of around 600 images and tested with two different sets: i) the dataset in the competition page and, ii) personal and internet photos.

Here is a view of some testing images (0: cat, 1: dog).

References

Kaggle

VGG16 Notebook for Fine-Tuning

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.