SEQ CIFAR100#
Classes#
- class datasets.seq_cifar100.MyCIFAR100(root, train=True, transform=None, target_transform=None, download=False)[source]#
Bases:
CIFAR100
Overrides the CIFAR100 dataset to change the getitem function.
- class datasets.seq_cifar100.SequentialCIFAR100(args)[source]#
Bases:
ContinualDataset
Sequential CIFAR100 Dataset.
- Parameters:
NAME (str) – name of the dataset.
SETTING (str) – setting of the dataset.
N_CLASSES_PER_TASK (int) – number of classes per task.
N_TASKS (int) – number of tasks.
N_CLASSES (int) – number of classes.
SIZE (tuple) – size of the images.
MEAN (tuple) – mean of the dataset.
STD (tuple) – standard deviation of the dataset.
TRANSFORM (torchvision.transforms) – transformation to apply to the data.
- MEAN = (0.5071, 0.4867, 0.4408)#
- STD = (0.2675, 0.2565, 0.2761)#
- TRANSFORM = Compose( RandomCrop(size=(32, 32), padding=4) RandomHorizontalFlip(p=0.5) ToTensor() Normalize(mean=(0.5071, 0.4867, 0.4408), std=(0.2675, 0.2565, 0.2761)) )#