Giter Club home page Giter Club logo

atfal-ai's Introduction

API Test

atfal-ai

Reproducing the output of https://github.com/BU-Spark/ml-atfal-mafkoda-missing-children pipeline with the following considerations in mind:

  1. Use REST API in order to be able to offload work on multiple servers/worker nodes
  2. Use CPU wherever possible to reduce cost

In order to do so, some networks will be replaced with lighter networks. OpenVino and onnx-runtime will be used wherever an implementation that provides similar quality is found.

Implemented endpoints

  1. /faces: Endpoint that will return boxes for detected faces within an image url
  2. /enhance: Given an image URL and a box that denotes a face, crop and enhance (super resolution) the face box
  3. /frontalize: Given an enhanced face from step #2, frontalize the face and return a frontalized image

More endpoints in progress..

Docker

The API can run in a docker container. The following steps can be used to build the image.

Build

sudo docker build -f docker/Dockerfile-x64 . -tatfal-ai

And run it..

sudo docker run --publish 8080:8080 -it atfal-ai:latest

You can now open your browser to: http://127.0.0.1:8080/docs and experiment with the APIs

Docker for aarch64

To run on aarch64, you can use the Dockerfile-aarch64

sudo docker build -f docker/Dockerfile-aarch64 . -tatfal-ai

Refer to the wiki for deployment on Oracle Cloud Free Tier

TODO

License notes

  1. Wherever a third-party library is included due to the need to patch it for CPU, the code within the third-party library will follow the license model for that library.
  2. Whevever a third-party code file is included, the code for that file will follow the original license model for that file. An example of this is the OpenVino demo files used in the pipeline for face detector and face enhancer.

atfal-ai's People

Contributors

yousseb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.