kornia / kornia-serve

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kornia-serve

This is a simple grpc set of microservices that can be used to serve kornia models. It is based on the farm_ng grpc framework: https://github.com/farm-ng/farm-ng-core

Installation

Create a virtual environment

python3 -m venv venv
source venv/bin/activate

Install dependencies

pip install -r requirements.txt

Usage

Run the following commands in separate terminals.

1. Run the camera service

python -m camera

You should see the sent messages in the terminal and the connected clients.

2. Run the inference service

python -m inference

3. Run the printer client

python -m printer

You should see the received messages in the terminal with the image size.

Optional: Re-generate the protobuf files

./generate_proto.sh

About

License:Apache License 2.0


Languages

Language:Python 100.0%