Official PyTorch implementation of BroadFace: Looking at Tens of Thousands of People at Once for Face Recognition (https://arxiv.org/abs/2008.06674), ECCV 2020
This repository contains source codes of experiments for image retrieval (deep metric learning).
You need a CUDA-enabled GPU
and python
(>3.6) to run the source code.
- torchvision >= 0.4.2
- torch >= 1.1.0
- tqdm
- scipy
- Pillow
pip install -r requirements.txt
mkdir ./dataset
The source code will automatically download CUB-200-2011, Cars-196, and Stanford Online Products datasets.
But you need to manually download In-Shop Clothes Retrieval dataset.
- Make
Inshop
directory in./dataset
directory
mkdir -p ./dataset/Inshop
- Download
img.zip
at the following link, and unzip it inInshop
directory
https://drive.google.com/drive/folders/0B7EVK8r0v71pYkd5TzBiclMzR00
- Download
list_eval_partition.txt
at the following link, and put it in theInshop
directory.
https://drive.google.com/drive/folders/0B7EVK8r0v71pWVBJelFmMW5EWnM
# Stanford Online Products
### ArcFace
python run_stanford.py --loss arcface
### BroadFace (without Compensation)
python run_stanford.py --loss broadface --queue-size 32000
### BroadFace (with Compensation)
python run_stanford.py --loss broadface --queue-size 32000 --compensate
# In-Shop Clothes Retrieval
### ArcFace
python run_inshop.py --loss arcface
### BroadFace (without Compensation)
python run_inshop.py --loss broadface --queue-size 32000
### BroadFace (with Compensation)
python run_inshop.py --loss broadface --queue-size 32000 --compensate
In case of using this source code for your research, please cite our paper.
@inproceedings{kim2020broadface,
title={BroadFace: Looking at Tens of Thousands of People at Once for Face Recognition},
author={Kim, Yonghyun and Park, Wonpyo and Shin, Jongju},
booktitle={European Conference on Computer Vision},
pages={536--552},
year={2020},
organization={Springer}
}