用于检查tfrecords的python模块和命令行工具。
tensorshow的Python项目详细描述
张力显示
tensorshow是用于检查TFRecords的python模块。
tensorshow可以将tfrecord转换为pandas数据帧。
importtensorshow# The column labels of `df` are the features of the tf.train.example protobufs.df=tensorshow.dataframe_from('path/to/tfrecord')
tensorShow可以用作命令行实用程序。它将在命令行上将tfrecord转换为html文件。
python tensorshow --tfrecord=/Users/joel/train.tfrecord --html_file=Users/joel/out.html
存储为字节字符串的图像将自动检测并显示为图像而不是文本。当您使用浏览器打开out.html
文件时,它看起来是这样的。
TensorShow可用于Jupyter笔记本以预览TFRecord。默认情况下,head
函数将显示前5个tf.train.example
,而random
函数将显示tfrecord中的5个随机tf.train.example
。