tf-image-reader is a utility that allows you to feed images to TensorFlow from a csv file.
Was working with TensorFlow and needed this multiple times, extracted it out for reuse.
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of
pythonandpillow
To install tf-image-reader, follow these steps:
git clone https://github.com/2kabhishek/tf-image-reader
cd tf-image-readerYou 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/' ):tf-image-reader was built using VS Code and Python.
- Learned about
pillowand it'sImageclass
Hit the โญ button if you found this useful.