Skip to main content

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

Metadata

Release files for socialforce 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for socialforce 0.2.3
File Size Uploaded
socialforce-0.2.3.tar.gz 15.8 kB Details

Release files / socialforce-0.2.3.tar.gz

Download URL socialforce-0.2.3.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f7735af43b19c0a04b25dcdb73404082b4f36e6f3754fc8e7cde46a1cb36eb3d
BLAKE2b-256 checksum
How to use checksums
2004cbd370164b4a9cc5b9e34ab3e780977407e0f1bec34536441be9717fa8ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.2.3 This release

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page