This is an unofficial implementation of VGG's Comparator Network [1] using PyTorch.
Overall architecture is below.
- Python 3.5+
- PyTorch 0.4.0
- python-opencv
- Basic architecture of detect, attend and compare module.
- Model train code.
- Diversity Regularization of local landmarks.
- Using pretrained ResNet, SENet model in detect process.
- Keypoint Regularization of local landmarks.
- Hard sampling
Download VGGFace2 dataset [link]
python train.py -i "path to your local VGGFace2 train img dir"
- Weidi Xie, Li Shen, Andrew Zisserman, Comparator Networks, 2018 [pdf]