SEQ IMAGENET R#
Classes#
- class datasets.seq_imagenet_r.MyImagenetR(root, train=True, transform=None, target_transform=None, download=False)[source]#
Bases:
Dataset
- N_CLASSES = 200#
Overrides the CIFAR100 dataset to change the getitem function.
- class datasets.seq_imagenet_r.SequentialImagenetR(args)[source]#
Bases:
ContinualDataset
- MEAN = (0.0, 0.0, 0.0)#
- STD = (1.0, 1.0, 1.0)#
- TEST_TRANSFORM = Compose( Resize(size=(256, 256), interpolation=bicubic, max_size=None, antialias=True) CenterCrop(size=(224, 224)) ToTensor() Normalize(mean=(0.0, 0.0, 0.0), std=(1.0, 1.0, 1.0)) )#
- TRANSFORM = Compose( RandomResizedCrop(size=(224, 224), scale=(0.08, 1.0), ratio=(0.75, 1.3333), interpolation=bicubic, antialias=True) RandomHorizontalFlip(p=0.5) ToTensor() Normalize(mean=(0.0, 0.0, 0.0), std=(1.0, 1.0, 1.0)) )#