Image to dense vector embedding. This library uses the ResNet50 model in Keras, pre-trained on Imagenet, to generate image embeddings via https://keras.io/getting-started/faq/#how-can-i-obtain-the-output-of-an-intermediate-layer. Basically a clone of https://github.com/christiansafka/img2vec for Keras users.
First you need a Keras backend installed. I have only tested with TensorFlow. Then,
pip install git+git://github.com/jaredwinick/img2vec-keras.git
from img2vec_keras import Img2Vec
img2vec = Img2Vec()
x = img2vec.get_vec('/path/to/image/dog1.jpg')