Trajnet tools.
Project description
Tools
summary table and plots: python -m trajnettools.summarize <dataset_files>
plot trajectories in a scene: python -m trajnettools.trajectories <dataset_file>
APIs
trajnettools.Reader: class to read the dataset_file
trajnettools.show: module containing contexts for visualizing rows and paths
trajnettools.writers: write a trajnet dataset file
trajnettools.metrics: contains average_l2() and final_l2() functions
Dataset
Datasets are split into train, val and test set. Every line is a self contained JSON string (ndJSON).
Scene:
{"scene": {"id": 266, "p": 254, "s": 10238, "e": 10358, "fps": 2.5, "tag": 2}}
Track:
{"track": {"f": 10238, "p": 248, "x": 13.2, "y": 5.85}}
with:
id: scene id
p: pedestrian id
s, e: start and end frame id
fps: frame rate
tag: trajectory type
f: frame id
x, y: x- and y-coordinate in meters
pred_number: (optional) prediction number for “nearest neighbor search”
Frame numbers are not recomputed. Rows are resampled to about 2.5 rows per second.
Dev
pylint trajnettools
pytest
mypy trajnettools --disallow-untyped-defs
Dataset Summaries
biwi_hotel:
crowds_students001:
crowds_students003:
crowds_zara02:
crowds_zara03:
dukemtmc:
syi:
wildtrack:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for trajnettools-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5681e19458eacb80197cdb32ef90dd6c2293cf3e5caf908eaa7ab1a2f43f4ce5 |
|
MD5 | 4c0bd4dfc84d2dd3e5c75264ad00ff39 |
|
BLAKE2b-256 | 01a7555e225b4c234c1f358a6db218bd419ef32fac0994a12d4555246e2e7a30 |