by Huei-Fang Yang, Kevin Lin, and Chu-Song Chen
This code implements the cross-batch reference (CBR) learning as described in our ACM MM 2016 paper.
If you find CBR useful in your research, please consider citing:
@inproceedings{yang:acmmm16,
author = {Huei-Fang Yang and
Kevin Lin and
Chu-Song Chen},
title = {Cross-batch Reference Learning for Deep Classification and Retrieval},
booktitle = {Proc. ACM MM},
pages = {1237--1246},
year = {2016}
}
Caffe
,matcaffe
andpycaffe
(see: Caffe installation instructions)- MATLAB (required for performance evaluation)
-
Download the pretrained model and CIFAR-10 dataset.
$./download.sh
-
Modify the
CAFFE_BIN
in run.sh to the path where the CAFFE is installed. -
Modify the
caffe_root
in update_model.py to the path where the CAFFE is installed. -
Launch the script to train a network with CBR. This would take a few hours.
$./run.sh
-
Modify the
addpath
in run_cifar10.m to the path where the CAFFE is installed. -
Launch MATLAB and run the evaluation code to obtain mAP and precition@k.
>>run_cifar10
Please feel free to contact Huei-Fang Yang ([email protected]), Kevin Lin ([email protected]), or Chu-Song Chen ([email protected]) if you had any questions.