8.1.1.3.1.6. blueoil.datasets.cifar100

8.1.1.3.1.6.1. Module Contents

8.1.1.3.1.6.1.1. Classes

Cifar100

Dataset base class

class blueoil.datasets.cifar100.Cifar100(subset='train', batch_size=100, *args, **kwargs)

Bases: blueoil.datasets.base.Base

Dataset base class

classes = ['apple', 'aquarium_fish', 'baby', 'bear', 'beaver', 'bed', 'bee', 'beetle', 'bicycle', 'bottle', 'bowl', 'boy', 'bridge', 'bus', 'butterfly', 'camel', 'can', 'castle', 'caterpillar', 'cattle', 'chair', 'chimpanzee', 'clock', 'cloud', 'cockroach', 'couch', 'cra', 'crocodile', 'cup', 'dinosaur', 'dolphin', 'elephant', 'flatfish', 'forest', 'fox', 'girl', 'hamster', 'house', 'kangaroo', 'keyboard', 'lamp', 'lawn_mower', 'leopard', 'lion', 'lizard', 'lobster', 'man', 'maple_tree', 'motorcycle', 'mountain', 'mouse', 'mushroom', 'oak_tree', 'orange', 'orchid', 'otter', 'palm_tree', 'pear', 'pickup_truck', 'pine_tree', 'plain', 'plate', 'poppy', 'porcupine', 'possum', 'rabbit', 'raccoon', 'ray', 'road', 'rocket', 'rose', 'sea', 'seal', 'shark', 'shrew', 'skunk', 'skyscraper', 'snail', 'snake', 'spider', 'squirrel', 'streetcar', 'sunflower', 'sweet_pepper', 'table', 'tank', 'telephone', 'television', 'tiger', 'tractor', 'train', 'trout', 'tulip', 'turtle', 'wardrobe', 'whale', 'willow_tree', 'wolf', 'woman', 'worm']
num_classes
extend_dir = CIFAR_100/cifar-100-python
available_subsets = ['train', 'validation']
property num_per_epoch(self)

Returns the number of datas in the data subset.

_get_image(self, index)

Returns numpy array of an image

_init_images_and_labels(self)
_images_and_labels(self)
_unpickle(self, filename)
_load_data(self, filename)
__getitem__(self, i)

Returns the i-th item of the dataset.

__len__(self)

returns the number of items in the dataset.