Git Product home page Git Product logo

image_search's Introduction

End-to-end Image Search engine

This is the end-to-end implementation of image search engine. The image search engines allow us to retrive similar images based on the query one.

Project Instructions

Getting Started

  1. Clone the repository, and navigate to the downloaded folder.
git clone https://github.com/lucko515/image-search-engine
  1. Install TensorFlow.

    • Option 1: To install TensorFlow with GPU support, follow the guide to install the necessary NVIDIA software on your system.
    pip install tensorflow-gpu==1.12.0
    
    • Option 2: To install TensorFlow with CPU support only,
    pip install tensorflow==1.12.0
    
  2. Install a few pip packages.

pip install -r requirements.txt
  1. Download CIFAR-10 dataset.

    1. Put downloaded data into dataset folder
    2. Put all images from `dataset/train` to `static/images`
    
    1. Preprocessed the dataset (not covered here)
    2. Save each image in the jpg/png format into train/test folders
    3. Rest of the project stays the same
    
  2. Run throuh image-search project.ipynb and generate all necessary files

  3. Start the app.py file and enjoy!

Steps to improve the engine!

(1) Use color features as an additional search filters

We could use color intesity to produce additional features and improve our image search engine. Good read for this: Pyimagesearch color histograms

(2) TensorFlow Serving pipeline version

The Flask approach works, but it is not scalable. If you want to create the system more scalable you will need to change the implementation to TensorFlow Serving.

The updated version of files are in the folder.

How to server the model using the TensorFlow serving: tutorial

	1. Put folder `models` inside the root dir
	2. replace all files in the root to make this project use TensorFlow Serving

NOTE:

If you have the following error:

Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.

The potential solution is to downgrade your TensorFlow version to 1.4.0.

(3) Use Hourglass attention mechanism

(4) Use pre-trained model

image_search's People

Contributors

gperdrizet avatar

Stargazers

 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.