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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page