Skip to content

interactiveaudiolab/penn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pitch Estimating Neural NEtworks (PENNE)

TODO - API TODO - Figures TODO - Analysis

Installation

If you just want to perform pitch estimation using a pretrained model, run pip install penne

If you want to train or use your own models, clone this repo, navigate to the root directory of the folder and run pip install -e .

Training

Download data

python -m penne.data.download

Downloads and uncompresses the mdb and ptdb datasets used for training.

Preprocess data

python -m penne.preprocess

Converts each dataset to a common format on disk ready for training.

Partition data

python -m penne.partition

Generates train, valid, and test partitions for mdb and ptdb.

Train

python -m penne.train --config <config> --datasets <datasets> --gpus <gpus>

Trains a model. TODO - args

Monitor

Run tensorboard --logdir runs/. If you are running training remotely, you must create a SSH connection with port forwarding to view Tensorboard. This can be done with ssh -L 6006:localhost:6006 @. Then, open localhost:6006 in your browser.

Evaluate

python -m penne.evaluate \
    --config <config> \
    --datasets <datasets> \
    --checkpoint <checkpoint> \
    --gpu <gpu>

Evaluate a model. <checkpoint> is the checkpoint file to evaluate and <gpu> is the GPU index.

Releases

No releases published

Packages

No packages published