SkillAgentSearch skills...

PIEPredict

PIE: A Large-Scale Dataset and Models for Pedestrian Intention Estimation and Trajectory Prediction

Install / Use

/learn @aras62/PIEPredict
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Pedestrian intention and trajectory estimation

<p align="center"> <img src="pie_predict_diagram.png" alt="pie_predict" align="middle" width="600"/> </p>

This repository contains Python code and pretrained models for pedestrian intention and trajectory estimation presented in our paper A. Rasouli, I. Kotseruba, T. Kunic, and J. Tsotsos, "PIE: A Large-Scale Dataset and Models for Pedestrian Intention Estimation and Trajectory Prediction", ICCV 2019.

Table of contents

<a name="dependencies"></a>

Dependencies

The interface is written and tested on Ubuntu 16.04 with Python 3.5, CUDA 9 and cuDNN 7. The interface also requires the following external libraries:<br/>

  • tensorflow (tested with 1.9 and 1.14)
  • keras (tested with 2.1 and 2.2)
  • scikit-learn
  • numpy
  • pillow

To install via virtual environment (recommended) follow these steps:

  • Install virtual environment sudo apt-get install virtualenv.

  • Create a virtual environment with Python3:

> virtualenv --system-site-packages -p python3 ./venv
> source venv/bin/activate
  • Install dependencies: pip3 install -r requirements.txt

<a name="datasets"></a>

PIE Dataset

The code is trained and tested with Pedestrian Intention Estimation (PIE) dataset.

Download annotations and video clips from the PIE webpage and place them in the PIE_dataset directory. The folder structure should look like this:

PIE_dataset
    annotations
        set01
        set02
        ...
    PIE_clips
        set01
        set02
        ...

Videos will be automatically split into individual frames for training. This will require 1.1T of free space on the hard drive.

Create environment variables for PIE data root and add them to your .bashrc:

export PIE_PATH=/path/to/PIE/data/root
export PIE_RAW_PATH=/path/to/PIE/data/PIE_clips/

Download PIE data interface pie_data.py from PIE github.

<a name="train"></a>

Train

To train all models from scratch and evaluate them on the test data use this command:

python train_test.py 1

This will train intention, speed and trajectory models separately and evaluate them on the test data.

_Note: training intention model uses image data and requires 32GB RAM.

Due to the random initialization of the networks and minor changes to the annotations there might be slight variation in the results.

<a name="test"></a>

Test

To reproduce the results of our best model which combines pedestrian intention and vehicle speed for pedestrian trajectory prediction run this command:

python train_test.py 2

<a name="citation"></a>

Citation

If you use our dataset and/or models, please cite:

@inproceedings{rasouli2017they,
  title={PIE: A Large-Scale Dataset and Models for Pedestrian Intention Estimation and Trajectory Prediction},
  author={Rasouli, Amir and Kotseruba, Iuliia and Kunic, Toni and Tsotsos, John K},
  booktitle={ICCV},
  year={2019}
}

<a name="authors"></a>

Corresponding authors

Should you have any questions about downloading and using the data or the models, please feel free to raise an issue or send an email to arasouli.ai@gmail.com or yulia_k@eecs.yorku.ca.

<a name="license"></a>

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

View on GitHub
GitHub Stars155
CategoryDevelopment
Updated11d ago
Forks34

Languages

Python

Security Score

95/100

Audited on Mar 26, 2026

No findings