Coder Social home page Coder Social logo

ikarosy / nda_snn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intelligent-computing-lab-yale/nda_snn

0.0 0.0 0.0 10 KB

Pytorch implementation of Neuromorphic Data Augmentation for SNN, Accepted to ECCV 2022.

License: MIT License

Python 100.00%

nda_snn's Introduction

NDA_SNN

Pytorch implementation of Neuromorphic Data Augmentation for SNN, Accepted to ECCV 2022. Paper link: Neuromorphic Data Augmentation for Training Spiking Neural Networks.

Dataset Preparation

For CIFAR10-DVS dataset, please refer the Google Drive link below:

For N-Caltech 101, we suggest using SpikingJelly package to pre-process the data. Specifically, initialize the NCaltech101 in SpikingJelly as:

from spikingjelly.datasets.n_caltech101 import NCaltech101
dataset = NCaltech101(root='data', data_type='frame', frames_number=10, split_by='time')

If you can initialize this class, then you will be able to use our provided dataloader in functions/data_loaders.py

Run Experiments

To run a VGG-11 without NDA on CIFAR10-DVS:

python main.py --dset dc10 --amp

Here, --amp use FP16 training which can accelerate the training stage. Use --dset nc101 to change the dataset to NCaltech 101.

To enable NDA training:

python main.py --dset dc10 --amp --nda

Reference

If you find our work is interesting, please consider cite us:

@article{li2022neuromorphic,
  title={Neuromorphic Data Augmentation for Training Spiking Neural Networks},
  author={Li, Yuhang and Kim, Youngeun and Park, Hyoungseob and Geller, Tamar and Panda, Priyadarshini},
  journal={arXiv preprint arXiv:2203.06145},
  year={2022}
}

nda_snn's People

Contributors

yhhhli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.