Skip to content

bediazu/flask-app-for-mxnet-img-classifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-app-for-mxnet-img-classifier

Drawing

Demo

A Flask (Python) Web Interface for MXNet Image Classifier.

This app simply invoked the pre-trained model provided by MXNet community.

Deployment Using Docker

docker run -p 80:8000 xddeng/flask-app-for-mxnet-img-classifier:v2

Deployment

Step - 1: Environment

sudo yum install python-pip
sudo yum install git
sudo yum install numpy opencv*

pip install Flask
pip install mxnet
pip install gunicorn

Step - 2: Clone This Project

git clone https://github.com/XD-DENG/flask-app-for-mxnet-img-classifier.git

Step - 3: Download Pre-Trained MXNet Model

From http://data.mxnet.io/models/imagenet-11k/, download

  • resnet-152/resnet-152-symbol.json
  • resnet-152/resnet-152-0000.params
  • synset.txt

Note that we need to put all these three files under application directory.

Step - 4: Start Service

gunicorn -b 0.0.0.0:80 app:app

About

A Flask (Python) Web Interface for MXNet Image Classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 49.3%
  • HTML 43.3%
  • Dockerfile 7.4%