Giter Club home page Giter Club logo

cross-modal-projection-learning's Introduction

Cross-Modal-Projection-Learning

TensorFlow implementation of Deep Cross-Modal Pojection Learning for Image-Text Matching accepted by ECCV 2018.

Introduction

We propose a cross-modal projection matching (CMPM) loss and a cross-modal projection classication (CMPC) loss for learning discriminative image-text embeddings.

CMPL

Requirements

  1. TensorFlow 1.4.0
  2. CUDA 8.0 and cuDNN 6.0
  3. Python 2.7

Usage

Data Preparation

  1. Please download Flickr30k Dataset (About 4.4GB)

  2. Please download JSON Annotations

  3. Convert the Flickr30k image-text data into TFRecords (About 15GB)

cd builddata & sh scripts/format_and_convert_flickr.sh 0

Training

  1. Please Download Pretrained ResNet-v1-152 checkpoint

  2. Train CMPM with ResNet-152 + Bi-LSTM on Flickr30k

sh scripts/train_flickr_cmpm.sh 0
  1. Train CMPM + CMPC with ResNet-152 + Bi-LSTM on Flickr30k
sh scripts/train_flickr_cmpm_cmpc.sh 0

Testing

  1. Compute R@K(k=1,5,10) for image-to-text and text-to-image retrieval evaluation on Flickr30k
sh scripts/test_flickr_cmpm.sh 0

More Datasets

  1. We also provide the code for MSCOCO and CUHK-PEDES, which has similar preparation&training&testing procedures with Flickr30k

  2. Be careful with the disk space (The MSCOCO may cost 20.1GB for images and 77.6GB for TFRecords)

Citation

If you find CMPL useful in your research, please kindly cite our paper:

@inproceedings{ying2018CMPM,
    author = {Ying Zhang and Huchuan Lu},
    title = {Deep Cross-Modal Projection Learning for Image-Text Matching},
    booktitle = {ECCV},
    year = {2018}}

Contact

If you have any questions, please feel free to contact [email protected]

cross-modal-projection-learning's People

Contributors

yingzhangdut avatar

Watchers

 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.