Giter Club home page Giter Club logo

gpgraph's Introduction

Learning Pedestrian Group Representations for
Multi-modal Trajectory Prediction

Inhwan Bae · Jin-Hwi Park · Hae-Gon Jeon
ECCV 2022

Project Page ECCV Paper Source Code Related Works



This repository contains the code for unsupervised group estimation applied to the trajectory prediction models.


🧑‍🤝‍🧑 GP-Graph Architecture 🧑‍🤝‍🧑

  • Learns to assign each pedestrian into the most likely behavior group in an unsupervised manner.
  • Pedestrian group pooling&unpooling and group hierarchy graph for group behavior modeling.
  • Group-level latent vector sampling strategy to share the latent vector between group members.

Model Training

Setup

Environment
All models were trained and tested on Ubuntu 20.04 with Python 3.7 and PyTorch 1.9.0 with CUDA 11.1.

Dataset
Preprocessed ETH and UCY datasets are included in this repository, under ./dataset/. The train/validation/test splits are the same as those fond in Social-GAN.

Baseline models
This repository supports the SGCN baseline trajectory predictor. We have included model source codes from their official GitHub in model_baseline.py

Train GP-Graph

To train our GPGraph-SGCN on the ETH and UCY datasets at once, we provide a bash script train.sh for a simplified execution.

./train.sh

We provide additional arguments for experiments:

./train.sh -t <experiment_tag> -d <space_seperated_dataset_string> -i <space_seperated_gpu_id_string>

# Examples
./train.sh -d "hotel" -i "1"
./train.sh -t onescene -d "hotel" -i "1"
./train.sh -t allinonegpu -d "eth hotel univ zara1 zara2" -i "0 0 0 0 0"

If you want to train the model with custom hyper-parameters, use train.py instead of the script file.

Model Evaluation

Pretrained Models

We have included pretrained models in the ./checkpoints/ folder.

Evaluate GP-Graph

You can use test.py to evaluate our GPGraph-SGCN model.

python test.py

📖 Citation

If you find this code useful for your research, please cite our trajectory prediction papers :)

💬 LMTrajectory (CVPR'24) 🗨️ | 1️⃣ SingularTrajectory (CVPR'24) 1️⃣ | 🌌 EigenTrajectory (ICCV'23) 🌌 | 🚩 Graph‑TERN (AAAI'23) 🚩 | 🧑‍🤝‍🧑 GP‑Graph (ECCV'22) 🧑‍🤝‍🧑 | 🎲 NPSN (CVPR'22) 🎲 | 🧶 DMRGCN (AAAI'21) 🧶

@inproceedings{bae2022gpgraph,
  title={Learning Pedestrian Group Representations for Multi-modal Trajectory Prediction},
  author={Bae, Inhwan and Park, Jin-Hwi and Jeon, Hae-Gon},
  booktitle={Proceedings of the European Conference on Computer Vision},
  year={2022}
}
More Information (Click to expand)
@inproceedings{bae2024lmtrajectory,
  title={Can Language Beat Numerical Regression? Language-Based Multimodal Trajectory Prediction},
  author={Bae, Inhwan and Lee, Junoh and Jeon, Hae-Gon},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year={2024}
}

@inproceedings{bae2024singulartrajectory,
  title={SingularTrajectory: Universal Trajectory Predictor Using Diffusion Model},
  author={Bae, Inhwan and Park, Young-Jae and Jeon, Hae-Gon},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year={2024}
}

@inproceedings{bae2023eigentrajectory,
  title={EigenTrajectory: Low-Rank Descriptors for Multi-Modal Trajectory Forecasting},
  author={Bae, Inhwan and Oh, Jean and Jeon, Hae-Gon},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  year={2023}
}

@article{bae2023graphtern,
  title={A Set of Control Points Conditioned Pedestrian Trajectory Prediction},
  author={Bae, Inhwan and Jeon, Hae-Gon},
  journal={Proceedings of the AAAI Conference on Artificial Intelligence},
  year={2023}
}

@inproceedings{bae2022npsn,
  title={Non-Probability Sampling Network for Stochastic Human Trajectory Prediction},
  author={Bae, Inhwan and Park, Jin-Hwi and Jeon, Hae-Gon},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year={2022}
}

@article{bae2021dmrgcn,
  title={Disentangled Multi-Relational Graph Convolutional Network for Pedestrian Trajectory Prediction},
  author={Bae, Inhwan and Jeon, Hae-Gon},
  journal={Proceedings of the AAAI Conference on Artificial Intelligence},
  year={2021}
}

Acknowledgement

Part of our code is borrowed from SGCN. We thank the authors for releasing their code and models.

gpgraph's People

Contributors

inhwanbae avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gpgraph's Issues

Code for other baseline models

Hi, thanks for the nice work!

In the repo, you only provide the code for SGCN. I am wondering whether you could also add the code for other baseline models in your table1. Also, could you provide the code for evaluating the PW and GW for your model, as is shown in table2? Thanks!

visualize trajectory

hello,i am learning about this pedestrian trajectory prediction recently, and i try to visualize this trajectory in the raw videoes, but i failed. I saw you have done this job in your paper. so i want to know whether you can share the code? thank you

Ablation Result - Table 4

Hi Inhwan,

I tried to reproduce the ablation study result in your table 4, especially for the intra-only (variant 1) and inter-only (variant 2) experiments. It seems that my reproduced intra-only result (avg-0.25/0.45) is better than my reproduced inter-only result (avg-0.31/0.53), which violates your result in table 4. The values are close to what you reported in the table but they do not correspond to the correct settings. It seems that the intra-group interactions has a stronger influence on the final prediction result.

I am not sure whether it is my fault or you made the mistake in the table. In your code, the inter-group flag is before intra-group flag, but in your ablation table intra-group column is before the inter-group column. Please let me know if I missed something or some possible mistakes I've made in reproducing table 4 results. If anyone have reproduced the results in table 4, please share your results.

Group Visualization

Hello, I am very interested in your work.
I would like to know how it is done in the group visualization piece and what is the name of the graph, I would like to try to plot it but I don't know the name of the graph.
cgi-bin_mmwebwx-bin_webwxgetmsgimg_ MsgID=908891790643046299 skey=@crypt_9876ca9_6e71b062e702241b7520f3d617c3a30b mmweb_appid=wx_webfilehelper

version problem

What are the versions of cuda and pytorch you are using, and I did not find your requirements.tx. Thank you very much if you can share it!

loss problem

Hello, may I ask why my loss is always 0 since the first epoch?
image
image

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.