Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

IBM/reverse-image-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WARNING: This repository is no longer maintained ⚠️

This repository will not be updated. The repository will be kept available in read-only mode. Refer to https://github.com/IBM/reverse-image-search-gpu-studio for a similar example.

Feature Extraction and Reverse Image Search on Caltech-101 Dataset

This notebook will guide you through the process of analyzing an image dataset using a pre-trained convolution network (VGG16) and extracting feature vectors for each image

Post analysis we try to demonstrate 'reverse image search' one of the widely popular applications of image analysis.

Flow:

  • Download VGG16 pre-trained model using keras

  • Perform Feature Extraction :

    Here we remove the last layer ie.,the softmax classification layer so our output model now has only 12 layers and the last layer would be fc2(Dense) a fully connected layer

  • Get feature vectors for all the images then scale them down using PCA

  • Use cosine distance between pca features to compare the query image to 5 number of closest images and return them as thumbnails

Watch the Video:

Steps:

Deploy on IBM Cloud:

  • Sign up for IBM's Watson Studio. By creating a project in Watson Studio a free tier Object Storage service will be created in your IBM Cloud account. Take note of your service names as you will need to select them in the following steps.

Note: When creating your Object Storage service, select the Free storage type in order to avoid having to pay an upgrade fee.

  • Create a new Project in Watson Studio (New --> Standard project) Creating a project
  • Create a GPU Environment (Environment --> New Environment --> GPU Beta) Creating GPU Environment
  • Create a new Notebook (Add to project --> Notebook --> from url)
  • Provision the notebook on newly created GPU Environment GPU Notebook
  • Stop the Environment Post usage

Stop environment

Run Locally:

  • Clone the repository
git clone https://github.com/krishnac7/Reverse_image_search.git
  • Navigate into the directory
cd Reverse_image_search-master
  • Run using Jupyter notebooks
jupyter notebook

Sample Output:

sample output

License

This code pattern is licensed under the Apache License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 and the Apache License, Version 2.

Apache License FAQ

About

WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode. Refer to https://github.com/IBM/reverse-image-search-gpu-studio for a similar example.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published