Downloads · 30 days
7
1% of all-time downloads
keras-io/dual-encoder-image-search
dual-encoder-image-search is a machine learning model from keras-io. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for tf-keras.
This repo contains the model and the notebook for fine-tuning BERT model on SNLI Corpus for Semantic Similarity. Natural language image search with a Dual Encoder.
Downloads · 30 days
7
1% of all-time downloads
All-time downloads
536
Public
Repo size
126 MB
Likes
8
Public
Click a slice to open those files.
.data-00000-of-00001117 MB · 93%
From the Hugging Face model README
This repo contains the model and the notebook for fine-tuning BERT model on SNLI Corpus for Semantic Similarity. Natural language image search with a Dual Encoder.
Full credits go to Khalid Salama
Reproduced by Vu Minh Chien
Motivation: build a dual encoder (also known as a two-tower) neural network model to search for images using natural language. The model is inspired by the CLIP approach, introduced by Alec Radford et al. The idea is to train a vision encoder and a text encoder jointly to project the representation of images and their captions into the same embedding space, such that the caption embeddings are located near the embeddings of the images they describe.
The MS-COCO dataset was used to train the dual encoder model. MS-COCO contains over 82,000 images, each of which has at least 5 different caption annotations. The dataset is usually used for image captioning tasks, but in this tutorial, the image-caption pairs were used to train dual encoder model for image search.
In this example, the train size is set to 30,000 images, which is about 35% of the dataset.
