Skip to content

ericnjogu/object-detection-protos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Detection Protobufs

This repo holds the protobuf files for the protobuf messages that are exchanged between the various services.

Once a frame is retrieved from a source, it is placed in a message then published to a reddis channel. Another service picks up the message and uses it for to request an inference after which it is placed on another channel with the prediction output.

Finally other services like the web service take the message from the channel and make it available to a react app via HTTP EventSource.

Setup

  • install Conda
  • create conda environment

conda env create -f env.yaml

  • clone or download the tensorflow serving repo
  • Download or clone the tensorflow core repo
  • generate the tensor flow prediction service python grpc stubs - note the tensorflow core and tensorflow serving repo local roots have been given to resolve the protobuf dependencies

python -m grpc_tools.protoc -I ~/tensorflow-serving-repo/ -I ~/tensorflow-core-repo --grpc_python_out=api/generated/ --python_out=api/generated ~/tensorflow-serving-repo/tensorflow_serving/apis/*.proto

  • generate the object detection protobuf message types, client, server grpc code.

python -m grpc_tools.protoc -I . --grpc_python_out=api/generated/ --python_out=api/generated api/detection_handler.proto

  • build conda package for local use

    conda build .

  • upload package to anaconda.org

  • anaconda login

  • anaconda upload /home/mugo/miniconda3/envs/object_detection_protos/conda-bld/linux-64/juu-object-detection-protos-0.1-py37_0.tar.bz2

Related Projects

About

Protobuf files for use by all video-object-detection-* repos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors