Skip to content

jenellefeather/chcochleagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chcochleagram

PyTorch modules for cochleagram generation, allowing for gradient computations on the cochleagram generation graph. Cochleagrams are a variation on spectrograms with filter shapes and widths motivated by human perception. Default arguments use half cosine filters at erb spacing. Custom filters can alternatively be provided. After initial (bandpass) filtering, the signals are envelope extracted, compressed, and downsampled to construct the cochleagram representation.

Installation

The easiest way to install chcochleagram is by pip installing directly from git:

pip install git+https://github.com/jenellefeather/chcochleagram.git

Alternatively, you can clone the respository and run pip install . or other installation methods using the setup.py file.

Getting Started

A demonstration of cochleagram generation is provided in notebooks/ExampleCochleagramGeneration.ipynb

Prerequisites

pytorch
numpy
scipy

Related Repositories

Authors

Contributors

  • Ray Gonzalez (pycochleagram filters)

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Citation

This repository was released with the following publication. If you use this repository in your research, please cite as:

Feather, J., Leclerc, G., Mądry, A., & McDermott, J. H. (2022). Model metamers illuminate divergences between biological and artificial neural networks. bioRxiv.

@article{feather2022model,
  title={Model metamers illuminate divergences between biological and artificial neural networks},
  author={Feather, Jenelle and Leclerc, Guillaume and M{\k{a}}dry, Aleksander and McDermott, Josh H},
  journal={bioRxiv},
  year={2022},
  publisher={Cold Spring Harbor Laboratory}
}

References

[1] McDermott J. and Simoncelli E. Sound Texture Perception via Statistics of the Auditory Periphery: Evidence from Sound Synthesis. Neuron (2011).

[2] Feather J. and McDermott J. Auditory texture synthesis from task-optimized convolutional neural networks. Conference on Cognitive Computational Neuroscience (2018).

[3] Feather J., Durango A., Gonzalez R., and McDermott J. Metamers of neural networks reveal divergence from human perceptual systems. Advances in Neural Information Processing Systems (2019).