title: Image Similarity with Resnet152 Embeddings Pretrained with Imagenet
body: <p>I'm trying to find similar images given a source image. I'm doing this taking a Resnet152 model pretrained on the Imagenet dataset. I was trying to replace the last layer (which was a fully connected layer with a softmax activation) with a <code>Flatten</code> layer in order to get a vector describing the image. </p>
  
  <p>I have a <a href="https://colab.research.google.com/drive/1862aGHz2_Ir_icOEBsARicL_7zl10rO9" rel="nofollow noreferrer">working demo</a>, but it's not working as expected. I can get the outputs of different images, but when I calculate the difference between two images of cats, vs an image of a cat and an image of a dog, they don't match. It seems to be indifferent of the image. I've tried with different images having the same result.</p>
  
  <p>Am I missing something? What am I doing wrong?</p>