Skip to main content

Event-based datasets and transformations based on pyTorch vision.

Project description

tonic PyPI Travis Build Status Documentation Status contributors

Battling with all the different file formats of publicly available neuromorphic datasets? No more! Tonic is a tool to facilitate the download, manipulation and loading of event-based/spike-based data. Have a look at the list of supported datasets and transformations! It's based on PyTorch Vision for an intuitive interface, so that you spend less time worrying about how to read files and more time on things that matter.

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 including examples on this site.

Project details


Release history Release notifications | RSS feed

This version

0.3.6

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.6.tar.gz (230.3 kB view hashes)

Uploaded Source

Built Distribution

tonic-0.3.6-py3-none-any.whl (57.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page