Giter VIP home page Giter VIP logo

adsh-aaai2018's Introduction


Source code for Asymmetric Deep Supervised Hashing on AAAI-2018


Introduction

  • This package contains the source code for the following paper:

    • Qing-Yuan Jiang and Wu-Jun Li. Asymmetric Deep Supervised Hashing. AAAI-2018.
  • Author: Qing-Yuan Jiang and Wu-Jun Li

  • Contact: qyjiang24#gmail.com or liwujun#nju.edu.cn

adsh-aaai2018's People

Contributors

jiangqy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

adsh-aaai2018's Issues

some confuse

在一些深度哈希里面,都是将cifar10分成trainset-5000,queryset-1000,database-(54000)然后仅仅在trainset-5000上训练。
在您的工作做,是把cifar10分成queryset/database 然后在database上训练,并得到特征提取网络和database的二值化表示,我想问的是假如我在实际应用中换了database,或者database中没有相应的标注。这样应该大大限制了该工作的应用吧

where you load the train_img.txt about cifar10 dataset??

For the ADSH_pytorch, in the ADSH_CIFAR_10.py, I find you random sample the training set from database, the codes is as follows,

for iter in range(max_iter):
        iter_time = time.time()
        '''
        sampling and construct similarity matrix
        '''
        select_index = list(np.random.permutation(range(num_database)))[0: num_samples]
        _sampler = subsetsampler.SubsetSampler(select_index)
        trainloader = DataLoader(dset_database, batch_size=batch_size,
                                 sampler=_sampler,
                                 shuffle=False,
                                 num_workers=4)

However, follow your paper, the training set is randomly sample 500 images for each class. Such that there are 5000 training samples. so in your program there is a list "train_img.txt" with 5000 lines for training.

The problem is I cannot find any codes about loading the train_img.txt ?? can you introduce it clearly?

missing LICENSE

Hi, it would be nice to have a license in the repo in case we want to publish our work using some of this code. Ideally MIT or Apache 2.0. Thanks!

您好,请问可以提供下DHN的MATLAB代码么?

您好,我是一名大学生,最近在看您的这篇论文,感觉特别棒。另外,看到您用MATLAB实现了DHN,请问您能分享下代码么?万分感谢!原作者的代码是caffe的,不太熟悉。

Help with another loss function

Hi @jiangqy,
I am trying to test your model with another loss function for the NUSWIDE dataset, the BCEWithLogitsLoss, however I'm having problem with the size of the input and of the labels. It's giving this error:

ValueError: Target size (torch.Size([64, 21])) must be the same as input size (torch.Size([64, 12]))

I do not understand why the input and the labels should be the same size. Can you help me?

The NUS-WIDE dataset

Hello! I have an question that I can get the NUS-WIDE.mat from your matlab implement but there is no nus-wide images dataset for pytorch implement. Can the author share the Nus-wide image dataset ?
Thank you very much !

您好,请问下NUS-WIDE数据集的问题

您好,我下载了您提供的百度网盘链接上的NUS-WIDE数据集,但是我分卷解压时一直报错,请问下您是如何解压的?数据集应该是没有问题吧?谢谢了!

How to calculate TOP5K

Dear Author, Hello, I like your work very much, but I have a question to ask you. How is TOP5K calculated in this paper? Does it mean the average retrieval accuracy of the first 5000 images? Thank you very much and look forward to receiving your reply.

想请问

function [dataset, param] = load_data(dataname)
switch dataname
case 'CIFAR-10'
load ./data/CIFAR-10.mat LAll IAll param;
case 'NUS-WIDE'
load ./data/NUS-WIDE.mat LAll IAll param;
case 'MS-COCO'
load ./data/MS-COCO.mat LAll IAll param;
param.indexRetrieval = param.indexDatabase;
end
dataset.IAll = IAll;
dataset.LAll = LAll;
end
想请问这三个数据集的./data/CIFAR-10.mat LAll IAll param是什么呢?

请教实验的参数

你好,我在复现您的工作时,使用nuswide数据集成功复现出了论文中的效果,但是使用coco数据集时没能得到论文中的效果,且有较大差距。因此,我想请问您在cifar10以及coco数据集上进行实验时的相关参数,或者还有其他需要注意和调整的地方也请您一并告知。
感谢~

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.