Giter Site home page Giter Site logo

fmdh's Introduction

A pytorch implementation for paper "Fast and Multilevel Semantic-Preserving Discrete Hashing" BMVC-2019

REQUIREMENTS

  1. python >= 3.5.2
  2. pytorch >= 0.4

DATASETS

  1. MIRFLICKR-25K
  2. MSCOCO: train val

USAGE

usage: fmdh_mirflickr.py [-h] [--bits BITS] [--gpu GPU] [--arch ARCH]
                         [--max-iter MAX_ITER] [--epochs EPOCHS]
                         [--batch-size BATCH_SIZE] [--topk TOPK] [--m M]
                         [--m_wap M_WAP] [--C C] [--num-samples NUM_SAMPLES]
                         [--alpha ALPHA] [--beta BETA]
                         [--learning-rate LEARNING_RATE]

fmdh_mirflickr

optional arguments:
  -h, --help            show this help message and exit
  --bits BITS           binary code length (default: 16,32,64)
  --gpu GPU             selected gpu (default: 0)
  --arch ARCH           model name (default: resnet152)
  --max-iter MAX_ITER   maximum iteration (default: 20)
  --epochs EPOCHS       number of epochs (default: 1)
  --batch-size BATCH_SIZE
                        batch size (default: 64)
  --topk TOPK           top k (default: 100)
  --m M                 ndcg@m (default: 100)
  --m_wap M_WAP         ndcg@m (default: 100)
  --C C                 class number (default: 24)
  --num-samples NUM_SAMPLES
                        hyper-parameter: number of samples (default: 2000)
  --alpha ALPHA         hyper-parameter: alpha (default: 100000)
  --beta BETA           hyper-parameter: beta (default: 100)
  --learning-rate LEARNING_RATE
                        hyper-parameter: learning rate (default: 0.001)

RESULT

NDCG@100

Dataset Code Length
16 bits32 bits 64 bits
MIRFLICKR-25K0.5517 0.5793 0.6028
MSCOCO0.5036 0.5370 0.5541

ACG@100

Dataset Code Length
16 bits32 bits 64 bits
MIRFLICKR-25K2.501 2.739 2.760
MSCOCO1.501 1.618 1.633

Weighted MAP@100

Dataset Code Length
16 bits32 bits 64 bits
MIRFLICKR-25K2.536 2.723 2.722
MSCOCO1.530 1.697 1.708

fmdh's People

Contributors

iie-mr avatar treezzz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

treezzz

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.