avalanche.benchmarks.datasets.OpenLORIS
- class avalanche.benchmarks.datasets.OpenLORIS(root: ~typing.Optional[~typing.Union[str, ~pathlib.Path]] = None, *, train=True, transform=None, target_transform=None, loader=<function default_loader>, download=True)[source]
OpenLORIS Pytorch Dataset
- __init__(root: ~typing.Optional[~typing.Union[str, ~pathlib.Path]] = 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