项目作者: ricardojdb

项目描述 :
Face API with Docker, Tensorflow, Keras and PyTorch.
高级语言: Python
项目地址: git://github.com/ricardojdb/face-api.git
创建时间: 2019-03-21T20:00:54Z
项目社区:https://github.com/ricardojdb/face-api

开源协议:

下载


Face API

Face API with Docker, Tensorflow and PyTorch.

Models:

Requirements:

How to use:

In order to start the API the user must run the docker containers using the docker-compose command.

To build the docker images use:

  1. docker-compose -f dockers/docker-compose.yml build

To run the docker containers use:

  1. docker-compose -f dockers/docker-compose.yml up

The user can access the API using the following URL:

  1. http://<IP>:<PORT>/predict/

It can be any IP (public or private) connected to the server, and each model is hosted in a different port e.g. 7001, 7002, 7003.

Test:

Change the host variable inside the test_api.py script with the IP in which the dockers are running and then run the following:

  1. python test_api.py

Run the demo:

This demo calls the API to make predictions using the webcam.

Make sure the docker containers are running and change the host variable with the desired IP.

Run the demo using:

  1. python demo.py