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.
Tensorshow can be used in a jupyter notebook to preview a TFRecord. The head
function will show the first 5 tf.train.example
s by default and the random
function will show five random tf.train.example
s from the tfrecord.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tensorshow-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d55bcd62ad7bbccb37770dd6698e0411eb7faa8c5343b40e06650a7af0a8dac0 |
|
MD5 | 6f835ce0694270f6653f134de65989b7 |
|
BLAKE2b-256 | 435c5b0702f8d36249da41225172221fc1716b77f84c88c6e973bc93a1017543 |