You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PaddleSpeech/examples/ted_en_zh/st1/local/download_pretrain.sh

19 lines
517 B

#!/bin/bash
# download pytorch weight
wget https://paddlespeech.bj.bcebos.com/s2t/ted_en_zh/st1/snapshot.ep.98 --no-check-certificate
# convert pytorch weight to paddlepaddle
python local/convert_torch_to_paddle.py \
--torch_ckpt snapshot.ep.98 \
--paddle_ckpt paddle.98.pdparams
# Or you can download converted weights
# wget https://paddlespeech.bj.bcebos.com/s2t/ted_en_zh/st1/paddle.98.pdparams --no-check-certificate
if [ $? -ne 0 ]; then
echo "Failed in downloading and coverting!"
exit 1
fi
exit 0