Deep Image Search For Similar Image Using ML
Deep Image Search For Similar Image Using ML
Submitted by-
Rachchh Dipak Bharatbhai
200320107060
Internship project
1
Acknowledgments
2
Table of Contents
1. Introduction
2. Importing Libraries
3. Importing Datasets
4. Set up The Model- vgg19
5. Update The Data
6. Implementation
7. Methodology
8. Conclusion
3
1. Introduction
Imagine being able to find pictures that resemble a photo you have,
just by using a computer. That's what this project, "Deep Image
Search for Similar Images using Machine Learning," is all about. In
our world overflowing with pictures, it's become crucial to have a
smart way to search for images that look alike, and that's where the
magic of computers and machine learning comes in.
Our project has a clear goal: create a tool that lets you find pictures
that look alike in a snap. We break this down into different steps, like
getting the pictures ready, teaching the computer about these
pictures, and making sure it can figure out which pictures are the
most alike. Python makes all these steps possible with its cool tools
for machine learning.
4
2. Importing Libraries
5
3. Importing Data Sets
Now we check the data. And Print Length of data and some samples.
6
4. Set up the Model – ‘vgg19’
7
5. Update The Data
8
6. Implementation
9
So here, We used plot_similar_images() method which plots
all the images similar to the image we want.
In both the method we give path of target image and number
of images to get/plot as parameter.
10
7. Mehodolodgy
Feature Extraction:
- Pass each image through the VGG19 model and extract the
outputs from one of the intermediate layers. These outputs capture
the important features of each image.
- Flatten or reshape the extracted features to create a feature
vector for each image.
Similarity Measurement:
- Choose a similarity metric such as cosine similarity or Euclidean
distance.
- Calculate the similarity between the feature vectors of the query
image and all other images in the dataset.
11
Ranking and Retrieval:
- Rank the images based on their similarity scores.
- Retrieve the top N images that are most similar to the query
image.
12
8. Conclusion
In this project, we've created a smart way to find pictures that look
similar to each other using a special computer model called VGG19.
Think of it like having a superpower to recognize patterns in pictures.
By using this model, we made a tool that can take one picture as a
clue and quickly find other pictures that are very much alike.
Imagine you're looking for more pictures that have the same vibe as
your favorite photo. Our project makes that search easy and fast. We
learned how to teach the computer to understand pictures and pick
out their special features. With this magic, we can find similar
pictures almost like magic too!
13