forked from sunshineclt/PedstrianPrediction
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38648b4
commit 4569df2
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,34 @@ | ||
# PedstrianPrediction | ||
|
||
This repo re-implement social LSTM and implement a new Spatial Pyramid Social LSTM proposed by us. | ||
This implementation is based on [https://github.com/vvanirudh/social-lstm-tf](https://github.com/vvanirudh/social-lstm-tf). We fix several bugs and vital errors in their repo. We also upgrade the tensorflow API to 1.8.0. | ||
|
||
## File Structure | ||
### data | ||
- `getPixelCoordinates.m`: the matlab code to transform original ETH dataset to `pixel_pos.csv`, which is used in our code. This file is based on the referred implementation. | ||
- `pixel_pos.csv`: the data file used by our code | ||
- `transformed_data.pkl`: `pixel_pos.csv` will be transformed in our code and save as transformed_data.pkl | ||
|
||
### social_lstm | ||
- `DataLoader.py`: deal with data loading and preprocess | ||
- `grid.py`: calculate grid or pyramid mask, called by `train.py` | ||
- ***`model.py`***: IMPORTANT! all model (including social lstm and spatial pyramid social lstm) are defined here | ||
- ***`social_sample.py`***: predict/test code, could be called using proper console parameters (use `social_sample.py --help` to see) | ||
- `social_visualize.py`: to draw predicted graphs | ||
- ***`train.py`***: train code, could be called using proper console parameters (use `train.py --help` to see) | ||
|
||
#### plot | ||
This directory contains several prediction plots for "Spatial Pyramid Social LSTM" method. | ||
Other method's plot can't be obtained since lab server is under maintenance (explained in our report). | ||
|
||
#### save | ||
This directory contains model file for "Spatial Pyramid Social LSTM" method. | ||
Other method's model can't be obtained since lab server is under maintenance (explained in our report). | ||
|
||
## Usage | ||
1. delete everything under `social_lstm/save/` | ||
2. run `train.py` to train a model | ||
3. run `social_sample.py` to predict | ||
4. run `social_visualize.py` to visualize | ||
|
||
## Authored by Letian Chen & Tianyang Zhao |