Spaces:
Running
Running
A newer version of the Streamlit SDK is available:
1.41.1
metadata
title: Search-By-Image
emoji: 💻
colorFrom: indigo
colorTo: green
sdk: streamlit
sdk_version: 1.29.0
app_file: app.py
pinned: false
Image Reverse Search Web App
Description
Image Reverse Search with Google’s EfficientNet and Facebook’s FAISS library optimizing search efficiency through fast image embeddings and approximate nearest neighbor algorithms | Training speed: 65k images efficientnet-b2: 4 mins vs Resnet-152: 10 mins
Upload a picture, and AI powered by deep learning will instantly show you visually related matches. Explore and discover connections through the magic of image recognition.
Demo
Experience the app in action right in your browser: https://huggingface.co/spaces/Instantaneous1/search-by-image
Key Features
- Upload a query image to find visually similar images in the dataset.
- Explore retrieved images to discover related content.
- Adjust the number of matches displayed for visual comparisons.
- Utilizes a pre-trained image feature extractor model (EfficientNet-b2) for accurate image similarity.
- Employs FAISS index for fast approximate nearest neighbor search.
- Offers a user-friendly interface powered by Streamlit.
Getting Started
- Clone this repository:
git clone [[email protected]:sayan1999/search-by-image.git]([email protected]:sayan1999/search-by-image.git)
- Install required libraries:
pip install -r requirements.txt
- Run the Streamlit app:
for quickly dl embeddings and skipp training
streamlit run app.py
or
to rebuild embeddings
streamlit run app.py -- --dev
- Access the app in your web browser (usually at http://localhost:8501).
Technology Stack
Streamlit: Framework for building and deploying web apps in Python. Torch: Powerful deep learning framework. OpenDatasets: Library for convenient dataset downloading. FAISS: Facebook's fast AI vector similarity search EfficientNet-b2: Pre-trained image classification model for feature extraction.
Usage
- Access the app in your web browser at the provided link (usually http://localhost:8501).
- Click the "Upload Image" button and select an image from your computer.
- Optionally, adjust the number of matches using the slider.
- Click the "Search" button to initiate the reverse image search.
- The app will display the query image along with the retrieved similar images.