Tensorflow implementation of GPQ
Accepted to CVPR 2020 - paper
Young Kyun Jang and Nam Ik Cho
Image retrieval methods that employ hashing or vector quantization have achieved great success by taking advantage of deep learning. However, these approaches do not meet expectations unless expensive label information is sufficient. To resolve this issue, we propose the first quantization-based semi-supervised image retrieval scheme: Generalized Product Quantization (GPQ) network. We design a novel metric learning strategy that preserves semantic similarity between labeled data, and employ entropy regularization term to fully exploit inherent potentials of unlabeled data. Our solution increases the generalization capacity of the quantization network, which allows overcoming previous limitations in the retrieval community. Extensive experimental results demonstrate that GPQ yields state-of-the-art performance on large-scale real image benchmark datasets.
GPQ consitsts of three components: feature extractor F, PQ table Z and classifier C. All the components are trained with the small amount of labeled data with N-pair Product Quantization loss, and the large amount of unlabeled data with Subspace Entropy Mini-max loss.
While training, codewords move toward unlabeled data points, and at the same time, both labeled and unlabeled data points cluster near the codewords.
/path/to/GPQ-master
.|--GPQ-master
|--cifar10
|--batches.meta
|--data_batch_1
|--data_batch_2
|--data_batch_3
|--data_batch_4
|--data_batch_5
|--test_batch
|--cifar10_Similarity.mat
|--models
|--48bits_example.ckpt.data-00000-of-00001
|--48bits_example.ckpt.index
|--48bits_example.ckpt.meta
|--ImageNet_pretrained.mat
config.py
.Demo.py
, it will print mAP and stores one of the visualized ranked-list.Examples
config.py
to change the number of codebooks, codewords.train.py
, and it will save the model parameters and checkpoints for every 20 epochs.@InProceedings{GPQ,
author = {Young Kyun Jang and Nam Ik Cho},
title = {Generalized Product Quantization Network for Semi-supervised Image Retrieval},
booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2020}
}
Youngkyun Jang: kyun0914@gmail.com