Coder Social home page Coder Social logo

ytobi / dog-breed-classifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7.24 MB

A deep learning model trained for predicting canines breed.

License: GNU General Public License v3.0

Jupyter Notebook 97.83% Python 2.17%
deep-neural-networks convolutional-neural-networks pytorch cnn-model classification-model python

dog-breed-classifier's Introduction

Dog Breed Classifier

In this project, I built a pipeline to process real-world, user-supplied images. Given an image of a dog, the algorithm will identify an estimate of the canine’s breed. If supplied an image of a human, the code will identify the resembling dog breed. The project is part of fulfillment for a nanodegree at Udacity.

Installation

For best experience with managing dependency I advise you install Anconda or miniconda.

Create a virtual environment with conda

conda create --name deep-learning

Activate environment.

source activate deep-learning

Install dependencies.

pip install -r requirements.txt

Download or clone this Dog_Breed_Classifier repository. Launch the app with jupyter-notebook.

jupyter-notebook dog_app.ipynb

Usage

Setup

Download the dog dataset. Unzip the folder and place it in this project's home directory, at the location /dog_images.

Download the human dataset. Unzip the folder and place it in the home directory, at location /lfw

Note: If you are using a Windows machine, you are encouraged to use 7zip to extract the folder.

Run

Run all code cells in the notebook (This will take a very very long time to run on a CPU as the code will construct and train a deep convolutional neural network, preferably(for Goodness sake) you should run on a GPU).

Test the app by passing a file path of your own image(s) to the run_app function. The run_app function predicts the breed of dog for the image provided if a human or any other image is provided the model predicts the resembling dog breed.

The trained model achieved 81% accuracy in prediction canine breed.

dog-breed-classifier's People

Contributors

ytobi avatar

Watchers

 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.