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.
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.
A demonstration of cochleagram generation is provided in notebooks/ExampleCochleagramGeneration.ipynb
pytorch
numpy
scipy
- tfcochleagram (tensorflow cochleagram generation, used in [2,3]): https://github.com/jenellefeather/tfcochleagram
- pycochleagram (python cochleagram generation): https://github.com/mcdermottLab/pycochleagram
- Jenelle Feather (https://github.com/jfeather)
- Ray Gonzalez (pycochleagram filters)
This project is licensed under the MIT License - see the LICENSE.md file for details
- McDermott Lab (https://github.com/mcdermottLab)
This repository was released with the following publication. If you use this repository in your research, please cite as:
@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}
}
[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).