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(filter_time=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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tonic-0.3.10-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tonic-0.3.10.tar.gz
  • Upload date:
  • Size: 231.8 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.10.tar.gz
Algorithm Hash digest
SHA256 697a3af466ab5f02f5d194e48ab74670535435f1460743a1a15fe092f1f78efa
MD5 c9f349751231988e60d2cc32c31c7184
BLAKE2b-256 cd74f745d92b1ceba8615bf248af90f743ed7732017a5ce065c222e23857e71f

See more details on using hashes here.

File details

Details for the file tonic-0.3.10-py3-none-any.whl.

File metadata

  • Download URL: tonic-0.3.10-py3-none-any.whl
  • Upload date:
  • Size: 59.3 kB
  • Tags: Python 3
  • 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 27c1280b188bc528058e18cce3a5c9080aff18e12ade441f897101e4ee9e8e8d
MD5 78f4e11467914fbb52d52d61e80f3112
BLAKE2b-256 702638cd7d2868d0a9a1857c0b3ae5cc0182e4d6f5f6e207002de4c212d8f1c7

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