Coder Social home page Coder Social logo

cengizhanyurdakul / kubeface-protoplayground Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 909 KB

Exploring Kubernetes, Face Detection, and gRPC

Python 87.09% Dockerfile 7.68% Shell 5.23%
dsfd face-detection grpc kubernetes-deployment kubernetes-service pytorch kubernetes

kubeface-protoplayground's Introduction

Kubernetes + Face Detection + gRPC

Installation

Minikube

We usually use Minikube to control cluster and other components. The minikube can be installed quickly and practically from the link.

Kubernetes

You can follow the installations in the link to do Kubernetes operations.

gRPC

It is currently installed inside the requirements.txt file. You can easily install gRPC with package install.

pip install grpcio grpcio-tools

If you make changes to the inputs and outputs in the proto files, do not forget to recreate the service files with the following command.

python -m grpc_tools.protoc -I src/protos/ --python_out=src/gRPCs/ --grpc_python_out=src/gRPCs/ src/protos/detection.proto

RUN

With the run.sh file, all processes can become available. In the file, the purpose of each command is specified. In summary, docker image is built, Kubernetes cluster is run, the built image is loaded to the cluster, kubernetes config is applied and finally service information is given.

bash run.sh

Once the build is up and running, you can detect all the photos in the InputImages file with the following command.

python Client.py

With the minikube dashboard command, you can monitor the status of services and other components on the page that will open.

minikube dashboard

Modifiable Parameters

  • replicas: Parameter that build a specific number of pods (Face Detector Service)
  • cpus and memory: Information on how much cpu and memory the cluster will use when running

References

kubeface-protoplayground's People

Contributors

syntonymcengizhan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.