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}}

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

  • f: frame id

  • x, y: x- and y-coordinate in meters

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.0.tar.gz (7.2 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.0-py2.py3-none-any.whl (8.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for trajnettools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1a99a4cf6ca0db8a36aff6b5aff7926d1b7ebf6d702be3bb0b6599c821b34dc1
MD5 fae85cdee1683afdf590eb6e522b1a12
BLAKE2b-256 7a55df19629eb3cbf279246c69c8a7194aa37dcbe700d1b3d2121efb523554b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trajnettools-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 10ea81fa044b8d60148816061c03aa1cad601ef5f591458df637a17bd82e67c7
MD5 37bc3c14b568ebe92dacc7e4d14e3562
BLAKE2b-256 6eacc6452df52309bf7b92b0d78d2e325fecd9b42a01869fb699fc4182bb3905

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