• Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Differentiable Social Force simulation with universal interaction potentials.

Tests
Executable Book documentation.
Deep Social Force (arXiv:2109.12081).

Deep Social Force

Deep Social Force
Sven Kreiss, 2021.

The Social Force model introduced by Helbing and Molnar in 1995 is a cornerstone of pedestrian simulation. This paper introduces a differentiable simulation of the Social Force model where the assumptions on the shapes of interaction potentials are relaxed with the use of universal function approximators in the form of neural networks. Classical force-based pedestrian simulations suffer from unnatural locking behavior on head-on collision paths. In addition, they cannot model the bias of pedestrians to avoid each other on the right or left depending on the geographic region. My experiments with more general interaction potentials show that potentials with a sharp tip in the front avoid locking. In addition, asymmetric interaction potentials lead to a left or right bias when pedestrians avoid each other.

Install and Run

# install from PyPI
pip install 'socialforce[dev,plot]'

# or install from source
pip install -e '.[dev,plot]'

# run linting and tests
pylint socialforce
pycodestyle socialforce
pytest tests/*.py

Ped-Ped-Space Scenarios

Emergent lane forming behavior with 30 and 60 pedestrians:

Download TrajNet++ Data

The Executable Book requires some real-world data for the TrajNet++ section. This is how to download and unzip it to the right folder:

wget -q https://github.com/vita-epfl/trajnetplusplusdata/releases/download/v4.0/train.zip
mkdir data-trajnet
unzip train.zip -d data-trajnet

More Repositories

1

html5validator

Command line tool to validate HTML5 files. Great for continuous integration.
Python
309
star
2

pysparkling

A pure Python implementation of Apache Spark's RDD and DStream interfaces.
Python
260
star
3

unicodeit

Converts LaTeX tags to unicode: \mathcal{H} โ†’ โ„‹. Available on the web or as Automator script for the Mac.
Python
248
star
4

databench

Data analysis tool.
Python
83
star
5

databench_examples

Example analyses for Databench.
Python
28
star
6

localcrawl

Crawl and render JavaScript templates.
Python
8
star
7

pelican-jsmath

Pass math to JavaScript renderers.
Python
7
star
8

pelican-theme-validator

Automatically create git branches with the output of pelican builds. Connect to TravisCI and show an overview of the status.
Python
4
star
9

databench_spark_test

Demo of using PySpark and Databench together.
Python
4
star
10

decouple

Decouple and recouple.
Python
4
star
11

databench_go

Go language kernel for Databench. Write your data analysis in Go and visualize and interact with it in the browser.
Go
3
star
12

decoupledDemo

Demo of recoupling a decoupled project. Effective likelihoods and template parametrizations are hosted on the web.
Python
2
star
13

dvds-js

Distributed versioned data structures implemented in JavaScript for browsers and node.js.
JavaScript
2
star
14

svenkreiss.github.io

Personal
HTML
2
star
15

PyROOTUtils

Python utilities for ROOT.
Python
2
star
16

dockbroker

Experimental. Clients ask dockbrokers for an "offer" for how much money they can execute a job and then pick the cheapest. Brokers that have data locally available or already cached part of the Docker image are cheaper and therefore preferred. Estimated time to completion will affect the price. Clients can build reputation in brokers when they deliver on time and brokers build reputation in clients when their job description and estimated run-time are good.
Go
2
star
17

LHCHiggsCouplings

Python interface to the numbers published by the LHC Higgs Cross Section Working Group in Yellow Report 3.
Python
1
star
18

databench_examples_viewer

Runs on Heroku.
Python
1
star
19

BatchLikelihoodScan

Creates (profile) likelihood scans of RooFit/RooStats models in any dimension locally or on batch systems.
Python
1
star
20

docker-flask-gevent

Ubuntu base. Need an image that has python-dev and all dependencies (174 of them) already built.
Shell
1
star