Official Tensorflow and PyTorch Implementation of "Generalized Sum Pooling for Metric Learning"
tensorflow: Implements GSP layer as well as many DML methods and provides tensorflow alternative of MLRC benchmarking framework.
pytorch: Implements GSP layer that is applied to Intra-Batch framework.
A detailed guide will be prepared soon.
tensorflow >= 2.8
yaml, numpy, PIL, sklearn, scipy, matplotlib, imageio, pprint
assuming the following structure:
├── metric_learning
│-------├── configs
│-------├── framework
│-------├── trainModel.py
(1) put custom config files in ./metric_learning/configs
(2) run >python trainModel.py command with arguments
(2.1) dataset can be passed as an argument
(2.2) dataset is downloaded automatically
(3) different configurations can be experimented by changing related .yaml files