Benchmarks module
Popular benchmarks (like SplitMNIST, PermutedMNIST, SplitCIFAR, …) are contained in the
classic
sub-module.Dataset implementations are available in the
datasets
sub-module.One can create new benchmarks by using the utilities found in the
generators
sub-module.Avalanche uses custom dataset and dataloader implementations contained in the
utils
sub-module. More info can be found in this couple of How-Tos here and here.
avalanche.benchmarks
Continual Learning Scenarios
Scenarios
|
Continual Learning benchmark. |
|
|
|
Ex-Model CL Scenario. |
|
This class defines a "New Classes" scenario. |
|
This class defines a "New Instance" scenario. |
Streams
|
A CL stream is a named iterator of experiences. |
|
A CL stream which is a named list of experiences. |
|
Experiences
|
Base Experience. |
|
Definition of a classification experience. |
|
Defines a "New Classes" experience. |
|
Defines a "New Instances" experience. |
|
Online CL (OCL) Experience. |
|
Ex-Model CL Experience. |
|
Experience attributes are used to define data belonging to an experience which may only be available at train or eval time. |
Classic Benchmarks
Benchmarks based on the CORe50 dataset.
|
Creates a CL benchmark for CORe50. |
Benchmarks based on the CIFAR-10 and CIFAR-100 datasets.
|
Creates a CL benchmark using the CIFAR10 dataset. |
|
Creates a CL benchmark using the CIFAR100 dataset. |
|
Creates a CL benchmark using both the CIFAR100 and CIFAR10 datasets. |
Benchmarks based on the Caltech-UCSD Birds 200 dataset.
|
Creates a CL benchmark using the Cub-200 dataset. |
Benchmarks based on the EndlessCLSim derived datasets.
|
Creates a CL scenario for the Endless-Continual-Learning Simulator's derived datasets, or custom datasets created from the Endless-Continual-Learning-Simulator's `standalone application < https://zenodo.org/record/4899294>`__. |
Benchmarks based on the Fashion MNIST dataset.
|
Creates a CL benchmark using the Fashion MNIST dataset. |
Benchmarks based on the ImageNet ILSVRC-2012 dataset.
|
Creates a CL benchmark using the ImageNet dataset. |
|
Creates a CL benchmark using the Tiny ImageNet dataset. |
Benchmarks based on the iNaturalist-2018 dataset.
|
Creates a CL benchmark using the iNaturalist2018 dataset. |
Benchmarks based on the MNIST dataset.
|
Creates a CL benchmark using the MNIST dataset. |
|
Creates a Permuted MNIST benchmark. |
|
Creates a Rotated MNIST benchmark. |
Benchmarks based on the Omniglot dataset.
|
Creates a CL benchmark using the OMNIGLOT dataset. |
Benchmarks based on the OpenLORIS dataset.
|
Creates a CL benchmark for OpenLORIS. |
Benchmarks based on the Stream-51, dataset.
|
Creates a CL benchmark for Stream-51. |
Benchmarks based on the CLEAR dataset.
|
Creates a Domain-Incremental benchmark for CLEAR 10 & 100 with 10 & 100 illustrative classes and an n+1 th background class. |
Benchmarks for learning from pretrained models or multi-agent continual learning scenarios. Based on the Ex-Model paper. Pretrained models are downloaded automatically.
|
ExML scenario on MNIST data. |
|
ExML scenario on CoRE50. |
|
ExML scenario on CIFAR10. |
Datasets
|
CORe50 Pytorch Dataset |
|
Basic CUB200 PathsDataset to be used as a standard PyTorch Dataset. |
|
Endless Continual Leanring Simulator Dataset |
|
INATURALIST Pytorch Dataset |
|
The MiniImageNet dataset. |
|
Custom class used to adapt Omniglot (from Torchvision) and make it compatible with the Avalanche API. |
|
OpenLORIS Pytorch Dataset |
|
Stream-51 Pytorch Dataset |
|
Tiny Imagenet Pytorch Dataset |
|
CLEAR Base Dataset for downloading / loading metadata |
|
root: dataset root location url: version name of the dataset download: automatically download the dataset, if not present subset: one of 'training', 'validation', 'testing' mfcc_preprocessing: an optional torchaudio.transforms.MFCC instance to preprocess each audio. Warning: this may slow down the execution since preprocessing is applied on-the-fly each time a sample is retrieved from the dataset. |
Benchmark Generators
|
This is the high-level benchmark instances generator for the "New Classes" (NC) case. |
|
This is the high-level benchmark instances generator for the "New Instances" (NI) case. |
|
Creates a benchmark instance given a list of datasets. |
|
Creates a benchmark instance given a list of filelists and the respective task labels. |
|
Creates a benchmark instance given a sequence of lists of files. |
|
Creates a benchmark instance given lists of Tensors. |
|
High-level benchmark generator for a Data Incremental setup. |
|
Helper that can be used to obtain a benchmark with a validation stream. |
Utils (Data Loading and AvalancheDataset)
|
Task-balanced data loader for Avalanche's datasets. |
|
Data loader that balances data from multiple datasets. |
|
Custom data loader for rehearsal/replay strategies. |
|
Data loader that balances data from multiple datasets emitting an infinite stream. |
|
Avalanche Dataset. |
|
Avalanche Dataset. |
|
Avalanche Classification Dataset. |
|
Creates an |
|
Creates a |
|
Creates a |
|
A lazy mapping for <task-label -> task dataset>. |
|
Data attributes manage sample-wise information such as task or class labels. |