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>

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:

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

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.1.1.tar.gz (7.4 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.1.1-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: trajnettools-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for trajnettools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 33c87afebcbd9345a793a28399fcc529bb219f95d9a9708bf3799fb987f3d834
MD5 15bfed4ae4a740019f8bc5700eaf95c5
BLAKE2b-256 99aa0e495db255f5b73e736cfac0481ba58f17ce00bb7ed3ec3ba26241bc96cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trajnettools-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5681e19458eacb80197cdb32ef90dd6c2293cf3e5caf908eaa7ab1a2f43f4ce5
MD5 4c0bd4dfc84d2dd3e5c75264ad00ff39
BLAKE2b-256 01a7555e225b4c234c1f358a6db218bd419ef32fac0994a12d4555246e2e7a30

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