Serving image to TensorFlow Serving
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $1 refers to the path where the image file is located | |
ENCODED_IMG="$(base64 $1)" | |
(echo '{"inputs": [{"b64": "'; echo "$ENCODED_IMG"; echo '"}]}') | curl -H "Content-Type: application/json" -d @- http://localhost:8501/v1/models/mobilenet_v2_test:predict |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment