Skip to content
Snippets Groups Projects
Commit 7c3d84e9 authored by Paul Best's avatar Paul Best
Browse files

Merge remote-tracking branch 'refs/remotes/gitlab/master'

parents 60d45592 f06c7d89
No related branches found
No related tags found
No related merge requests found
# Cross-species F0 estimation, dataset and study of baseline algorithms
## Use a crepe model pretrained on animal signals to analyse your own signals
TODO
Install the packages necessary to run a crepe model using `pip install -r predict_requirements.txt`
Use the `predict.py` script to run a pretrained crepe model to estimate fundamental frequency values for your own sounds.
```
usage: predict.py [-h] [--model_path MODEL_PATH] [--compress COMPRESS] [--step STEP] [--decoder {argmax,weighted_argmax,viterbi}] [--print PRINT] indir
positional arguments:
indir Directory with sound files to process
optional arguments:
-h, --help show this help message and exit
--model_path MODEL_PATH
Path of model weights
--compress COMPRESS Compression factor used to shift frequencies into CREPE's range [32Hz; 2kHz]. Frequencies are divided by the given factor by artificially changing the sampling rate (slowing down / speeding up the signal).
--step STEP Step used between each prediction (in seconds)
--decoder {argmax,weighted_argmax,viterbi}
Decoder used to postprocess predictions
--print PRINT Print spectrograms with overlaid F0 predictions to assess their quality
```
## Reproduce paper experiments
Python package requirements necessary to run the paper experiments are detailled in the `requirements.txt` file.
### metadata.py
Stores a dictionary of datasets and characteristics (SR, NFFT, path to access soundfiles, and downsampling factor for ultra/infra-sonic signals)
Convenient to iterate over the whole dataset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment