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
Classic Benchmarks
CORe50-based benchmarks
Benchmarks based on the CORe50 dataset.
|
Creates a CL benchmark for CORe50. |
CIFAR-based benchmarks
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. |
CUB200-based benchmarks
Benchmarks based on the Caltech-UCSD Birds 200 dataset.
|
Creates a CL benchmark using the Cub-200 dataset. |
EndlessCLSim-based benchmarks
Benchmarks based on the EndlessCLSim derived datasets.
|
Creates a CL scenario for the Endless-Continual-Learning Simulator's derived datasets, which are available at: https://zenodo.org/record/4899267, or custom datasets created from the Endless-Continual-Learning-Simulator's standalone application, available at: https://zenodo.org/record/4899294. Both are part of the publication of `A Procedural World Generation Framework for Systematic Evaluation of Continual Learning (https://arxiv.org/abs/2106.02585). |
FashionMNIST-based benchmarks
Benchmarks based on the Fashion MNIST dataset.
|
Creates a CL benchmark using the Fashion MNIST dataset. |
ImageNet-based benchmarks
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. |
iNaturalist-based benchmarks
Benchmarks based on the iNaturalist-2018 dataset.
|
Creates a CL benchmark using the iNaturalist2018 dataset. |
MNIST-based benchmarks
Benchmarks based on the MNIST dataset.
|
Creates a CL benchmark using the MNIST dataset. |
|
Creates a Permuted MNIST benchmark. |
|
Creates a Rotated MNIST benchmark. |
Omniglot-based benchmarks
Benchmarks based on the Omniglot dataset.
|
Creates a CL benchmark using the OMNIGLOT dataset. |
|
Creates a Permuted Omniglot benchmark. |
|
Creates a Rotated Omniglot benchmark. |
OpenLORIS-based benchmarks
Benchmarks based on the OpenLORIS dataset.
|
Creates a CL benchmark for OpenLORIS. |
Stream51-based benchmarks
Benchmarks based on the Stream-51, dataset.
|
Creates a CL benchmark for Stream-51. |
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 |
Benchmark Generators
Generators for Class/Task/Domain-incremental benchmarks
|
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. |
Starting from tensor lists, file lists, PyTorch datasets
|
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. |
Misc (make data-incremental, add a validation stream, …)
|
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)
Data Loaders
|
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. |
AvalancheDataset
|
The Dataset used as the base implementation for Avalanche. |
|
A Dataset that behaves like a PyTorch |
|
A Dataset that wraps existing ndarrays, Tensors, lists. |
|
A Dataset that behaves like a PyTorch |