Giter VIP home page Giter VIP logo

embeddit's Introduction

Embeddit: Image Search Using CLIP and LanceDB

Embeddit is a Python/flask app that allows you to search for images using text queries or by uploading an image (image to image search). It uses the OpenAI CLIP for embedding images and stores in the vectors in LanceDB.

Table of Contents

  1. Features

  2. Prerequisites

  3. Setup

  4. Usage

  5. License

Features

  • Text-based image search: Users can enter a text query to search for relevant images.

  • Image-based search: Users can upload an image to find visually similar images.

  • Efficient similarity search using LanceDB.

  • User-friendly web interface for seamless interaction.

  • Customizable image folder for indexing and searching.

Prerequisites

Before setting up Embeddit, ensure that you have the following prerequisites installed:

  • Python 3.8 or higher

  • pip (Python package installer)

Setup

  1. navigate to the project folder

    cd Embeddit
    

    create the virtual environment.

    
    python3 -m venv embeddit_env
    
    

    This will create a new virtual environment named embeddit_env.

  2. To activate the virtual environment, run the appropriate command based on your operating system:

  • For Windows:

    
    embeddit_env\Scripts\activate
    
    
  • For macOS and Linux:

    
    source embeddit_env/bin/activate
    
    
  1. Install necessary dependencies. I try to keep them at minimum.

    
    pip install -r requirements.txt
    
    

Usage

To run the Embeddit application, follow these steps:

  1. Ensure that you have activated the virtual environment.

  2. Place the images you want to index and search in the designated image folder (default: images/ folder).

  3. Run the following command to start the application:

    
    python app_image_search.py --image-folder path/to/your/image/folder
    
    

    Replace path/to/your/image/folder with the actual path to the folder containing your images. By default, uses images/ folder in the project directory.

  4. Open a web browser and visit http://localhost:5000 to access the Embeddit web interface.

  5. Use the search bar to enter text queries or upload an image to find visually similar images.

License

Embeddit is released under the MIT License.

embeddit's People

Contributors

sankalp1999 avatar

Stargazers

Dhruv Anand avatar Senay avatar Aditya Kanu avatar Daniel Shats avatar pushkar avatar Ambuj Singh avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.