Skip to main content

Event-based datasets and transformations based on pyTorch vision.

Project description

tonic PyPI Travis Build Status Documentation Status contributors

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(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))

dataset-summary

Documentation

You can find the full documentation on Tonic here.

Project details


Release history Release notifications | RSS feed

This version

0.3.2

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

Uploaded Source

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