Skip to content

Unofficial code of paper "Improving description-based person re-identification by multi-granularity image-text alignment." by Niu et al. (partially implemented)

Notifications You must be signed in to change notification settings

cuiaiyu/Text-to-Image-ReIdentification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language-to-vision Re-ID: An Unofficial Implementation of Multi-granularity Image-text Alignments

(No longer actively maintained)

@article{niu2020improving,
  title={Improving description-based person re-identification by multi-granularity image-text alignments},
  author={Niu, Kai and Huang, Yan and Ouyang, Wanli and Wang, Liang},
  journal={IEEE Transactions on Image Processing},
  volume={29},
  pages={5542--5556},
  year={2020},
  publisher={IEEE}
}
  • This is a beta version implementation. Bug could exist.
  • If you find this is useful in your research work, please cite the original paper (and probably star this repo ;-))

Dataset

Please download the train and val1 setfrom WIDER Person Search by Language dataset and save it in proper folder.

Performance

With bi-GRU as caption encoder and ResNet-50 as image encoder, we got the following results:

Model R@1 R@5 R@10
MIA (global-global) 47.56 71.34 79.34
MIA (global-global + global-part) 50.78 73.03 82.11
MIA (global-global + global-part + part-part) (reported) 53.10 75.00 82.90

for computational reason, we haven't implemented the global-global + global-part + part-part versiono of MIA, which might be released in next updates.

Train

run sh src/run.sh

Inference

run sh src/run.sh with --mode val and --load_ckpt_fn set as the path to the saved checkpoints.

Visualization

  1. Check notebook src/inference.ipynb for interactive retrieval with config set properly

  2. run python src/visualizations/heep_generator.py for generate a html page visualize retrieval result. Please set parameter accordingly to enable different visualization. e.g. False only for only display retrieval failures.

About

Unofficial code of paper "Improving description-based person re-identification by multi-granularity image-text alignment." by Niu et al. (partially implemented)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published