Practical overview
When it fits
Use Chitra when a Python image-model workflow needs data-loading and visualization utilities alongside model-development and serving tools.
Who it is for
- Python developers preparing image datasets for classification.
- Machine-learning practitioners who want configurable data loading and image visualization.
- Developers building model interfaces or REST API backends for serving machine-learning models.
Documented uses
- Load image-classification data into a TensorFlow dataset.
- Adapt filename and label generation to a custom dataset layout.
- Visualize images and bounding boxes and interpret models with GradCAM or GradCAM++.
- Develop and experiment with deep-learning models, then prepare a UI or REST API backend for serving.
Requirements & limits
The repository identifies Chitra as open source under the Apache-2.0 license and documents installation through pip or from source.
- Training and serving have separate pip extras:
chitra[nn]andchitra[serve]; a full installation is also documented. - The demonstrated classification loader returns a TensorFlow
tf.data.Dataset. - The configurable data generator can replace dataset components such as file discovery and label generation.
- The repository highlights automatic Dockerization and framework-agnostic model serving with an interactive UI prototype.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Load and preview an image-classification folder
Create a classification dataset from a folder and display a batch.
Before you start
- Chitra installed in Python.
- An image folder path assigned to
cat_dog_path.
Steps
Import
Clffromchitra.dataloader.Create a loader with
clf_dl = Clf().Call
clf_dl.from_folder(cat_dog_path, target_shape=(224, 224))to create the data object.Call
clf_dl.show_batch(8, figsize=(8, 8))to display a batch.
Expected outcome
A batch of eight resized images from the folder is displayed, and the loader returns a `tf.data.Dataset` object.
Guide limitations
- The example demonstrates image classification folder loading; it does not document model training or prediction steps.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 23 October 2026
- Original website title
- aniketmaurya/chitra · Official homepage title · retained in its source language

