Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tensorshow, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size tensorshow-0.0.2-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size tensorshow-0.0.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page