Giter Site home page Giter Site logo

ibraam-nashaat / dogs-image-classifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.72 MB

Dogs Image Classifier classifies pet images to dogs and not dogs and identify the breeds of the classified dogs using transfer learning via PyTorch pretrained models.

Python 98.89% Shell 1.11%
alexnet classifier dog-breed-classifier dog-breeds pretrained-models pytorch resnet18 transfer-learning vgg16 dogs-classifier

dogs-image-classifier's Introduction

Dogs-Image-Classifier

  • Dogs Image Classifier classifies pet images to dogs and not dogs and identify the breeds of the classified dogs using transfer learning via PyTorch pretrained models.
  • This project was done as a part of Udacity's AI Programming with Python Nanodegree, where a skeleton of the project was provided.

Objectives

  1. Correctly identify which pet images are of dogs (even if the breed is misclassified) and which pet images aren't of dogs.
  2. Correctly classify the breed of dog, for the images that are of dogs.
  3. Determine which CNN model architecture (ResNet, AlexNet, or VGG), "best" achieve objectives 1 and 2.
  4. Consider the time resources required to best achieve objectives 1 and 2, and determine if an alternative solution would have given a "good enough" result, given the amount of time each of the algorithms takes to run.

Project's Outline

  • Time the program: Use Time Module to compute program runtime.
  • Get program Inputs from the user: Use command line arguments to get user inputs.
  • Create Pet Images Labels:
    • Use the pet images filenames to create labels.
    • Store the pet image labels in a data structure (e.g. dictionary).
  • Create Classifier Labels and Compare Labels:
    • Use the Classifier function to classify the images and create the classifier labels.
    • Compare Classifier Labels to Pet Image Labels.
    • Store Pet Labels, Classifier Labels, and their comparison in a complex data structure (e.g. dictionary of lists).
  • Classifying Labels as "Dogs" or "Not Dogs":
    • Classify all Labels as "Dogs" or "Not Dogs" using dognames.txt file.
    • Store new classifications in the complex data structure (e.g. dictionary of lists).
  • Calculate the Results:
    • Use Labels and their classifications to determine how well the algorithm worked on classifying images.
  • Print the Results

Note

  • The output of the each model in the project was stored in the following .txt files:
    • alexnet_pet-images.txt
    • resnet_pet-images.txt
    • vgg_pet-images.txt

dogs-image-classifier's People

Contributors

ibraam-nashaat avatar

Watchers

 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.