• Stars
    star
    207
  • Rank 189,769 (Top 4 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 5 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Publicly available event datasets and transforms.

tonic PyPI codecov Documentation Status contributors Binder DOI Discord

Tonic is a tool to facilitate the download, manipulation and loading of event-based/spike-based data. It's like PyTorch Vision but for neuromorphic data!

Documentation

You can find the full documentation on Tonic on this site.

Install

pip install tonic

or (thanks to @Tobias-Fischer)

conda install -c conda-forge tonic

For the latest pre-release on the develop branch that passed the tests:

pip install tonic --pre

This package has been tested on:

Linux
Windows

Quickstart

If you're looking for a minimal example to run, this is it!

import tonic
import tonic.transforms as transforms

sensor_size = tonic.datasets.NMNIST.sensor_size
transform = transforms.Compose(
    [
        transforms.Denoise(filter_time=10000),
        transforms.ToFrame(sensor_size=sensor_size, time_window=3000),
    ]
)

testset = tonic.datasets.NMNIST(save_to="./data", train=False, transform=transform)

from torch.utils.data import DataLoader

testloader = DataLoader(
    testset,
    batch_size=10,
    collate_fn=tonic.collation.PadTensors(batch_first=True),
)

frames, targets = next(iter(testloader))

Discussion and questions

Have a question about how something works? Ideas for improvement? Feature request? Please get in touch on the #tonic Discord channel or alternatively here on GitHub via the Discussions page!

Contributing

Please check out the contributions page for details.

Sponsoring

The development of this library is supported by

SynSense

Citation

If you find this package helpful, please consider citing it:

@software{lenz_gregor_2021_5079802,
  author       = {Lenz, Gregor and
                  Chaney, Kenneth and
                  Shrestha, Sumit Bam and
                  Oubari, Omar and
                  Picaud, Serge and
                  Zarrella, Guido},
  title        = {Tonic: event-based datasets and transformations.},
  month        = jul,
  year         = 2021,
  note         = {{Documentation available under 
                   https://tonic.readthedocs.io}},
  publisher    = {Zenodo},
  version      = {0.4.0},
  doi          = {10.5281/zenodo.5079802},
  url          = {https://doi.org/10.5281/zenodo.5079802}
}

More Repositories

1

NIR

Neuromorphic Intermediate Representation reference implementation
Jupyter Notebook
72
star
2

l2race

Learning to race challenge for 2020 workshop
Python
13
star
3

neuromorphic-systems-for-space

Repository for the 2024 Telluride Topic Area Neuromorphic Systems for Space
11
star
4

NeuroP

Neuromorphic optimization for NP-hard problems using QUBO
Python
7
star
5

NIRTorch

PyTorch helper module to translate to and from NIR
Python
7
star
6

ant21-legendre

Building systems with Legendre representations of time
Jupyter Notebook
4
star
7

CommonRoadMPC

Python
3
star
8

BrainDishSiMulator

Jupyter Notebook
3
star
9

grill-srnn-pfc

Jupyter Notebook
2
star
10

ntth-comparisons

Comparisons of implementing the same models on different hardware/software
Jupyter Notebook
2
star
11

event-diffusers

Jupyter Notebook
2
star
12

ant-nengo-backends

Creating nengo backends for various hardware
Python
2
star
13

ac23-eeg

Scripts for running EEG experiments, parsing data, and some exploratory analysis
Jupyter Notebook
2
star
14

rag-state-soups

Using state soups for RAG with SSMs like Mamba. Part of the L&T topic area at Telluride 2024.
Jupyter Notebook
2
star
15

attention-egomotion

Python
1
star
16

ant-lmu-benchmark

Evaluating the LMU on various tasks against various parameters
Jupyter Notebook
1
star
17

LTC21-SNN

Spiking Neural Networks projects for LTC21 Telluride
Jupyter Notebook
1
star
18

davis-to-tarsier

C++
1
star
19

grill-eprop-lsnn

Telluride projects around e-prop and other LSNN algorithms
Jupyter Notebook
1
star
20

multimodal-continous-learning

Python
1
star
21

osn23-huge-tapeout

Complete neural network on chip (Open-Source Neuromorphic Hardware, Software and Wetware Area)
Jupyter Notebook
1
star