leeesangwon/PyTorch-Image-Retrieval
소개
A PyTorch framework for an image retrieval task including implementation of N-pair Loss (NIPS 2016) and Angular Loss (ICCV 2017).
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalPyTorch Image Retrieval
A PyTorch framework for an image retrieval task including implementation of N-pair Loss (NIPS 2016) and Angular Loss (ICCV 2017).
Loss functions
We implemented loss functions to train the network for image retrieval.
Batch sampler for the loss function borrowed from here.
- N-pair Loss (NIPS 2016): Sohn, Kihyuk. "Improved Deep Metric Learning with Multi-class N-pair Loss Objective," Advances in Neural Information Processing Systems. 2016.
- Angular Loss (ICCV 2017): Wang, Jian. "Deep Metric Learning with Angular Loss," ICCV, 2017
Self-attention module
We attached the self-attention module of the Self-Attention GAN to conventional classification networks (e.g. DenseNet, ResNet, or SENet).
Implementation of the module borrowed from here.
Data augmentation
We adopted data augmentation techniques used in Single Shot MultiBox Detector.
Post processing
We utilized the following post-processing techniques in the inference phase.
- Moving the origin of the feature space to the center of the feature vectors
- L2-normalization
- Average query expansion
- Database-side feature augmentation
관련 프로젝트 살펴보기
불러오는 중…