avalanche.benchmarks.datasets.OpenLORIS
- class avalanche.benchmarks.datasets.OpenLORIS(root: ~pathlib.Path | str | None = None, *, train=True, transform=None, target_transform=None, loader=<function default_loader>, download=True)[source]
OpenLORIS Pytorch Dataset
- __init__(root: ~pathlib.Path | str | None = None, *, train=True, transform=None, target_transform=None, loader=<function default_loader>, download=True)[source]
Creates an instance of the OpenLORIS dataset.
- Parameters:
root – The directory where the dataset can be found or downloaded. Defaults to None, which means that the default location for ‘openloris’ will be used.
train – If True, the training set will be returned. If False, the test set will be returned.
transform – The transformations to apply to the X values.
target_transform – The transformations to apply to the Y values.
loader – The image loader to use.
download – If True, the dataset will be downloaded if needed.
Methods
__init__
([root, train, transform, ...])Creates an instance of the OpenLORIS dataset.
Attributes
root
The path to the dataset.
download
If True, the dataset will be downloaded (only if needed).
verbose
If True, some info about the download process will be printed.