2020-04-02 14:00:49 +08:00
# PyRetri
## Introduction
2020-04-17 21:09:57 +08:00
PyRetri is a novel 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-17 20:45:37 +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-17 21:09:57 +08:00
Pyretri is a versatile deep learning-based image retrieval toolbox designed with simplicity, flexibility in mind.
2020-04-17 21:02:11 +08:00
- **Modular Design**: We decompose the deep learning-based image retrieval into several stages and one can easily construct a image retrieval pipeline by combining different modules.
- **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-17 21:03:54 +08:00
- **Support of Multiple Methods**: The toolbox directly supports several popluar methods designed for deep learning-based image retrieval, which are also suitable for person re-identification.
2020-04-17 21:02:11 +08:00
- **Combinations Search Tool**: We provide the pipeline combinations search scripts to help users to find possible combinations of approaches with various hyper-parameters.
2020-04-02 14:00:49 +08:00
### Supported Methods
2020-04-17 22:37:22 +08:00
The toolbox supports several popluar methods and one can design and add their own modules.
2020-04-02 14:00:49 +08:00
- **Pre-processing**
- DirectReszie, PadResize, ShorterResize
- CenterCrop, TenCrop
- TwoFlip
- ToTensor, ToCaffeTensor
- Normalize
- **Feature Representation**
2020-04-17 21:00:30 +08:00
- GAP, GMP
- [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://pdfs.semanticscholar.org/a2ca/e0ed91d8a3298b3209fc7ea0a4248b914386.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
This project is released under the [Apache 2.0 license ](https://github.com/hby96/pyretri/blob/master/LICENSE ).
## 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.
```shell
```
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 23:01:20 +08:00
Renjie Song:[songrenjie@megvii.com](mailto:songrenjie@megvii.com)
2020-04-17 22:52:56 +08:00
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