Skip to content

Snehil-Shah/Multimodal-Image-Search-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title emoji colorFrom colorTo sdk sdk_version app_file pinned license
Multimodal Image Search Engine
🔍
yellow
yellow
gradio
4.13.0
app.py
false
mit

Multi-Modal Image Search Engine

A Semantic Search Engine that understands the Content & Context of your Queries.
Use Multi-Modal inputs like Text-Image or a Reverse Image Search to Query a Vector Database of over 15k Images. Try it Out!

• About The Project

At its core, the Search Engine is built upon the concept of Vector Similarity Search. All the Images are encoded into vector embeddings based on their semantic meaning using a Transformer Model, which are then stored in a vector space. When searched with a query, it returns the nearest neighbors to the input query which are the relevant search results.

We use the Contrastive Language-Image Pre-Training (CLIP) Model by OpenAI which is a Pre-trained Multi-Modal Vision Transformer that can semantically encode Words, Sentences & Images into a 512 Dimensional Vector. This Vector encapsulates the meaning & context of the entity into a Mathematically Measurable format.

2-D Visualization of 500 Images in a 512-D Vector Space

The Images are stored as vector embeddings in a Qdrant Collection which is a Vector Database. The Search Term is encoded and run as a query to Qdrant, which returns the Nearest Neighbors based on their Cosine-Similarity to the Search Query.

The Dataset: All images are sourced from the Open Images Dataset by Common Visual Data Foundation.

• Technologies Used

  • Python
  • Jupyter Notebooks
  • Qdrant - Vector Database
  • Sentence-Transformers - Library
  • CLIP by OpenAI - ViT Model
  • Gradio - UI
  • HuggingFace Spaces - Deployment

About

Text to Image & Reverse Image Search Engine built upon Vector Similarity Search utilizing CLIP VL-Transformer for Semantic Embeddings & Qdrant as the Vector-Store

Topics

Resources

License

Stars

Watchers

Forks