Coder Social home page Coder Social logo

sbert-image-search's Introduction

sbert-image-search

Do you know how Google's Image search actually works?

I built an image search app that lets you search from 25,000 nature-themed photos from Unsplash.

The application uses SentenceTransformers, a Python framework for state-of-the-art sentence, text and image embeddings. It provides models that allow embedding images and text into the same vector space. This allows us to find similar photos and implement image search.

image_search_ui This app uses Flask as the server and TailwindCSS for frontend components.

Installation

  1. Clone this repository.
git clone https://github.com/ameybhavsar24/sbert-image-search.git
  1. Create a python virtual environment and activate it.
python -m venv env
(for powershell users)
.\env\Scripts\Activate.ps1
  1. Install the project dependencies from requirements.txt.
pip install -r requirements.txt
  1. Download the required models (pickle files) from Google Drive in a /models folder in the root directory. You should have the following folder structure for models:
sbert-image-search/
    - models/
        - image_embeddings.pkl
        - image_names.pkl
        - text_to_image_cpu.model.pkl

  1. Run the project, it should start an server at 127.0.0.1:5000.
python app.py

sbert-image-search's People

Contributors

ameybh avatar

Watchers

 avatar  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.