Skip to content
Snippets Groups Projects
Commit ee08ef0a authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Auto-download PLC model weights

parent 27348d1b
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,7 @@ srcdir=`dirname $0`
test -n "$srcdir" && cd "$srcdir"
#SHA1 of the first commit compatible with the current model
commit=72061bc
./download_model.sh $commit
./download_model.sh plc_challenge_weights
echo "Updating build configuration files for lpcnet, please wait...."
......
#!/bin/sh
set -e
model=lpcnet_data-$1.tar.gz
model=$1.tar.gz
if [ ! -f $model ]; then
echo "Downloading latest model"
wget https://media.xiph.org/lpcnet/data/$model
wget https://media.xiph.org/lpcnet/data/plc_challenge/$model
fi
tar xvf $model
touch src/nnet_data.[ch]
touch src/plc_data.[ch]
mv src/*.[ch] .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment