python retrain.py \
--bottleneck_dir=bottlenecks \
--model_dir=inception \
--summaries_dir=training_summaries/long \
--output_graph=retrained_graph.pb \
--output_labels=retrained_labels.txt \
--image_dir=images
python label_image.py image.jpg
(tensorflow) $ python label_image.py test-image.jpg
PEPE
(tensorflow) $ python label_image.py catte.png
NOT PEPE
using cURL:
$ curl -X POST \
https://starry-lattice-183618.appspot.com \
-F url=http://i0.kym-cdn.com/photos/images/facebook/000/862/065/0e9.jpg
example response bodies:
{
"results": "PEPE",
"status": "OK"
}
{
"results": "NOT_PEPE",
"status": "OK"
}