A Flask (Python) Web Interface for MXNet Image Classifier.
This app simply invoked the pre-trained model provided by MXNet community.
sudo yum install python-pip
sudo yum install git
sudo pip install Flask
sudo yum install numpy opencv*
sudo pip install mxnet
sudo pip install gunicorn
git clone https://github.com/XD-DENG/flask-app-for-mxnet-img-classifier.git
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.
sudo gunicorn -b 0.0.0.0:80 app:app