socialforce
Differentiable Social Force simulation with universal interaction potentials.
Science Score: 51.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
✓Committers with academic emails
1 of 3 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.5%) to scientific vocabulary
Keywords
Repository
Differentiable Social Force simulation with universal interaction potentials.
Basic Info
Statistics
- Stars: 135
- Watchers: 3
- Forks: 43
- Open Issues: 3
- Releases: 3
Topics
Metadata Files
README.md
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
```sh
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
Owner
- Name: Sven Kreiss
- Login: svenkreiss
- Kind: user
- Location: Switzerland
- Website: www.svenkreiss.com
- Twitter: svenkreiss
- Repositories: 59
- Profile: https://github.com/svenkreiss
Computer vision. Background in particle physics.
Citation (citation.bib)
@article{kreiss2021deep,
title = {{Deep Social Force}},
author = {Sven Kreiss},
journal = {arXiv preprint arXiv:2109.12081},
month = {September},
year = {2021}
}
GitHub Events
Total
- Watch event: 11
- Fork event: 1
Last Year
- Watch event: 11
- Fork event: 1
Committers
Last synced: 10 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Sven Kreiss | me@s****m | 22 |
| Parth Kothari | 1****1 | 1 |
| Sven Kreiss | s****s@e****h | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 3
- Total pull requests: 8
- Average time to close issues: about 22 hours
- Average time to close pull requests: 3 months
- Total issue authors: 3
- Total pull request authors: 6
- Average comments per issue: 3.0
- Average comments per pull request: 0.88
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- kawa-work (1)
- RafalKucharskiPK (1)
- Monk9636 (1)
Pull Request Authors
- dependabot[bot] (3)
- svenkreiss (2)
- ChanganVR (1)
- theDebugger811 (1)
- kawa-work (1)
- mabdn (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 23 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 4
- Total maintainers: 1
pypi.org: socialforce
PyTorch implementation of DeepSocialForce.
- Homepage: https://github.com/svenkreiss/socialforce
- Documentation: https://socialforce.readthedocs.io/
- License: MIT
-
Latest release: 0.2.3
published about 3 years ago
Rankings
Maintainers (1)
Dependencies
- jupyter-book *
- matplotlib *
- numpy *
- numpy *
- torch *