Coder Social home page Coder Social logo

tsbir's Introduction

Image Retrieval with Text and Sketch

This code is for our 2022 ECCV paper A Sketch Is Worth a Thousand Words: Image Retrieval with Text and Sketch

This repo is based on open_clip implementation from https://github.com/mlfoundations/open_clip


folder structure

|---model/       : Contain the trained model*
|---sketches/    : Contain example query sketch
|---images/      : Contain 100 randomly sampled images from COCO TBIR benchmark
|---notebooks/   : Contain the demo ipynb notebook 
|---code/        
    |---training/model_configs/      : Contain model config file for the network
    |---clip/                        : Contain source code for running the notebook    

*need to be downloaded first

Prerequisites

  • Pytorch
  • ftfy

Getting Started

  • Simply open jupyter notebook in notebooks/Retrieval_Demo.ipynb for an example of how to retrieve images using our model,

  • You can use your own set of images and sketches by modifying the images/ and sketches/ folder accordingly.

  • Colab version of the notebook is available [here]

Download Models

Citation

If you find it this code useful for your research, please cite:

"A Sketch Is Worth a Thousand Words: Image Retrieval with Text and Sketch"

Patsorn Sangkloy, Wittawat Jitkrittum, Diyi Yang, James Hays in ECCV, 2022.

@article{
 tsbir2022,
 author = {Patsorn Sangkloy and Wittawat Jitkrittum and Diyi Yang and James Hays},
 title = {A Sketch is Worth a Thousand Words: Image Retrieval with Text and Sketch},
 journal = {European Conference on Computer Vision, ECCV},
 year = {2022},
}

tsbir's People

Contributors

janesjanes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tsbir's Issues

How to train?

How to train? Could you release the training code? Thanks

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.