
Explore multimodal semantic search using clip to align image and text representations, enabling zero-shot text-image retrieval beyond lexical matching with contrastive learning.
Explore evergreen technologies in computer vision and natural language processing, covering image processing basics, convolutional morphology, language detection, document classification, and ElasticSearch with or without machine learning.
Discover how clip-based multi-modal search uses text and image embeddings to semantically rank results by vector similarity, outperforming lexical queries with nearest-neighbor comparisons.
Preprocess images for multi-modal search by resizing to 224×224 with bicubic interpolation and center cropping, then converting to a feature vector with mean-std normalization while preserving quality.
Apply text preprocessing to convert queries into tokens for the clip model by normalizing input, converting bytes to unicode, building word pairs, removing whitespace, and correcting spelling errors.
Learn to build a simple multi-modal search pipeline that builds a recall set from a keyword-reduced query, queries an image API, and re-ranks results with clip.
Fine tunes multimodal search by preprocessing and normalizing images, training with gradients, and measuring semantic similarity in a shared image-text space using CLIP to rank results.
Conventional Image Search engines use a lexical approach and do not perform well for long queries. The reason behind this is that the search engines look for individual tokens, their frequency in the same document, and the rarity of the tokens among all documents. Also, the search keywords are matched with image textual metadata like tags and titles. For longer queries, we need a search engine that can understand the wholistic meaning of text query and expresses text and image embedding in the same space so that it can perform a search by using the nearest neighbor approach.
Contrastive Laniage Image Pre-training model from OpenAI provides similarity capability across multi-modal input such as text and image and express their embeddings in the same space. It leverages existing data from imagenet, internet and uses a contrastive approach to training. It's zero shot modal which means we don't have to retrain on our own corpus. We can just use it to generate text and visual embeddings and just sort the result based on the distance between vectors.
In this course, we'll use the CLIP model from openAI, PyTorch for preprocessing images and text, and simple nearest neighbor to illustrate the effect of longer queries on the Unsplash image search engine with and without the CLIP model.
This course provides basic understanding of deep learning and embeddings.