2020-04-27 22:49:54 +08:00
PyRetri
2020-04-02 14:00:49 +08:00
## Introduction
2020-04-22 14:25:08 +08:00
PyRetri (pronounced as [ˈ perɪ ˈ triː ]) is a unified deep learning based image retrieval toolbox based on PyTorch, which is designed for researchers and engineers.
2020-04-02 14:00:49 +08:00
2020-04-26 12:58:28 +08:00

2020-04-17 20:36:30 +08:00
2020-04-02 14:23:31 +08:00
### Major Features
2020-04-02 14:00:49 +08:00
2020-04-21 20:55:19 +08:00
PyRetri is a versatile deep learning based image retrieval toolbox designed with simplicity and flexibility in mind.
2020-04-17 21:09:57 +08:00
2020-04-21 20:55:19 +08:00
- **Modular Design**: We decompose the deep learning based image retrieval into several stages and users can easily construct an image retrieval pipeline by selecting and combining different modules.
2020-04-17 21:02:11 +08:00
- **Flexible Loading**: The toolbox is able to adapt to load several types of model parameters, including parameters with the same keys and shape, parameters with different keys, and parameters with the same keys but different shapes.
2020-04-21 20:55:19 +08:00
- **Support of Multiple Methods**: The toolbox directly supports several popluar methods designed for deep learning based image retrieval, which is also suitable for person re-identification.
- **Combinations Search Tool**: We provide the pipeline combinations search scripts to help users to find the optimal combinations of these supported methods with various hyper-parameters.
2020-04-02 14:00:49 +08:00
### Supported Methods
2020-04-23 15:52:27 +08:00
The toolbox supports popluar and prominent methods of image retrieval and users can also design and add their own modules.
2020-04-17 22:37:22 +08:00
2020-04-02 14:00:49 +08:00
- **Pre-processing**
- DirectReszie, PadResize, ShorterResize
- CenterCrop, TenCrop
- TwoFlip
- ToTensor, ToCaffeTensor
- Normalize
- **Feature Representation**
2020-04-21 22:06:43 +08:00
- Global Average Pooling (GAP), Global Max Pooling (GMP)
2020-04-21 22:18:38 +08:00
- [R-MAC ](https://arxiv.org/pdf/1511.05879.pdf ), [SPoC ](https://arxiv.org/pdf/1510.07493.pdf ), [CroW ](https://arxiv.org/pdf/1512.04065.pdf ), [GeM ](https://arxiv.org/pdf/1711.02512.pdf ), [SCDA ](http://www.weixiushen.com/publication/tip17SCDA.pdf ), [PWA ](https://arxiv.org/abs/1705.01247 )
2020-04-02 14:00:49 +08:00
- [PCB ](http://openaccess.thecvf.com/content_ECCV_2018/papers/Yifan_Sun_Beyond_Part_Models_ECCV_2018_paper.pdf )
- **Post-processing**
2020-04-17 21:00:30 +08:00
- [SVD ](https://link.springer.com/chapter/10.1007%2F978-3-662-39778-7_10 ), [PCA ](http://pzs.dstu.dp.ua/DataMining/pca/bibl/Principal%20components%20analysis.pdf )
2020-04-02 14:00:49 +08:00
- [DBA ](https://www.robots.ox.ac.uk/~vgg/publications/2012/Arandjelovic12/arandjelovic12.pdf )
2020-04-17 21:00:30 +08:00
- [QE ](https://www.robots.ox.ac.uk/~vgg/publications/papers/chum07b.pdf ), [K-reciprocal ](https://arxiv.org/pdf/1701.08398.pdf )
2020-04-02 14:00:49 +08:00
## License
2020-04-21 22:06:43 +08:00
This project is released under the [Apache 2.0 license ](LICENSE ).
2020-04-02 14:00:49 +08:00
## Installation
2020-04-17 21:51:28 +08:00
Please refer to [INSTALL.md ](docs/INSTALL.md ) for installation and dataset preparation.
2020-04-02 14:00:49 +08:00
## Get Started
2020-04-17 21:51:28 +08:00
Please see [GETTING_STARTED.md ](docs/GETTING_STARTED.md ) for the basic usage of PyRetri.
2020-04-02 14:00:49 +08:00
## Model Zoo
2020-04-17 21:51:28 +08:00
Results and models are available in [MODEL_ZOO.md ](docs/MODEL_ZOO.md ).
2020-04-02 14:00:49 +08:00
## Citation
If you use this toolbox in your research, please cite this project.
2020-04-27 22:49:54 +08:00
```
2020-04-27 22:44:25 +08:00
@article {PyRetri,
2020-04-27 22:51:21 +08:00
title = {PyRetri: A PyTorch-based Library for Image Retrieval by Deep Convolutional Neural Networks},
author = {Hu, Benyi and Song, Ren-Jie and Wei, Xiu-Shen and Yao, Yazhou and Hua, Xian-Sheng and Liu, Yuehu},
year = {2020}
2020-04-27 22:44:25 +08:00
}
2020-04-02 14:00:49 +08:00
```
2020-04-15 14:44:22 +08:00
## Contacts
2020-04-17 22:52:56 +08:00
If you have any questions about our work, please do not hesitate to contact us by emails.
Xiu-Shen Wei: [weixs.gm@gmail.com ](mailto:weixs.gm@gmail.com )
2020-04-17 22:53:48 +08:00
Benyi Hu: [hby0906@stu.xjtu.edu.cn ](mailto:hby0906@stu.xjtu.edu.cn )
2020-04-17 22:52:56 +08:00
2020-04-17 23:23:47 +08:00
Renjie Song: [songrenjie@megvii.com ](mailto:songrenjie@megvii.com )
2020-04-17 23:05:06 +08:00