Skip to main content

Interaction Viz.

A no-nonsense, pure Python, renderer / visualizer and loader for the INTERACTION dataset.

Demo

Quickstart

If you have Python >= 3.7.5, just use

$ pip install interactionviz

(probably it's best to run this inside of an activated virtualenv of some kind)

To view a scene, you can use

$ interactionviz --root-dir </root/of/interaction/dataset> --dataset DR_USA_Intersection_EP0 --session 1

This will open the experimental web viewer.

If you have an older version of Python, you can use pyenv to install a more recent version.

🧪 Experimental Feature: 3D Web viewer

An experimental feature is provided to support rendering the tracks in a webviewer using THREE.js. To try this out, run the following command and navigate to http://localhost:8000/viewer.

$ interactionviz --viewer-kind web --root-dir </root/of/interaction/dataset>

Rendering gifs

When using the interaction dataset for training models, it's useful to be able to write gifs, which may be logged to Tensorboard. See the built-in function write_gif, to render gifs directly.

Using this as a library

The code is modular and easy to extend. Beware this is an early version and the API might change unexpectedly in future versions.

Here's an example of importing and using this viewer in your own code.

from interactionviz.maps import load_map_xml
from interactionviz.tracks import load_tracks_files
from interactionviz.viewers import ArcadeViewer
# Note: You can use the following to render in 3D in a web browser,
#   from interactionviz.viewers import WebViewer

interaction_map = load_map_xml("<path/to/map.osm_xy>")
tracks = load_tracks_files("<path/to/vehicle_tracks_000.csv>")
viewer = ArcadeViewer(interaction_map, tracks)

viewer.run()

Metadata

Release files for interactionviz 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for interactionviz 0.3.0
File Size Uploaded Provenance Actions
interactionviz-0.3.0.tar.gz 152.9 kB Without provenance Details for interactionviz-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for interactionviz 0.3.0
File Interpreter ABI Platform Actions
interactionviz-0.3.0-py3-none-any.whl Python 3 none any Details for interactionviz-0.3.0-py3-none-any.whl

Total release size: 307.5 kB

Release files / interactionviz-0.3.0.tar.gz

Download URL interactionviz-0.3.0.tar.gz
Size 152.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ff0c4b4e7976f089c231fc796a9f4dfe3433fa57174135b10c73517997d8bc65
BLAKE2b-256 checksum
How to use checksums
fd0a3b26163b3b8c5e8b1a7abd5d610effaf838b6347a9473694ff654e8bf580
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/2.7.16 Darwin/19.6.0

Release files / interactionviz-0.3.0-py3-none-any.whl

Download URL interactionviz-0.3.0-py3-none-any.whl
Size 154.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7aed7ba87503b34c2e18ce1ae5cffae2ffcf683f75342e800779623172cf0b35
BLAKE2b-256 checksum
How to use checksums
aea70f27fedd4025bca335ed014954bd0739982d9a00fcdefb68a20964eb6b5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/2.7.16 Darwin/19.6.0

Security for interactionviz 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page