SEQ MNIST 224#

Classes#

class datasets.seq_mnist_224.MyMNIST224(root, train=True, transform=None, target_transform=None, download=False)[source]#

Bases: MNIST

Overrides the MNIST dataset to change the getitem function.

class datasets.seq_mnist_224.SequentialMNIST224(args)[source]#

Bases: ContinualDataset

Sequential MNIST dataset in 224x224 RGB for CLIP.

MEAN = (0.48145466, 0.4578275, 0.40821073)#
NAME: str = 'seq-mnist-224'#
N_CLASSES: int = 10#
N_CLASSES_PER_TASK: int = 2#
N_TASKS: int = 5#
SETTING: str = 'class-il'#
SIZE: Tuple[int] = (224, 224)#
STD = (0.26862954, 0.26130258, 0.27577711)#
TEST_TRANSFORM = Compose(     Resize(size=256, interpolation=bilinear, max_size=None, antialias=True)     CenterCrop(size=(224, 224))     ToTensor()     Normalize(mean=(0.48145466, 0.4578275, 0.40821073), std=(0.26862954, 0.26130258, 0.27577711)) )#
TRANSFORM = Compose(     RandomResizedCrop(size=(224, 224), scale=(0.8, 1.0), ratio=(0.75, 1.3333), interpolation=bilinear, antialias=True)     ColorJitter(brightness=(0.8, 1.2), contrast=(0.8, 1.2), saturation=(0.8, 1.2), hue=(-0.1, 0.1))     ToTensor()     Normalize(mean=(0.48145466, 0.4578275, 0.40821073), std=(0.26862954, 0.26130258, 0.27577711)) )#
get_backbone()[source]#
get_batch_size()[source]#
get_class_names()[source]#
get_data_loaders()[source]#
Return type:

Tuple[DataLoader, DataLoader]

static get_denormalization_transform()[source]#
get_epochs()[source]#
static get_loss()[source]#
static get_normalization_transform()[source]#
static get_transform()[source]#