Skip to content

AI-Driven-Digital-Marketing/Visual-Search-and-Image-Generator-with-DALL-E-2

Repository files navigation

Visual-Search

author author author

Quick Portral

| ---> 1.Streamlit App |

| ---> 2.Codelab |

Tech Stacks

Introduction

What is Image Search and how will we use it?

One may find themselves with an image, looking for similar images among a large image corpus. The difficult part of this requirement is instantly retrieving, at scale, similar images, especially when there are tens of millions or billions of images from which to choose.

In this repo, we will walk you through the mechanics of how to solve this problem using an off-the-shelf, pretrained, neural network to generate data structures known as vector embeddings. We will compare the solutions of :

  • Using SqueezeNet to embed images and using Pinecone's vector database offering to find images with similar vector embeddings to a query image from AWS S3.
  • Using CLIP to embed images and use cosine similarity to find most similar images and load images from AWS S3.

The results shows although CLIP is a much larger and updated model(2021), the SqueezeNet(2016) shows excellent performance in finding similar images and much faster in calculating embeddings.

Dataset

The dataset we are using is DeepFashion2, which is a comprehensive fashion dataset. It contains 491K diverse images of 13 popular clothing categories from both commercial shopping stores and consumers. It totally has 801K clothing clothing items, where each item in an image is labeled with scale, occlusion, zoom-in, viewpoint, category, style, bounding box, dense landmarks and per-pixel mask.There are also 873K Commercial-Consumer clothes pairs. The dataset is split into a training set (391K images), a validation set (34k images), and a test set (67k images). Examples of DeepFashion2 are shown in Figure 1.

image

Figure 1: Clothes sample from data source.

Workflow

Visual Search web page showcase

image image

Clothes edits with DALL·E 2

The AI empowered app also enable image edits by natural languages, which is amazing. image

About

Search related image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •