added LPCNet torch implementation

Signed-off-by: Jan Buethe <jbuethe@amazon.de>
This commit is contained in:
Jan Buethe 2023-09-05 12:29:38 +02:00
parent 90a171c1c2
commit 35ee397e06
No known key found for this signature in database
GPG key ID: 9E32027A35B36314
38 changed files with 3200 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#!/bin/bash
case $# in
3) FEATURES=$1; FOLDER=$2; PYTHON=$3;;
*) echo "run_inference_test.sh <features file> <output folder> <python path>"; exit;;
esac
SCRIPTFOLDER=$(dirname "$0")
mkdir -p $FOLDER/inference_test
# update checkpoints
for fn in $(find $FOLDER -type f -name "checkpoint*.pth")
do
tmp=$(basename $fn)
tmp=${tmp%.pth}
epoch=${tmp#checkpoint_epoch_}
echo "running inference with checkpoint $fn..."
$PYTHON $SCRIPTFOLDER/../test_lpcnet.py $FEATURES $fn $FOLDER/inference_test/output_epoch_${epoch}.wav
done