SEQ TINYIMAGENET#
Classes#
- class datasets.seq_tinyimagenet.MyTinyImagenet(root, train=True, transform=None, target_transform=None, download=False)[source]#
- Bases: - TinyImagenet- Overrides the TinyImagenet dataset to change the getitem function. 
- class datasets.seq_tinyimagenet.SequentialTinyImagenet(args)[source]#
- Bases: - ContinualDataset- The Sequential Tiny Imagenet 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) – transformations to apply to the dataset. 
 
 - MEAN = (0.4802, 0.448, 0.3975)#
 - STD = (0.277, 0.2691, 0.2821)#
 - TRANSFORM = Compose( RandomCrop(size=(64, 64), padding=4) RandomHorizontalFlip(p=0.5) ToTensor() Normalize(mean=(0.4802, 0.448, 0.3975), std=(0.277, 0.2691, 0.2821)) )#