Skip to Content
Hands-On Deep Learning for Images with TensorFlow
book

Hands-On Deep Learning for Images with TensorFlow

by Will Ballard
July 2018
Intermediate to advanced
96 pages
2h 8m
English
Packt Publishing
Content preview from Hands-On Deep Learning for Images with TensorFlow

REST API definition

Let's begin by defining the REST API. This is comprised of four activities: getting the project source code from GitHub with git; installing the necessary packages and reviewing the packages that will be needed in order to run our server; editing and creating the OpenAPI or Swagger definition file in YAML; and then finally handling a POST-ed image in that code that the REST API takes to turn an actual image file into a tensor.

First, we need to clone the repository that we've provided in order to have a REST service. I'm getting this over HTTPS and cloning it with the command line:

$ git clone https://github.com/wballard/kerasvideo-server/tree/2018.git

You can put it in any directory you like. Afterwards, we'll be able ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Neural Networks with TensorFlow 2.0

Hands-On Neural Networks with TensorFlow 2.0

Paolo Galeone

Publisher Resources

ISBN: 9781789538670Supplemental Content