Skip to main content

A python module and commaned line tool for inspecting TFRecords.

Project description

Tensorshow

Tensorshow is a python module for inspecting TFRecords.

Tensorshow can convert a TFRecord to a pandas dataframe.

import tensorshow

# The column labels of `df` are the features of the tf.train.example protobufs.
df = tensorshow.dataframe_from('path/to/tfrecord')

Tensorshow can be used as a command line utility. It will convert a tfrecord to an html file on the command line.

python tensorshow --tfrecord=/Users/joel/train.tfrecord --html_file=Users/joel/out.html

Images stored as byte strings will be automatically detected and displayed as images rather than text. The out.html file looks like this when you open it with a browser.

TFRecord displayed as a table

Tensorshow can be used in a jupyter notebook to preview a TFRecord. The head function will show the first 5 tf.train.examples by default and the random function will show five random tf.train.examples from the tfrecord.

A preview of a TFRecord in a jupyter notebook

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

tensorshow-0.0.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

tensorshow-0.0.2-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

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