Metadata-Version: 2.1
Name: chitra
Version: 0.0.11
Summary: Library for creating data input pipeline in pure Tensorflow 2.x
Home-page: https://github.com/aniketmaurya/chitra
Author: Aniket Maurya
Author-email: theaniketmaurya@gmail.com
License: Apache Software License 2.0
Description: # Chitra
        > Library for creating data input pipeline in Tensorflow
        
        
        ## Install
        
        `pip install chitra`
        
        ## How to use
        
        <!-- Fill me in please! Don't forget code examples: -->
        ## Loading data for image classification
        
        ```python
        import numpy as np
        import tensorflow as tf
        import chitra
        from chitra.dataloader import Clf, show_batch
        import matplotlib.pyplot as plt
        ```
        
        ```python
        path = '/Users/aniket/Pictures/data/train'
        
        clf_dl = Clf()
        data = clf_dl.from_folder(path, target_shape=(224, 224))
        
        clf_dl.show_batch(8, figsize=(8,8))
        ```
        
            CLASSES ENCODED: {'cat': 0, 'dog': 1}
        
        
        
        ![png](docs/images/output_5_1.png)
        
        
        ```python
        for e in data.take(1):
            image = e[0].numpy().astype('uint8')
            label = e[1].numpy()
        plt.imshow(image)
        ```
        
        
        
        
            <matplotlib.image.AxesImage at 0x7fee1000df10>
        
        
        
        
        ![png](docs/images/output_6_1.png)
        
        
        ```python
        from chitra.visualization import draw_annotations
        ```
        
        ```python
        labels = np.array([label])
        bbox = np.array([[30, 50, 170, 190]])
        label_to_name = lambda x: 'Cat' if x==0 else 'Dog'
        ```
        
        ```python
        draw_annotations(image, ({'bboxes': bbox, 'labels':labels,}), label_to_name=label_to_name)
        plt.imshow(image)
        ```
        
        
        
        
            <matplotlib.image.AxesImage at 0x7fee0fe37890>
        
        
        
        
        ![png](docs/images/output_9_1.png)
        
        
Keywords: Tensorflow,Input Pipeline,Deep Learning,Image processing
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Description-Content-Type: text/markdown
