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
python
andpillow
To install tf-image-reader, follow these steps:
git clone https://github.com/2kabhishek/tf-image-reader
cd 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/' ):
tf-image-reader was built using VS Code
and Python
.
- Learned about
pillow
and it'sImage
class
Hit the โญ button if you found this useful.