Code Monkey home page Code Monkey logo

image-classifier-project's Introduction

Image-Classifier-project

This project consists of two subsections:

  1. Development Notebook
  2. Command Line Application

In the first section, all the necessary packages and modules are imported. This includes:

numpy
json
tensorflow

The data- Oxford Flowers 102 is loaded using TensorFlow Datasets. A pre-trained network, MobileNet to be used, is loaded using TensorFlow Hub and its parameters are frozen and then a new neural network is created using transfer learning. The number of neurons in the output layer should correspond to the number of classes of the dataset.

In the image processing sub-section; the function process_image successfully normalizes and resizes the input image, and the function should return a NumPy array with shape (224,224,3).

The function predict successfully takes the path to an image and a saved model, and then returns the top K most probably classes for that image. This is extended to a matplotlib figure created displaying an image and its associated top 5 most probable classes with actual flower names.

For the second part; the predict.py script successfully reads in an image and a saved Keras model and then prints the most likely image class and it's associated probability. The predict.py script allows users to print out the top K classes along with associated probabilities. This script allows users to load a JSON file that maps the class values to other category names.

image-classifier-project's People

Contributors

ian-chege avatar benjam-dev avatar

Stargazers

 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.