Giter Site home page Giter Site logo

ltcf's Introduction

Long-Term Crowd Flow Dataset

This repository contains a dataset of 87,430 simulated crowd flows used in Laying the Foundations of Deep Long-Term Crowd Flow Prediction by Samuel S. Sohn, Honglu Zhou, Seonghyeon Moon, Sejong Yoon, Vladimir Pavlovic, and Mubbasir Kapadia. If you find this dataset useful in your research, please consider citing:

@inproceedings{sohnECCV20crowdflow,
  author    = {Sohn, Samuel S. and Zhou, Honglu and Moon, Seonghyeon and Yoon, Sejong and Pavlovic, Vladimir and Kapadia, Mubbasir},
  title     = {Laying the Foundations of Deep Long-Term Crowd Flow Prediction},
  booktitle = {European Conference on Computer Vision (ECCV)},
  year      = {2020}
}

Installation

  1. Clone this repository.

    >> git clone https://github.com/SSSohn/LTCF.git
    >> cd LTCF/
    
  2. Download the pre-trained models from Google Drive and place them in the Models/Pre-Trained Models/ directory.

  3. We recommend installing Python v3.6.5 from Anaconda and installing PyTorch (>= 1.1.0) by following the guidelines on the official instructions according to your specific CUDA version.

Training

If you want to reproduce the results of our pretrained models, first move the training and testing data into Models/Data/ and then run the following commands:

>> cd Models/
>> python Models/1_RunDataPreparation.py
>> python Models/2_RunTraining.py

This will train a new model for 200 epochs with a batch size of 32, learning rate of 0.01, and a momentum of 0.9.

Testing

In order to test the pre-trained models located in Models/Pre-Trained Models/ on one of the Testing sets, move the contents of the Testing set into Models/Data/Testing/ and run Models/3_RunTesting.py. This will convert the image files into Numpy files and predict the output using the specified model. The output images are saved in Models/Output/.

Folder Structure

+---Proxy Crowd Flow
|   +---CR 1.00
|   |   +---Testing
|   |   \---Training
|   +---CR 1.25
|   |   +---Testing
|   |   \---Training
|   +---CR 1.50
|   |   +---Testing
|   |   \---Training
|   +---CR 1.75
|   |   +---Testing
|   |   \---Training
|   \---CR 2.00
|       +---Testing
|       \---Training
\---Simulated Crowd Flow
    +---Multi-Goal Non-Uniform Agents
    |   +---Testing
    |   \---Training
    +---Non-Axis-Aligned Real Floorplans
    |   \---Testing
    \---Single-Goal Uniform Agents
        +---Testing
        \---Training

In each of the Training and Testing folders, there are 10 sub-folders, each corresponding to a component in the Framework image below:

+---A
+---A'
+---Cx'
+---Cy'
+---E
+---E'
+---G
+---G'
+---Y  (Ground Truth)
\---Y' (Compressed Ground Truth)

Dataset Sample

A G E Cx' Cy' A' G' E' Y Y'

Framework

Acknowledgement

Part of our code is borrowed from the following repository:

ltcf's People

Contributors

sssohn avatar yoonsejong avatar ncmhe 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.