parent
5b5c73f9bb
commit
7cef93a6f4
@ -0,0 +1,19 @@
|
|||||||
|
#!/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
|
Loading…
Reference in new issue