All Projects → fpaupier → Tensorflow Serving_sidecar

fpaupier / Tensorflow Serving_sidecar

Licence: mit
Serve machine learning models using tensorflow serving

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tensorflow Serving sidecar

Math object detection
An image recognition/object detection model that detects handwritten digits and simple math operators. The output of the predicted objects (numbers & math operators) is then evaluated and solved.
Stars: ✭ 52 (+26.83%)
Mutual labels:  object-detection, tensorflow-tutorials, coco
Fcos tensorflow
FCOS: Fully Convolutional One-Stage Object Detection.
Stars: ✭ 87 (+112.2%)
Mutual labels:  object-detection, coco
Fish detection
Fish detection using Open Images Dataset and Tensorflow Object Detection
Stars: ✭ 67 (+63.41%)
Mutual labels:  object-detection, tensorflow-tutorials
Yolov3 Tf2
YoloV3 Implemented in Tensorflow 2.0
Stars: ✭ 2,327 (+5575.61%)
Mutual labels:  object-detection, tensorflow-tutorials
Efficientdet.pytorch
Implementation EfficientDet: Scalable and Efficient Object Detection in PyTorch
Stars: ✭ 1,383 (+3273.17%)
Mutual labels:  object-detection, coco
Tf Faster Rcnn
Tensorflow Faster RCNN for Object Detection
Stars: ✭ 3,604 (+8690.24%)
Mutual labels:  object-detection, coco
Torchdistill
PyTorch-based modular, configuration-driven framework for knowledge distillation. 🏆18 methods including SOTA are implemented so far. 🎁 Trained models, training logs and configurations are available for ensuring the reproducibiliy.
Stars: ✭ 177 (+331.71%)
Mutual labels:  object-detection, coco
Nas fpn tensorflow
NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection.
Stars: ✭ 198 (+382.93%)
Mutual labels:  object-detection, coco
Foveabox
FoveaBox: Beyond Anchor-based Object Detector
Stars: ✭ 353 (+760.98%)
Mutual labels:  object-detection, coco
Unidet
Object detection on multiple datasets with an automatically learned unified label space.
Stars: ✭ 217 (+429.27%)
Mutual labels:  object-detection, coco
Centernet2
Two-stage CenterNet
Stars: ✭ 496 (+1109.76%)
Mutual labels:  object-detection, coco
Myvision
Computer vision based ML training data generation tool 🚀
Stars: ✭ 453 (+1004.88%)
Mutual labels:  object-detection, coco
Tensorlayer
Deep Learning and Reinforcement Learning Library for Scientists and Engineers 🔥
Stars: ✭ 6,796 (+16475.61%)
Mutual labels:  object-detection, tensorflow-tutorials
Tensorflow object counting api
🚀 The TensorFlow Object Counting API is an open source framework built on top of TensorFlow and Keras that makes it easy to develop object counting systems!
Stars: ✭ 956 (+2231.71%)
Mutual labels:  object-detection
Channel Pruning
Channel Pruning for Accelerating Very Deep Neural Networks (ICCV'17)
Stars: ✭ 979 (+2287.8%)
Mutual labels:  object-detection
Drn Wsod Pytorch
Enabling Deep Residual Networks for Weakly Supervised Object Detection
Stars: ✭ 29 (-29.27%)
Mutual labels:  object-detection
Mlkit
A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Stars: ✭ 949 (+2214.63%)
Mutual labels:  object-detection
Traffic Light Detector
Detect traffic lights and classify the state of them, then give the commands "go" or "stop".
Stars: ✭ 37 (-9.76%)
Mutual labels:  object-detection
Albumentations
Fast image augmentation library and an easy-to-use wrapper around other libraries. Documentation: https://albumentations.ai/docs/ Paper about the library: https://www.mdpi.com/2078-2489/11/2/125
Stars: ✭ 9,353 (+22712.2%)
Mutual labels:  object-detection
Gcnet
GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyond
Stars: ✭ 945 (+2204.88%)
Mutual labels:  object-detection

How to serve your machine learning model with tensorflow-serving

This repo offers detailed How-to about serving your tensorflow models with tensorflow-serving. It can be followed as a step-by-step tutorial to serve your tensorflow model or other models with some adjustments.

Scope of the project

I do not cover the parts of training or exporting models here. I focus solely on serving a model for inference. Pipe overview

What's in the box?

Two tutorials:

  1. A basic tutorial to get you quickly serve an object detection model with tensorflow-serving. Expect to get such an awesome object-detection up and running in less than 10 mins. horse labelled with faster rcnn resnet

  2. An advanced tutorial to deploy your tensorflow server docker image on Google Cloud Platform. Unleash the power of GCP to build a scalable machine learning server running in a kubernetes cluster.

The proposed object detection model is here to get you started quickly, feel free to use yours for more fun!

The reader is expected to be familiar with tensorflow, knowing how to export a model for inference will be helpful (tensorflow-server works with savedModel). Knowing docker or kubernetes are not pre-requisites since the commands used are simple and explained when needed.

Those tutorials are highly inspired by tensorflow-serving official documentation with some tips and more detail on the installation process.

0. Install the project

The installation process is thoroughly described in the docs/setup.md. It covers everything you need to do prior being able to serve a model with tensorflow-serving.

1. Serve your first model and perform inference with tensorflow-serving

Play Time!

To make sure the installation went smoothly, get your first inference result from the object detection model tensorflow serving. Follow the first tutorial to serve an object detection model on your machine docs/tf_server_local.md.

2. Deploy your model on the cloud for high availability

Now that we made sure our inference server works great on local, let's deploy it on the cloud at production scale. Let's dive in the docs/tf_server_k8s.md.


Resources

Additional information you may find useful

Google proposes a managed solution - Google Cloud ML Engine - to serve your saved_models.pb models. I do not focus on it since google documentation is a more comprehensive source of information.

Pros

  • Deploy new models easily

Cons

  • Less flexibility
  • As of today, you are limited in size for your savedModel.pb file to 250 MB. (That may change)

Credits

The object_detection directory comes from the tensorflow-model repository. It offers useful utils functions to tag the image returned from the model.

Feel free to investigate the models on the tensorflow-model repo since they are well documented and often comes with useful tutorials.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].