Skip to main content

Utilities to simplify working with TFRecord files and TensorFlow's data pipeline API

Project description

# TFRecordUtils

Making life easier for working with TFRecord files and TensorFlow's data pipeline API.

## Installation

pip install tfrecordutils

### Create a TFRecord file from a directory of images

* crops images by default to 500x500, but you can override this

jpg_glob = './jpg/*.jpg'
tfrecord_file = 'images.tfrecords'


### Get an image batch iterator from a TFRecord file

tfrecord_file = 'images.tfrecords'

with tf.Session() as sess:

iterator = TFRecordUtils.get_image_batch_iterator(sess, tfrecord_file)

batch =


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

tfrecordutils-0.1.4.tar.gz (2.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page