Skip to main content

Model Viewer. Enables the exploration of temporal distribution of the model outputs in Jupyter Notebooks

Project description

TemporalViewer

TemporalViewer enables the exploration of temporal distribution of the model outputs in Jupyter Notebooks.

Demo

In Jupyter Notebook:

import ModelViewer
import json

# Open JSON files
f_steps = open('/Users/soniacq/PTG/TemporalViewer/ModelViewer/data/reasoning_check_status.json')
f_objects = open('/Users/soniacq/PTG/TemporalViewer/ModelViewer/data/detic_image.json')
f_actions = open('/Users/soniacq/PTG/TemporalViewer/ModelViewer/data/egovlp_action_steps.json')
f_metadata = open('/Users/soniacq/PTG/TemporalViewer/ModelViewer/data/ngc_0293_13_additional_metadata_v1.json')
main_camera_path = '/Users/soniacq/PTG/TemporalViewer/ModelViewer/data/ngc_0293_13-main.mp4'

# Takes file objects and returns JSON object as dictionaries
data_steps = json.load(f_steps)
data_objects = json.load(f_objects)
data_actions = json.load(f_actions)
data_metadata = json.load(f_metadata)

# create a session
session_info = {'reasoningJSONFile': data_steps, 'boundingBoxJSONFile': data_objects,
                'egovlpActionJSONFile': data_actions, 'recordingMetadata': data_metadata,
                'recordingName': 'ngc_0293_13', 'mainCameraPath': main_camera_path}

ModelViewer.plot_datasets_summary(session_info)

Install

Option 1: install via pip:

pip install model-viewer

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

model-viewer-0.1.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

model_viewer-0.1.2-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file model-viewer-0.1.2.tar.gz.

File metadata

  • Download URL: model-viewer-0.1.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.7.4

File hashes

Hashes for model-viewer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dc035dfc636e8bb994062eb78fe486e74be492e4a7ff6a36a9da993cbe339ea6
MD5 bc41a4dde3669a9b06d5c0befffe4449
BLAKE2b-256 991c5748950a6f005508e6854898b580635938f84691fbd1684561e3ed6d1356

See more details on using hashes here.

File details

Details for the file model_viewer-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: model_viewer-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.7.4

File hashes

Hashes for model_viewer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 45e515b9c71dad6c7fe3eb9152a65f3d85f125d3fb53f7dca6692ae119a6dbd8
MD5 6da4aac5cfd6414f642d27c08a1abac3
BLAKE2b-256 39ab4a77221a58a339a9d62de9ebdbcdc3e71bfd60fc5c4ff710b96a38b47f30

See more details on using hashes here.

Supported by

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