• Stars
    star
    379
  • Rank 113,004 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created over 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DeepImageSearch is a Python library for fast and accurate image search. It offers seamless integration with Python, GPU support, and advanced capabilities for identifying complex image patterns using the Vision Transformer models.

Deep Image Search - AI-Based Image Search Engine

Deep+Image+Search+logo

DeepImageSearch is a powerful Python library that combines state-of-the-art computer vision models for feature extraction with highly optimized algorithms for indexing and searching. This enables fast and accurate similarity search and clustering of dense vectors, allowing users to build scalable image search systems capable of handling large-scale datasets. The library offers seamless integration with Python and provides GPU support for accelerated processing, delivering a comprehensive solution for researchers and developers working on image-based search and retrieval applications. By incorporating the Vision Transformer (ViT) model, DeepImageSearch further enhances its capabilities in identifying and understanding complex image patterns, making it an essential tool for advanced image search and analysis tasks.

Generic badge Generic badge Generic badge Generic badge Generic badge Generic badge Downloads

Developed By

Nilesh Verma

Features

  • You can now load more than 500+ pre-trained state-of-the-art computer vision models available on timm.
  • Faster Search using FAISS (Facebook AI Similarity Search).
  • Highly Accurate Output Results.
  • GPU & CPU based indexing and Searching Support.
  • Best for implementing on Python-based web applications or APIs.
  • Applications include image-based e-commerce recommendations, social media, and other image-based platforms that want to implement image recommendations and search.

Installation

This library is compatible with both windows and Linux system you can just use PIP command to install this library on your system:

pip install DeepImageSearch --upgrade

If you're using a GPU, first uninstall the faiss_cpu version and then try installing the faiss_gpu version. The library installs the CPU version by default because not all systems support GPUs.

How To Use?

We have provided the Demo folder under the GitHub repository, you can find the example in both .py and .ipynb file. Following are the ideal flow of the code:

from DeepImageSearch import Load_Data, Search_Setup

# Load images from a folder
image_list = Load_Data().from_folder(['folder_path'])

 # Set up the search engine, You can load 'vit_base_patch16_224_in21k', 'resnet50' etc more then 500+ models 
 st = Search_Setup(image_list=image_list, model_name='vgg19', pretrained=True, image_count=100)

# Index the images
st.run_index()

# Get metadata
metadata = st.get_image_metadata_file()

# Add new images to the index
st.add_images_to_index(['image_path_1', 'image_path_2'])

# Get similar images
st.get_similar_images(image_path='image_path', number_of_images=10)

# Plot similar images
st.plot_similar_images(image_path='image_path', number_of_images=9)

# Update metadata
metadata = st.get_image_metadata_file()

This code demonstrates how to load images, set up the search engine, index the images, add new images to the index, and retrieve similar images.

Note: Some models may not work properly due to resizing and normalization issues. By default, I have chosen a size of 224x244. Please try to select models that support this size or resized inputs. I have already tested many models, but testing over 500 is beyond my scope.

Documentation

This project aims to provide a powerful image search engine using deep learning techniques. To get started, please follow the link: Read Full Documents

Screenshot

Brain+Machine

Citaion

If you use DeepImageSerach in your Research/Product, please cite the following GitHub Repository:

@misc{TechyNilesh/DeepImageSearch,
  author = {VERMA, NILESH},
  title = {Deep Image Search - AI-Based Image Search Engine},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/TechyNilesh/DeepImageSearch}},
}

Please do STAR the repository, if it helped you in anyway.

More cool features will be added in future. Feel free to give suggestions, report bugs and contribute.

More Repositories

1

DeepTextSearch

Deep Text Search is an AI-powered multilingual text search and recommendation engine with state-of-the-art transformer-based multilingual text embedding (50+ languages).
Python
34
star
2

Speech-Enhancement-Noise-Suppression-Using-DTLN

Speech Enhancement: Tensorflow 2.x implementation of the stacked dual-signal transformation LSTM network (DTLN) for Noise Suppression.
Jupyter Notebook
14
star
3

Social-Distancing-Detector

A GUI Based Social Distancing Monitor System Using Yolo & OpenCV
Python
5
star
4

face-detection-app

Face Detection App using Streamlit with OpenCV
Python
5
star
5

SSEM

SSEM is a semantic similarity-based evaluation library for natural language processing (NLP) text generation tasks. It supports various similarity metrics and evaluation levels, and is compatible with any Hugging Face pre-trained transformer model.
Python
4
star
6

Virtual-Drawing-System

OpenCV application that can track an object’s movement, using which a user can draw on the screen by moving the object around β€” I call it Webcam Paint.
Python
4
star
7

Flower-Classification

This is a Streamlit app use for prediction of the 102 types of flower.
Jupyter Notebook
3
star
8

minst-digit-classifier-webapp

Python
2
star
9

Covid-19-Related-Tweets-Identification-System

The objective of this Machine Learning model is to assess if a Twitter post is about COVID-19 or not.
Jupyter Notebook
2
star
10

Machine-Learning-Model-on-Breast-Cancer-Data

In this repository, I am added a 10 machine learning classification model for breast cancer dataset classification.
Jupyter Notebook
2
star
11

Web-Scraping-and-Sentiment-Analysis-of-Amazon-Reviews

In These Projects, I Extracted Mobiles Phone Reviews Data From Amazon E-commerce Website Then Performs Sentiments Analysis Using Stanfordsentimentstreebank Dataset.
Jupyter Notebook
2
star
12

NLP_App_with_Streamlit_Python

Python
1
star
13

Depression_Detection_Projects_on_Voice_and_ActiGraph_data

Jupyter Notebook
1
star