*Recommend: Ubuntu, cuda10.1
Run tensorflow_model_server:
$ echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" | sudo tee /etc/apt/sources.list.d/tensorflow-serving.list &&
curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | sudo apt-key add -
$ sudo apt-get update && sudo apt-get install tensorflow-model-server
$ pip install tensorflow-serving-api
$ tensorflow_model_server --port=8500 --rest_api_port=8501 --model_config_file=./models/serving.config
./app/static/images: folder trong server chứa ảnh được upload lên
./models/serving.config: chỉnh lại base_path của bạn ( "/home/{user_name}/.../IDCardRecognition/models/{model_name}"
$ python run.py