Member-only story
Image Similarity Detection in Action with Tensorflow 2.0
Ready to use pipeline for your web application
In this post, I will show you how I implemented the ‘Image Similarity Detection’ task in my ‘Fashion Price Comparison’ web application. I will use image similarity to suggest users visually similar products based on what they searched.
The full source code of the implementation is available in my GitHub repository.
Throughout the post, there will be dedicated sections for each one of the following subjects;
- How to use Tensorflow 2.0 and Tensorflow Hub to generate ‘image feature vectors’ of the product images.
- How to use Spotify/annoy library and image feature vectors to calculate the image similarity scores.
- Storing similarity scores and related product identification numbers in a JSON file to enable visual search in our web application.
What Is ‘Image Similarity Detection’ and Why It Is Important?
Image similarity detection is used to quantify the degree of visual and semantic similarity of the images.
Duplicate product detection, image clustering, visual search, and recommendation tasks are performed with this technology in…