Create pret-benchmark #13
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Multi-Similarity Loss for Deep Metric Learning (MS-Loss)
This is the unofficial code with Paddlepaddle for the CVPR 2019 paper Multi-Similarity Loss with General Pair Weighting for Deep Metric Learning
And the official code is here
Initial Paddlepaddle 1.8.x
pip install paddlepaddle-gpu
Prepare the data and the pretrained model
The following script will prepare the CUB dataset for training by downloading to the ./resource/datasets/ folder; which will then build the data list (train.txt test.txt):
Download the imagenet pretrained model of
bninception and put it in the folder. And then we should use it to generate the Paddlepaddle pretrained model.
Installation
Train and Test on CUB200-2011 with MS-Loss
Trained models will be saved in the ./output/ folder if using the default config.
Best recall@1 is 65.1 (65.7 in the paper).
Contact
For any questions, please feel free to reach
Citation
If you use this method or this code in your research, please cite as:
License
MS-Loss is CC-BY-NC 4.0 licensed, as found in the LICENSE file. It is released for academic research / non-commercial use only. If you wish to use for commercial purposes, please contact zengxianxian727@foxmail.com