Simple (and unsafe) TensorFlow Inception-ResnetV2 Demo with Flask
APACHE-2.0 License
This demo is not supposed to represent a production-ready server. It is not secure for the web, and is not setup to be responsive (server-client responses and model evaluation run in the same thread instead of asyncronously). Rather, this is a quick demonstration of how to utilize a pretrained Inception-ResNet model and quickly put together a prototype with it.
pip install ...
)run_server.sh
:$ git clone https://github.com/samjabrahams/inception-resnet-flask-demo.git
$ cd inception-resnet-flask-demo
$ ./run_server.sh
run_server.sh
$ ./run_server.sh
not:
$ ../run_server.sh
or:
$ inception-resnet-flask-demo/run_server.sh
resnet_export.py
serving/static
labels/merge.py
descriptions.txt
, which is a line separated file that provides text descriptions of the outputs of the pretrained Inception-ResNet modeel. The first line corresponds to the output at index 0, the second line corresponds to the output at index 1 etc.serving/serving.py
serving/model.py
serving/templates/layout.html
and serving/templates/predict.html
The TENSORFLOW_LICENSE applies to the following files:
inception_resnet_v2.py
inception_preprocessing.py
freeze_graph.py
optimize_for_inference.py
optimize_for_inference_lib.py
optimize_for_inference.py