Git Product home page Git Product logo

mah-pytorch's Introduction

MAH-Pytorch

PyTorch implementation of our paper "Collaborative Learning for Extremely Low Bit Asymmetric Hashing" [Link].

Preparation

Dependencies

  • Python 2.7
  • PyTorch (version >= 0.4.1)

Datasets

  • CIFAR download the CIFAR-10 Matlab version [Link] then run the script
matlab ./data/CIFAR-10/SaveFig.m
  • NUSWIDE dataset
  • MIRFlickr dataset

(referenced repo)

Results

Mean Average Precision on CIFAR-10.

MethodBackbone Code Length
4 bits 6 bits 8 bits 10 bits12 bits
MAH-flatResNet50 0.4759 0.8197 0.9339 0.9335 0.9503
MAH-cascadeResNet50 0.7460 0.8950 0.9429 0.9489 0.9537

Precision@5K Figures

CIFARCIFARCIFAR

Usage

For traning with the cascaded multihead structure on different datasets:

python cascade_CIFAR-10.py --bits '4' --gpu '1' --batch-size 64
python cascade_FLICKR.py --bits '4' --gpu '1' --batch-size 64
python cascade_NUS_WIDE.py --bits '4' --gpu '1' --batch-size 64

For traning with the flat multihead structure on different datasets:

python flat_CIFAR-10.py --bits '4' --gpu '1' --batch-size 64
python flat_FLICKR.py --bits '4' --gpu '1' --batch-size 64
python flat_NUS_WIDE.py --bits '4' --gpu '1' --batch-size 64

Citation

Please cite the following paper in your publications if it helps your research:

@article{DBLP:journals/corr/abs-1809-09329,
    author    = {Yadan Luo and
                 Yang Li and
                 Fumin Shen and
                 Yang Yang and
                 Peng Cui and
                 Zi Huang},
    title     = {Collaborative Learning for Extremely Low Bit Asymmetric Hashing},
    journal   = {CoRR},
    volume    = {abs/1809.09329},
    year      = {2018},
    url       = {http://arxiv.org/abs/1809.09329},
    archivePrefix = {arXiv},
    eprint    = {1809.09329},
    timestamp = {Wed, 13 Mar 2019 15:40:02 +0100},
    biburl    = {https://dblp.org/rec/bib/journals/corr/abs-1809-09329},
    bibsource = {dblp computer science bibliography, https://dblp.org}
  }

mah-pytorch's People

Contributors

luoyadan avatar

Stargazers

 avatar Vincent avatar

Watchers

James Cloos avatar paper2code - bot 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.