https://github.com/amperecomputingai/tensorflow_serving_client
https://github.com/amperecomputingai/tensorflow_serving_client
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/amperecomputingai/tensorflow_serving_client
- Owner: AmpereComputingAI
- License: apache-2.0
- Created: 2022-07-26T21:54:26.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-26T23:16:35.000Z (almost 4 years ago)
- Last Synced: 2025-08-11T23:43:51.013Z (11 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```