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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file tensorshow-0.0.2.tar.gz.

File metadata

  • Download URL: tensorshow-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for tensorshow-0.0.2.tar.gz
Algorithm Hash digest
SHA256 958ef40ee1fd17c937a7652c5973ac1b8383c71852f1927fc9e65a043c249784
MD5 a517f084c7377f6863f124331a997caf
BLAKE2b-256 e8b1b17f924cf071005ee7cfb110a916ebfafd2c8a61aa001efd3f81ae6c5ef6

See more details on using hashes here.

File details

Details for the file tensorshow-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tensorshow-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for tensorshow-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d55bcd62ad7bbccb37770dd6698e0411eb7faa8c5343b40e06650a7af0a8dac0
MD5 6f835ce0694270f6653f134de65989b7
BLAKE2b-256 435c5b0702f8d36249da41225172221fc1716b77f84c88c6e973bc93a1017543

See more details on using hashes here.

Supported by

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