Skip to content

Chenwangxing/STIGCN_master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STIGCN_master

STIGCN: Spatial-Temporal Interaction-aware Graph Convolution Network for Pedestrian Trajectory Prediction! The Paper: https://link.springer.com/article/10.1007/s11227-023-05850-8

The code and weights have been released, enjoy it!

The general framework of the proposed method. First, historical trajectories were transformed into spatial and temporal graph inputs. Then, spatial-temporal interaction-aware learning obtained the spatial-temporal fusion adjacency matrix from the graph inputs. Afterward, the subsequent graph convolution network learned the trajectory representation features. Finally, the Time-Extrapolator Pyramid Convolution Neural Network (TEP-CNN) estimated the bi-variate Gaussian distribution parameters of future trajectory points for predicting future pedestrian trajectories.

image

The spatial-temporal interaction-aware learning framework. First, embedding functions were used to obtain spatial and temporal graph inputs that represent features of the graph. Then, the spatial and temporal adjacency matrices were generated through the self-attention mechanism. Next, the spatial-temporal interaction-aware attention module further learns the relationship between spatial and temporal interactions to generate the spatial-temporal awareness adjacency matrix. Finally, the spatial-temporal adjacency matrix and spatial-temporal interaction-aware adjacency matrix were concatenated to generate the spatial-temporal fusion adjacency matrix.

image

Code Structure

checkpoint folder: contains the trained models

dataset folder: contains ETH and UCY datasets

model.py: the code of STIGCN

test.py: for testing the code

utils.py: general utils used by the code

metrics.py: Measuring tools used by the code

Model Evaluation

You can easily run the model! To use the pretrained models at checkpoint/ and evaluate the models performance run: test.py

Acknowledgement

Some codes are borrowed from Social-STGCNN and SGCN. We gratefully acknowledge the authors for posting their code.

Cite this article:

Chen, W., Sang, H., Wang, J. et al. STIGCN: spatial–temporal interaction-aware graph convolution network for pedestrian trajectory prediction. J Supercomput (2023). https://doi.org/10.1007/s11227-023-05850-8

About

STIGCN: Spatial-Temporal Interaction-aware Graph Convolution Network for Pedestrian Trajectory Prediction

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages