Deploying a Custom Deep Learning Tensorflow Model using Tensorflow Serving with Docker Compose and Flask
Make sure you have Docker Compose installed in your computer.
-
Clone the repository into your local machine using:
git clone https://github.com/nardienapratama/tensorflow-deployment.git
-
Enter the
tensorflow-deployment
directory. -
Start up the application by running
docker-compose up --build
orsudo docker-compose up --build
if you are in Linux. After having run the command, assuming you have not deleted the container, you can run the application again without using the--build
tag, i.e.docker-compose up
orsudo docker-compose up
. -
Enter http://localhost:5000/ in your browser to see the application running.
This boilerplate is based on this tutorial and the image classification model was created based on this tutorial, though modifications have been made accordingly.