An open API service indexing awesome lists of open source software.

https://github.com/amperecomputingai/tensorflow_serving_client


https://github.com/amperecomputingai/tensorflow_serving_client

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

          

# tensorflow_serving_client
This repo contains clients to classify images using tensorflow serving.
Code base is using ResNet50 as base model. It is easy to update for different models.

TensorFlow serving supports gRPC and REST APIs to commuinicate with edge devices.
To cliassify images there are three scripts tfs-grpc.py tfs-rest.py and tfs-client.py
tfs-client.py contains both types of communication and cane be selected with command line flag.

Usage:
python -s -i
python -s -i -i

gRPC
```
$ python tfs-grpc.py -s serverip/name -i image1.jpg,image2,image3
```
REST
```
$ python tfs-rest.py -s serverip/name -i image1.jpg,image2,image3
```
gRPC + REST
```
$ python tfs-client.py -s serverip/name -a rest -i image1.jpg,image2,image3
$ python tfs-client.py -s serverip/name -a grpc -i image1.jpg,image2,image3
```