Git Product home page Git Product logo

videoreid-psta's Introduction

Pyramid Spatial-Temporal Aggregation for Video-based Person Re-Identification

This is repository contains the code for the paper(ICCV 2021):

Pyramid Spatial-Temporal Aggregation for Video-based Person Re-Identification [pdf(baidu:PSTA)]

Yingquan Wang, Pingping Zhang, Shang Gao, Xia Geng, Hu Lu*, Dong Wang

Abstract

Video-based person re-identification aims to associate the video clips of the same person across multiple non-overlapping cameras. Spatial-temporal information provides richer and complementary information between frames, which is crucial to distinguish the target person when occlusion occurs. This paper proposes a novel Pyramid Spatial-Temporal Aggregation (PSTA) framework to aggregate the frame-level features progressively and fuse the hierarchical temporal features into a final video-level representation. Thus, short-term and long-term temporal information could be well exploited by different hierarchies. Furthermore, a Spatial-Temporal Aggregation Module (STAM) is proposed to enhance the aggregation capability of PSTA. It mainly consists of two novel attention blocks: Spatial Reference Attention (SRA) and Temporal Reference Attention (TRA). SRA explores the spatial correlations within a frame to determine the attention weight of each location. While TRA extends SRA with the correlations between adjacent frames, temporal consistency information can be fully explored to suppress the interference features and strengthen the discriminative ones. Extensive experiments on several challenging benchmarks demonstrate the effectiveness of the proposed PSTA, and our full model reaches 91.5% and 98.3% rank-1 accuracy on MARS and DukeMTMC-VideoReID benchmarks.

Training and Test

# For MARS
bash scripts/Mars_train.sh 
bash scripts/Mars_test.sh
# For DukeMTMC-VID
bash scripts/Duke_train.sh
bash scripts/Duke_test.sh

Result

Dataset Mars Duke-VID
Rank-1 91.5 98.3
mAP 85.8 97.7
model baidu:PSTA baidu:PSTA

Citation

if you use this code for your research, please cite our paper:

@inproceedings{PSTA,
	title = {Pyramid Spatial-Temporal Aggregation for Video-based Person Re-Identification},
	author = {Yingquan Wang and Pingping Zhang and Shang Gao and Xia Geng and Hu Lu and Dong Wang},
	booktitle = {ICCV},
	year = {2021}
}

Platform

This code was developed and tested with pytorch version 1.3.1.

Acknowledgments

This code is based on the implementations of baseline

videoreid-psta's People

Contributors

wangyq9 avatar

Stargazers

 avatar  avatar dlutzy avatar  avatar  avatar  avatar re-ID avatar  avatar

Watchers

dlutzy avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.