sounakdey / doodle2search

Doodle to Search: Practical Zero Shot Sketch Based Image Retrieval
https://sounakdey.github.io/doodle2search.github.io/
76 stars 25 forks source link

Doodle to Search: Practical Zero-Shot Sketch-based Image Retrieval

PyTorch | Arxiv | Project

PyTorch implementation of our D2S model for zero-shot sketch-based image retrieval:
Doodle to Search: Practical Zero-Shot Sketch-based Image Retrieval
Sounak Dey, Pau Riba, Anjan Dutta, Josep Llados and Yi-Zhe Song
CVPR, 2019

Retrieval Results

Sketchy






TU-Berlin






QuickDraw






Prerequisites

The structure of this repo is as follows:

  1. Installation
  2. Getting the data
  3. How to train models
  4. At last how to test and evaluate

Installation

Train

Finally we are ready to train. Magical words are:

python3 src/train.py sketchy_extended --data_path <mention the data path of the dataset>

The first argument is the dataset name, which you can replace it with tuberlin_extend or quickdraw_extend. You can check the options.py for changing a lot of the options such dimension size, different models, hyperparameters, etc.

Test

Sketchy
python3 src/test.py sketchy_extend --data_path <mention the data path of the dataset> --load <path of the trained models>

Citation

@InProceedings{Dey_2019_CVPR,
    author = {Dey, Sounak and Riba, Pau and Dutta, Anjan and Llados, Josep and Song, Yi-Zhe},
    title = {Doodle to Search: Practical Zero-Shot Sketch-Based Image Retrieval},
    booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
    month = {June},
    year = {2019}
}

Conclusion

Thank you and sorry for the bugs!

Author