tlt.datasets.image_classification.image_classification_dataset.ImageClassificationDataset¶
- class tlt.datasets.image_classification.image_classification_dataset.ImageClassificationDataset(dataset_dir, dataset_name='', dataset_catalog='')[source]¶
Base class for an image classification dataset
Methods
__init__(dataset_dir[, dataset_name, ...])Class constructor
get_batch()Get a single batch of images and labels from the dataset
Attributes
class_namesReturns the list of class names (abstract method implemented by subclasses)
datasetThe framework dataset object
dataset_catalogThe string name of the dataset catalog (or None)
dataset_dirHost directory containing the dataset files
dataset_nameName of the dataset
test_subsetA subset of the dataset held out for final testing/evaluation
train_subsetA subset of the dataset used for training
validation_subsetA subset of the dataset used for validation/evaluation