Coder Social home page Coder Social logo

max-framework's Introduction

Build Status PyPy release

Model Asset Exchange Framework

Python package that contains common code shared across all MAX models.

Dependencies

Installation

The package can be installed with pip. However, this is not necessary as each MAX model will get the maxfw package via the MAX-Base image.

If you want to run a MAX model outside of a Docker container then you can install it with the following command:

$ pip install -U maxfw

Usage

For an example of this package being used in a MAX model, we recommend looking at the MAX-Skeleton Repository on GitHub.

max-framework's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

max-framework's Issues

CORS_ENABLE flag inactive due to Debug Mode being turned off

Previously, the models used to run with Flask Debug mode turned on. This caused some of the server code to execute twice, so I put a second condition in the conditional statement here

if os.getenv('CORS_ENABLE') == 'true' and os.environ.get('WERKZEUG_RUN_MAIN') == 'true':

Now that Debug mode is turned off, the CORS_ENABLE flag will not actually enable cross origin support. I think it might be best to simply remove the second condition.

Add common code for certain model classes

Many MAX models fall into a few common categories - classification (multi-class typically), object detection / segmentation (with bounding boxes and/or segmentation maps), etc.

We could create utilities and/or some abstract base classes that handle common code for things such as response mapping to JSON (e.g. for multi-class classification it is generic) and definitions for Swagger API formats.

Add support for basic authentication

Currently the microservice endpoints are unprotected and can be called by anybody. We should add a simple mechanism that allows for optional basic authorization checking. A simple example of such a mechanism could be a static API token.

PredictAPI not completed

I am working with the MAX-Audio-Classifier and I am trying to understand the PredictAPI that is imported from maxfw.core in the predict.py file.
When checking the maxfw.core repo I find that the PredictAPI is not implemented.

Have I missed the PredictAPI or how does the audio-classifier import and use the PredictAPI if it has not been implemented yet?

Thanks,
Johannes

MAXModelWrapper: remove sbtractmethod annotations from optional methods

PR #21 enforces the @abstractmethod annotations which are defined for the following methods:

  • __init__
  • _pre_process
  • _post_process
  • _predict

As a result every model that inherits from MAXModelWrapper must implement these methods, even if they don't have any custom code.

The problematic code was published as version 1.1.2.

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.