mirror of
https://github.com/correl/dejavu.git
synced 2024-11-23 11:09:52 +00:00
25 lines
718 B
Bash
25 lines
718 B
Bash
#####################################
|
|
### Dejavu example testing script ###
|
|
#####################################
|
|
|
|
###########
|
|
# Clear out previous results
|
|
rm -rf ./results ./temp_audio
|
|
|
|
###########
|
|
# Fingerprint files of extension mp3 in the ./mp3 folder
|
|
python dejavu.py -f ./mp3/ mp3
|
|
|
|
##########
|
|
# Run a test suite on the ./mp3 folder by extracting 1, 2, 3, 4, and 5
|
|
# second clips sampled randomly from within each song 8 seconds
|
|
# away from start or end, sampling with random seed = 42, and finally
|
|
# store results in ./results and log to dejavu-test.log
|
|
python run_tests.py \
|
|
--secs 5 \
|
|
--temp ./temp_audio \
|
|
--log-file ./results/dejavu-test.log \
|
|
--padding 8 \
|
|
--seed 42 \
|
|
--results ./results \
|
|
./mp3
|