Giter Club home page Giter Club logo

vision-deployment-framework's Introduction

Vision Deployment Framework

Quick start

To start dev containers and run framework type:

cd /project/path
./run_env.sh

To stop and delete dev containers type:

cd /project/path
./down_env.sh

Project description

Project Structure

This framework consist of 4 services named deployment, inference, mmdetection and tensorflow(tf) api.

Deployment and inference apis are designed for endusers whereas mmdetection api and tensorflow api are used in application internally. mmdetection service is responsible from inference with mmdetection models similarly tensorflow service is responsible from inference with tensorflow models. Deployment api lets us deploy our models and we can make inference with deployed model using inference api.

Deployment

Endusers utilizes deployment api to deploy their models. Deployment api has one endpoint which is deploy. Users make POST request to localhost:5003/deploy with request body shown below.

{
    "type": "tf" # or "mmdetection",
    "checkpoint_url": "https://www..." # the model checkpoint address,
    "deployment_name": "my_object_detection_model_1" # this is unique name and will be used in inference
    "config": "/faster_rcnn/faster_rcnn_1x_rpn.py" # if model is mmdetection, you need to add config path from original mmdetection repo(https://github.com/open-mmlab/mmdetection)
}

If everything is OK, the backend starts deployment asynchronously(download checkpoint, save informations in mongodb) and returns,

{
    "result": "success"
}

Inference

Endusers utilizes inference api to use their models. Inference api has one endpoint which is infer. Users make GET request to localhost:5004/infer with request body shown below.

{
    "deployment_name": "my_object_detection_model_1" # this is unique name it was set at deployment time
    "image": "5aWDj..." # The base64 image that we apply inference on",
}

If everything is OK, the backend starts inference and returns,

{
    "objects":[
        {
            "class": "dog",
            "bbox": [123, 235, 432, 45],
            "confidence_score": 0.8
        },
        {
            "class": "cat",
            "bbox": [53, 35, 49, 25],
            "confidence_score": 0.9
        }
        ...
    ],
}

vision-deployment-framework's People

Contributors

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