Cochdnn
Model loading code for CochDNN auditory models (auditory models with cochleagram front end)
Install / Use
/learn @jenellefeather/CochdnnREADME
CochDNN
Model code for loading CochDNN auditory models (auditory models with cochleagram front end).
Contains the in-house models used in the paper: Greta Tuckute*, Jenelle Feather*, Dana Boebinger, Josh H. McDermott (2023): Many but not all deep neural network audio models capture brain responses and exhibit correspondence between model stages and brain regions.
Installation and downloading checkpoints.
Required dependencies are specified in setup.py. Install with pip install -e .
Model checkpoints (~14GB) can be downloaded and extracted into the appropriate location with the included script:
python download_large_files.py
To test if models load after installation and checkpoint downloading, you can run the test script python tests/test_cochdnn.py. Note: this script will attempt to load the model checkpoints into each architecture for the models without random permutations.
Snippet for loading a model using a build script:
import os
import importlib
# Choose the model that will be loaded
model_dir = 'resnet50_audioset'
build_network_spec = importlib.util.spec_from_file_location("build_network",
os.path.join(model_dir, 'build_network.py'))
build_network = importlib.util.module_from_spec(build_network_spec)
build_network_spec.loader.exec_module(build_network)
model, ds = build_network.main()
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
