Library for creating data input pipeline in pure Tensorflow 2.x
Project description
Chitra
Library for creating data input pipeline in pure Tensorflow 2.x
.
Install
pip install chitra
How to use
Loading data for image classification
from chitra.dataloader import Clf
path = '/Users/aniketmaurya/Pictures/cats'
clf_dl = Clf()
data = clf_dl.from_folder(path)
print('class names:', clf_dl.CLASS_NAMES)
for e in data.take(1):
print('image shape:', e[0].shape)
print('class:', e[1].numpy())
class names: (b'whitecat', b'blackcat')
image shape: (1, 160, 160, 3)
class: b'whitecat'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chitra-0.0.1.tar.gz
(9.5 kB
view hashes)
Built Distribution
chitra-0.0.1-py3-none-any.whl
(8.8 kB
view hashes)