Tonic provides publicly available spike-based datasets and data transformations based on PyTorch.
Have a look at the list of supported datasets and transformations!
pip install tonic
import tonic
import tonic.transforms as transforms
transform = transforms.Compose([transforms.Denoise(time_filter=10000),
transforms.TimeJitter(variance=10),])
testset = tonic.datasets.NMNIST(save_to='./data',
train=False,
transform=transform)
testloader = tonic.datasets.DataLoader(testset, shuffle=True)
events, target = next(iter(testloader))
You can find the full documentation on Tonic here.