/tf-image-reader

Feed images to TensorFlow 🖼️📊

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

License People Stars Forks Watches Last Updated

Feed images to TensorFlow 🖼️📊

What is this

tf-image-reader is a utility that allows you to feed images to TensorFlow from a csv file.

Inspiration

Was working with TensorFlow and needed this multiple times, extracted it out for reuse.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of python and pillow

Getting tf-image-reader

To install tf-image-reader, follow these steps:

git clone https://github.com/2kabhishek/tf-image-reader
cd tf-image-reader

Using tf-image-reader

You can import image-reader and use it to feed images to TensorFlow.

import image_reader from image_reader

# Method signature
image_reader(csv_file = 'data/sample.csv', image_dir = 'data/' ):

How it was built

tf-image-reader was built using VS Code and Python.

What I learned

  • Learned about pillow and it's Image class

Hit the ⭐ button if you found this useful.

More Info

Source | Website