Giter Site home page Giter Site logo

social-lstm's Introduction

Social LSTM implementation in PyTorch

Project details

Semester project of Master of Computer Science in EPFL
Student name : Baran Nama
Advisor: Alexandre Alahi
Presentation : https://drive.google.com/file/d/1biC23s1tbsyDETKKBW8PFXWYyyhNEAuI/view?usp=sharing

Implementation details

Baseline implementation: https://github.com/vvanirudh/social-lstm-pytorch
Paper: http://cvgl.stanford.edu/papers/CVPR16_Social_LSTM.pdf
Made improvements: Please see attached presentation

Documentation

  • generator.py : Python script for generating artifical datasets
  • helper.py: Python script includes various helper methods
  • hyperparameter.py: Pyton script for random best parameter selection for a model
  • make_directories.sh: Bash script for creation of file structure
  • model.py: Python file includes Social LSTM model definition
  • olstm_model.py: Python file includes Occupancy LSTM model definition
  • olstm_train.py: Python script for training Occupancy LSTM model
  • test.py: Python script for model testing and getting output txt file for submission
  • train.py: Python script for training Social LSTM model
  • utils.py: Python script for handling input train/test/validation data and batching it
  • validation.py: Python script for externally evaluate a trained model by getting validation error
  • visualize.py: Python script for visualizing predicted trajectories during train/test/validation sessions
  • vlstm_model.py: Python file includes Vanilla LSTM model definition
  • vlstm_train: Python script for training Vanilla LSTM model

How to deploy

  1. Fork the repository
  2. Start train a model >>> python train/olstm_train/vlstm.train.py - -[Parameter set]
  3. If necesarry file structure is not exist (which is the initial situation), train script will run make_directories.sh and this command will automatically create file structure
  4. Enjoy!

Results

Model name Avarage error Final error Mean error
Social LSTM 1.3865 2.098 0.675
Occupancy LSTM 2.1105 3.12 1.101
Vanilla LSTM 2.107 3.114 1.1

Reference: http://trajnet.stanford.edu/result.php?cid=1

social-lstm's People

Contributors

quancore avatar mirsking 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.