Git Product home page Git Product logo

similarity-adaptive-deep-hashing's Introduction

Similarity-Adaptive Deep Hashing (SADH)

Unsupervised Deep Hashing with Similarity-Adaptive and Discrete Optimization

Created by Fumin Shen, Yan Xu, Li Liu, Yang Yang, Zi Huang, Heng Tao Shen

The details can be found in the TPAMI 2018 paper (release soon).

Contents

Prerequisites

  1. Requirements for Caffe, pycaffe and matcaffe (see: Caffe installation instructions).

  2. Prerequisites for datasets.

    Note: In our experiments, we horizontally flip training images manually for data augmentation. If the size of your training data is small (< 100K, like CIFAR-10. MNIST), you should do this step.

    We also provide our flipping code in cifar10/flip_img.m, you can run it to handle your own datasets.

  3. VGG-16 pre-trained model on ILSVC12 datasets, and save it in caffemodels directory.

Installation

Enter caffe directory and download the source codes.

    cd caffe/

Modify Makefile.config and build Caffe with following commands:

    make all -j8
    make pycaffe
    make matcaffe

Usage

We only supply the code to train 16-bit SADH on CIFAR-10 dataset.

We integrate train step and test step in a bash file train.sh, please run it as follows:

    ./train.sh [ROOT_FOLDER] [GPU_ID]
    # ROOT_FOLDER is the root folder of image datasets, e.g. ./cifar10/
    # GPU_ID is the GPU you want to train on

Resources

We supply CIFAR-10 dataset, which has been flipped. You can download it by following links:

  • CIFAR-10 dataset (png format): BaiduYun.

Citation

If you find our approach useful in your research, please consider citing:

@article{'shen2018tpami',
    author   = {Fumin Shen and Yan Xu and Li Liu and Yang Yang and Zi Huang and Heng Tao Shen},
    journal  = {IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI)}, 
    title    = {Unsupervised Deep Hashing with Similarity-Adaptive and Discrete Optimization},
    year     = {2018}
}

similarity-adaptive-deep-hashing's People

Contributors

xuyan1115 avatar bd622 avatar

Watchers

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