Giter Club home page Giter Club logo

deepsbir's Introduction

Sketch Me That Shoe

###Introduction

This repository contains the code for the CVPR paper ‘Sketch Me That Shoe’, which is a deep learning based implementation of fine-grained sketch-based image retrieval.

For more details, please visit our project page: http://www.eecs.qmul.ac.uk/~qian/Project_cvpr16.html

And if you use the code for your research, please cite our paper:

@inproceedings{qian2016,
    Author = {Qian Yu, Feng Liu, Yi-Zhe Song, Tao Xiang, Timothy M. Hospedales and Chen Change Loy},
    Title = {Sketch Me That Shoe},
    Booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
    Year = {2016}
}

####Contents

  1. License

  2. Installation

  3. Run the demo

  4. Re-training the model

  5. Extra comment

###License MIT License

###Installation

  1. Download the repository

    git clone [email protected]:seuliufeng/DeepSBIR.git
  2. Build Caffe and pycaffe

    a. Go to folder $SBIR_ROOT/caffe_sbir

    b. modify the path in Makefile.config, to use this code, you have to compile with python layer

      WITH_PYTHON_LAYER := 1

    c. Compile caffe shell make –j32 && make pycaffe

  3. Go to fold $SBIR_ROOT, and run

    source bashsbir

###Run the demo

  1. To run the demo, please first download our database and models. Go to the root folder of this project, and run

    chmod +x download_data.sh
    ./download_data.sh

Note: You can also download them manually from our project page: http://www.eecs.qmul.ac.uk/~qian/Project_cvpr16.html

  1. Run the demo:
python $SBIR_ROOT/tools/sbir_demo.py

###Re-training the model

  1. Go to the root folder of this project

    cd $SBIR_ROOT
  2. Run the command

./experiments/train_sbir.sh

Note: Please make sure the initial model ‘/init/sketchnet_init.caffemodel’ be under the folder experiments/. This initial model can be downloaded from our project page.

###Extra comment

  1. All provided models and codes are optimised version. And our latest result is shown below:

    Dataset acc.@1 acc.@10 %corr.
    Shoes 52.17% 92.17% 72.29%
    Chairs 72.16% 98.96% 74.36%

Further explanation: The model we reported in our paper is trained by our originally collected sketches which contain much noise. In order to improve usability, we cleaned the sketch images(removed some noise) after CVPR2016 deadline. You can compare images 'test_shoes_370.png' and '370.jpg' (or 'test_chairs_230.png'/'230.jpg') to see the difference. We re-trained our model using clean sketch images and the new results are listed above. Both the model and dataset we released now is the latest version. Sorry for any confusion we may bring about. If you have further questions, please email [email protected].

  1. This project used codes of the following project:

    Caffe trainnet python wrapper and python data layer

    L2 normalization layer

    Triplet loss

deepsbir's People

Contributors

seuliufeng avatar yuqian1023 avatar seindlut avatar

Watchers

James Cloos 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.