GithubHelp home page GithubHelp logo

chrisbyd / agah Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wendellgul/agah

0.0 0.0 0.0 566 KB

Source code for paper "Adversary Guided Asymmetric Hashing for Cross-Modal Retrieval".

Python 100.00%

agah's Introduction

Adversary Guided Asymmetric Hashing for Cross-Modal Retrieval

Code for the paper Adversary Guided Asymmetric Hashing for Cross-Modal Retrieval (ICMR 2019 Best Student Paper).

Requirements

  • Python >= 3.5
  • PyTorch >= 1.0.0

Usage

Help

python main.py help

You will get the following help information:

========================::HELP::=========================
    usage : python file.py <function> [--args=value]
    <function> := train | test | help
    example:
            python main.py train --lr=0.01
            python main.py help
    avaiable args (default value):
            load_model_path: None
            pretrain_model_path: ./data/imagenet-vgg-f.mat
            vis_env: None
            vis_port: 8097
            dataset: flickr25k
            data_path: ./data/FLICKR-25K.mat
            db_size: 18015
            num_label: 24
            tag_dim: 1386
            query_size: 2000
            training_size: 10000
            batch_size: 128
            emb_dim: 512
            valid: True
            valid_freq: 2
            max_epoch: 300
            bit: 64
            lr: 0.0001
            device: cuda:1
            alpha: 1
            beta: 0
            gamma: 0.001
            eta: 1
            mu: 1
            delta: 0.5
            lambd: 0.8
            margin: 0.3
            debug: False
            data_enhance: False
========================::HELP::=========================

Train & Test

Train and test:

python main.py train

For test only:

python main.py test

Datasets

Coming soon...

Framework

Result

Citing AGAH

@inproceedings{gu2019adversary,
  title={Adversary Guided Asymmetric Hashing for Cross-Modal Retrieval},
  author={Gu, Wen and Gu, Xiaoyan and Gu, Jingzi and Li, Bo and Xiong, Zhi and Wang, Weiping},
  booktitle={Proceedings of the 2019 on International Conference on Multimedia Retrieval},
  pages={159--167},
  year={2019},
  organization={ACM}
}

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.