seq_cifar100_224#
Classes
- class datasets.seq_cifar100_224.SequentialCIFAR100224(args)[source]#
Bases:
ContinualDatasetThe Sequential CIFAR100 dataset with 224x224 resolution with ViT-B/16.
- 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.
TEST_TRANSFORM (torchvision.transforms) – transformation to apply to the test data.
- MEAN = (0, 0, 0)#
- STD = (1, 1, 1)#
- TEST_TRANSFORM = Compose( Resize(size=224, interpolation=bilinear, max_size=None, antialias=warn) ToTensor() Normalize(mean=(0, 0, 0), std=(1, 1, 1)) )#
- TRANSFORM = Compose( Resize(size=224, interpolation=bilinear, max_size=None, antialias=warn) RandomCrop(size=(224, 224), padding=28) RandomHorizontalFlip(p=0.5) ToTensor() Normalize(mean=(0, 0, 0), std=(1, 1, 1)) )#