GithubHelp home page GithubHelp logo

allensmile / keras2kubernetes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dattarajrao/keras2kubernetes

0.0 1.0 0.0 81.13 MB

Open source project to deploy Keras Deep Learning models packaged as Docker containers on Kubernetes.

Dockerfile 0.01% Python 0.03% HTML 0.01% Jupyter Notebook 99.96%

keras2kubernetes's Introduction

Keras 2 Kubernetes

Keras to Kubernetes: The Journey of a Machine Learning Model to Production

by Dattaraj Jagdish Rao - Book releasing April 2019

We have seen an exponential growth in the use of Artificial Intelligence (AI) over last few years. AI is becoming the new electricity and is touching every industry from retail to manufacturing to healthcare to entertainment. Within AI, we’re seeing a particular growth in Machine Learning (ML) and Deep Learning (DL) applications. ML is all about learning relationships from labeled (Supervised) or unlabeled data (Unsupervised). DL has many layers of learning and can extract patterns from unstructured data like images, video, audio, etc.

Keras to Kubernetes: The Journey of a Machine Learning Model to Production takes you through real-world examples of building DL models in Keras for recognizing product logos in images and extracting sentiment from text. You will then take that trained model and package it as a web application container before learning how to deploy this model at scale on a Kubernetes cluster. You will understand the different practical steps involved in real-world ML implementations which go beyond the algorithms.

  • Find hands-on learning examples

  • Learn to uses Keras and Kubernetes to deploy Machine Learning models

  • Discover new ways to collect and manage your image and text data with Machine Learning

  • Reuse examples as-is to deploy your models

  • Understand the ML model development lifecycle and deployment to production

If you’re ready to learn about one of the most popular DL frameworks and build production applications with it, you’ve come to the right place. Below is the table of contents for the book and supported code from the book for your reference.

Keras to Kubernetes: The Journey of a Machine Learning Model to Production


Keras 2 Kubernetes

Keras 2 Kubernetes - Free Utility

This is an Open Source project that tries to bridge the gap between Data Scientists and Software Developers. Keras is the most popular Deep Learning framework that allows Data Scientists to build and validate models on image data. Model that can learn to Classify images are stored as H5 files. Using Keras2Kubernetes these models can be easily packaged into Docker containers with a single command and deployed as microservices.

Command:

docker run -p <<your port>>:7001 -v /mypath:/model dattarajrao/keras2kubernetes

Here port 7001 is the port the container exposes - you can change to port on your machine. Describe a folder on your machine with a Keras model file named as 'model.h5'. The Docker container will start serving model from this folder (name has to be model.h5).

You can test the application by pointing your browser to: http://localhost:7001

or use CURL command to validate the model as API:

curl --form image=@/mymachinepath/image.jpg http://localhost:7001/inference

also - JSON description of the model is available at: http://localhost:7001/model

This can easily be packaged as a Kubernetes deployment and service using the following YAML file: https://github.com/dattarajrao/keras2kubernetes/blob/master/deploy2k8s.yaml

Please send across any questions, comments and feedback to: Dattaraj Rao

keras2kubernetes's People

Contributors

dattarajrao 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.