Skip to content

Instantly share code, notes, and snippets.

Avatar
🧘‍♂️
Zen state

Guillermo Gómez mlgxmez

🧘‍♂️
Zen state
View GitHub Profile
@mlgxmez
mlgxmez / run.sh
Created Jan 26, 2020
Serving image to TensorFlow Serving
View run.sh
# $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
You can’t perform that action at this time.