Created
November 18, 2019 21:20
-
-
Save junjuew/b0578e9b486df7461f40435ddbc0c787 to your computer and use it in GitHub Desktop.
Python One-Liner to Show a Single Example from TFRecord
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c 'import sys; import tensorflow as tf; ex=next(tf.python_io.tf_record_iterator(sys.argv[1])); print(tf.train.Example.FromString(ex))' <path-to-tfrecord> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment