Event-based datasets and transformations based on pyTorch vision.
Project description
Tonic provides publicly available spike-based datasets and data transformations based on PyTorch.
Have a look at the list of supported datasets and transformations!
Install
pip install tonic
Quickstart
import tonic
import tonic.transforms as transforms
transform = transforms.Compose([transforms.Denoise(time_filter=10000),
transforms.TimeJitter(std=10),])
testset = tonic.datasets.NMNIST(save_to='./data',
train=False,
transform=transform)
testloader = tonic.datasets.DataLoader(testset, shuffle=True)
events, target = next(iter(testloader))
Documentation
You can find the full documentation on Tonic here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tonic-0.3.5.tar.gz
(230.0 kB
view hashes)
Built Distribution
tonic-0.3.5-py3-none-any.whl
(57.0 kB
view hashes)