Giter Club home page Giter Club logo

kerasinception's Introduction

Inception Keras

Image Recognition using Keras and Inception-v3

Keras allows 'easy and fast' use of models: example.
Inception-v3 is a trained image recognition model for tensorflow with 93.9% Top-5 Accuracy.

Inception arch

It was trained on 1.2 million images from ImageNet to detect 1000 classes (or labels for the images).

ImageNet

It took 8 NVIDIA Tesla K40s, 2 weeks to train.

K40

This example was built and tested on c9.io or cs50.io as they provide a free Ubuntu VM (docker container) with 512MB RAM and 2GB Disk.

Install

sudo pip install -U pip 
sudo pip install tensorflow 
sudo pip install h5py pillow 

sudo pip install -U pip update pip with tensorflow
... h5py to load weights
... pillow to load image
as from tensorflow.python.keras ... import is used, as keras is not installed separately
keras path correct as of tensorflow 1.4.1

Run

python predict.py
Line 7: Loads image 'image.jpg' then runs inference on InceptionV3.
Line 14: Outputs top 5 predictions and probabilities.

Performance

To disable "cpu_feature_guard":
export TF_CPP_MIN_LOG_LEVEL=2

Improve Performance:
TensorFlow binary compiled to use: SSE4.1 SSE4.2 AVX

Tensorflow Imports

image
inception_v3
preprocess_input(x)

kerasinception's People

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.