Skip to content
A Flask (Python) Web Interface for MXNet Image Classifier
Python HTML Dockerfile
Branch: master
Clone or download
XD-DENG Remove Demo link
Shutting down the demo service due to its cost
Latest commit 416a493 Feb 3, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates Better error handling Jul 13, 2017
.gitignore Initial commit Jul 9, 2017
Dockerfile Add requirements and Update Dockerfile Oct 13, 2018
README.md Remove Demo link Feb 3, 2020
app.py Better error handling Jul 13, 2017
requirements.txt Merge pull request #4 from XD-DENG/dependabot/pip/requests-2.20.0 Oct 29, 2019

README.md

flask-app-for-mxnet-img-classifier

Drawing

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 8000:8000 xddeng/flask-app-for-mxnet-img-classifier:v2

Now you can try to access the service at http://localhost:8000

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
You can’t perform that action at this time.