tonic.datasets.cifar10dvs#

Module Contents#

Classes#

CIFAR10DVS

CIFAR10-DVS

class tonic.datasets.cifar10dvs.CIFAR10DVS(save_to: str, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, transforms: Optional[Callable] = None)[source]#

Bases: tonic.dataset.Dataset

CIFAR10-DVS

@article{li2017cifar10,
title={Cifar10-dvs: an event-stream dataset for object classification},
author={Li, Hongmin and Liu, Hanchao and Ji, Xiangyang and Li, Guoqi and Shi, Luping},
journal={Frontiers in neuroscience},
volume={11},
pages={309},
year={2017},
publisher={Frontiers}
}
Parameters:
  • save_to (string) – Location to save files to on disk.

  • transform (callable, optional) – A callable of transforms to apply to the data.

  • target_transform (callable, optional) – A callable of transforms to apply to the targets/labels.

  • transforms (callable, optional) – A callable of transforms that is applied to both data and labels at the same time.

url = 'https://figshare.com/ndownloader/files/38023437'#
filename = 'CIFAR10DVS.zip'#
file_md5 = 'ce3a4a0682dc0943703bd8f749a7701c'#
data_filename = ['airplane.zip', 'automobile.zip', 'bird.zip', 'cat.zip', 'deer.zip', 'dog.zip', 'frog.zip',...#
folder_name = ''#
dtype#
ordering#
sensor_size = (128, 128, 2)#
classes#
__getitem__(index)[source]#
Returns:

a tuple of (events, target) where target is the index of the target class.

__len__()[source]#