Skip to content

andrew-k-21-12/tf-serving-client-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is a kind of boilerplate to be used to get acquainted with a process of TensorFlow Serving client development using C++ as a programming language and CMake as a build system.

PREREQUISITES

To use a TensorFlow Serving client provided in this project you should install next dependencies:

COMPILATION AND USAGE

Before the compilation make sure that you have provided some host with a running TensorFlow Serving model in the main.cpp file.

The compilation is quite similar to ones which use CMake system. But make sure to provide a path to the installed Protobuf Compiler using Protobuf_PROTOC_EXECUTABLE for it. For example you can use a bunch of commands (from the root of the repo):

mkdir build && cd build && cmake -D Protobuf_PROTOC_EXECUTABLE=/usr/local/bin/protoc .. && make

A built executable accepts one argument with a path to an image to be sent to the server:

./tf-serving-client-cpp test.jpg

About

An example of TensorFlow Serving client to send images for prediction (using C++ and CMake)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published