Giter Site home page Giter Site logo

jacyhust / gqr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lijinf2/gqr

0.0 0.0 0.0 86.81 MB

License: GNU General Public License v3.0

CMake 2.58% C++ 75.87% C 0.62% Shell 0.52% Fortran 19.12% Python 0.13% JavaScript 0.10% CSS 0.07% MATLAB 1.00%

gqr's Introduction

GQR

A General and Efficient Querying Method for Learning to Hash (SIGMOD 2018)


Why GQR framework for similarity search

  • Fast Training (Matlab and Automatic Parallelization)
  • Support of Multiple Hash Tables (Like k-nn Graph supports k > 1)

Dependences

  • CMake
  • Matlab

Run

-Step 1: clone the repository

git clone --recursive https://github.com/lijinf2/gqr.git

cd gqr

-Step 2: train models, which are stored under folder hashingCodeTXT

cd learn/PCAH

mkdir hashingCodeTXT && bash run.sh

cd ../../

-Step 3: make app and run

mkdir build && cd ./build && cmake ../ -DCMAKE_BUILD_TYPE=Release

make search

cd ../script && bash search.sh

You may refer to folder ./script for detailed explanations and more instructions.

Reproduce results in the SIGMOD paper

cd reproduce

bash prepareData

./runExperiment.sh PCAH GQR 12 1 cifar60k

bash ./runMainExperiments

Support

Hashing Algorithms

  • ITQ: Iterative quantization
  • PCAH: PCA Hashing
  • PCARR: PCA hashing with random rotation
  • SH: Spectral Hashing
  • SpH: Spherical Hashing
  • KMH: KMeans Hashing
  • IsoH: Isotropic Hashing
  • SIM: Random Projecting Hashing.
  • LMIP: Length Marked (variant length) Inner Product
    • only work with query method LM
    • based on SIM which generate random projecting bits, and extra bits is generated for representing NORM(Length)

Query Algorithms

  • HR: Hamming Ranking
  • HL: Hash Lookup
  • GQR: Generate-to-probe quantization ranking
  • LM: Length Marked ranking(work the LMIP)
    • use both random projecting bits and extra bis generated in LMIP to rank

Acknowledgement

GQR project is developed based on LSHBOX (https://github.com/RSIA-LIESMARS-WHU/LSHBOX) and MatlabFunc (https://github.com/dengcai78/MatlabFunc). Great appreciation to the contributors of LSHBOX and MatlabFunc.

More

Distribued GQR on general system for similarity search

Reference

A General and Efficient Querying Method for Learning to Hash (SIGMOD 2018)

gqr's People

Contributors

lijinf2 avatar xinyandai avatar primetang avatar ienlong avatar jerry-liujie avatar kelvin-ng avatar xiaozf avatar ysong4 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.