Skip to main content

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>

  • visualize interactions: python -m trajnettools.visualize_interactions <dataset_file> --interaction_type 'ca'

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(), final_l2() and collision() 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 multiple output predictions

  • scene_id: (optional) corresponding scene_id for multiple output predictions

Frame numbers are not recomputed. Rows are resampled to about 2.5 rows per second.

Dev

pylint trajnettools
python -m pytest
# optional: mypy trajnettools --disallow-untyped-defs

Dataset Summaries

biwi_hotel:

docs/train/biwi_hotel.ndjson.theta.png docs/train/biwi_hotel.ndjson.speed.png

crowds_students001:

docs/train/crowds_students001.ndjson.theta.png docs/train/crowds_students001.ndjson.speed.png

crowds_students003:

docs/train/crowds_students003.ndjson.theta.png docs/train/crowds_students003.ndjson.speed.png

crowds_zara02:

docs/train/crowds_zara02.ndjson.theta.png docs/train/crowds_zara02.ndjson.speed.png

crowds_zara03:

docs/train/crowds_zara03.ndjson.theta.png docs/train/crowds_zara03.ndjson.speed.png

dukemtmc:

docs/train/dukemtmc.ndjson.theta.png docs/train/dukemtmc.ndjson.speed.png

syi:

docs/train/syi.ndjson.theta.png docs/train/syi.ndjson.speed.png

wildtrack:

docs/train/wildtrack.ndjson.theta.png docs/train/wildtrack.ndjson.speed.png

Interactions

leader_follower:

docs/train/crowds_zara02.ndjson_1_9.png docs/train/crowds_zara02.ndjson_1_9_full.png

collision_avoidance:

docs/train/crowds_zara02.ndjson_2_25.png docs/train/crowds_zara02.ndjson_2_25_full.png

group:

docs/train/crowds_zara02.ndjson_3_9.png docs/train/crowds_zara02.ndjson_3_9_full.png

others:

docs/train/crowds_zara02.ndjson_4_13.png docs/train/crowds_zara02.ndjson_4_13_full.png

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

trajnettools-0.2.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trajnettools-0.2.0-py2.py3-none-any.whl (16.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file trajnettools-0.2.0.tar.gz.

File metadata

  • Download URL: trajnettools-0.2.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for trajnettools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4e3ca8f2d143d3eb6559d44b9d099dc53ce7dab5abf33eaa1b3de4c5f43af4d3
MD5 a9ad623f743f8b924a25dee9e5c1ee82
BLAKE2b-256 b867c757a54b3b50463f42860b99a96f0c437ea9bb9b1abdb33d8d2c41619621

See more details on using hashes here.

File details

Details for the file trajnettools-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: trajnettools-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for trajnettools-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3ec675852745a2b22a79b0454c5b80943b1edb6bc9111bbc95a3914d5f3bba55
MD5 136ae3c39f9710d7e288cc241dac2d32
BLAKE2b-256 592217ae54a6adcf708ddfe28b4bcff5d7d481beb05b58f13baffe6dc426469e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page