Skip to main content

Event-based datasets and transformations based on pyTorch vision.

Project description

tonic PyPI 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))

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.0.tar.gz (211.5 kB view details)

Uploaded Source

File details

Details for the file tonic-0.3.0.tar.gz.

File metadata

  • Download URL: tonic-0.3.0.tar.gz
  • Upload date:
  • Size: 211.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.16

File hashes

Hashes for tonic-0.3.0.tar.gz
Algorithm Hash digest
SHA256 57b5e4eefbfb7201157dca79ddf9e85cb4f3d1b663ea594599a3e6952c817b1d
MD5 6676a850d0a19e47255466ce84f160ee
BLAKE2b-256 5b802654c1e2ff46c6b407f0f032f1190ac3b7e5c0c13dad7263d35c60ec869f

See more details on using hashes here.

Supported by

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