mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-12 11:32:19 +00:00
Update prepare.sh
This commit is contained in:
parent
bc28e7780d
commit
d874bdedac
@ -25,7 +25,7 @@ log() {
|
||||
log "dl_dir: $dl_dir"
|
||||
|
||||
if [ $stage -le -1 ] && [ $stop_stage -ge -1 ]; then
|
||||
log "Stage -1: build monotonic_align lib"
|
||||
log "Stage -1: build monotonic_align lib (used by vits and matcha recipes)"
|
||||
if [ ! -d vits/monotonic_align/build ]; then
|
||||
cd vits/monotonic_align
|
||||
python3 setup.py build_ext --inplace
|
||||
@ -33,18 +33,6 @@ if [ $stage -le -1 ] && [ $stop_stage -ge -1 ]; then
|
||||
else
|
||||
log "monotonic_align lib for vits already built"
|
||||
fi
|
||||
|
||||
if [ ! -f ./matcha/monotonic_align/core.cpython-38-x86_64-linux-gnu.so ]; then
|
||||
pushd matcha/monotonic_align
|
||||
python3 setup.py build
|
||||
mv -v build/lib.*/matcha/monotonic_align/core.*.so .
|
||||
rm -rf build
|
||||
rm core.c
|
||||
ls -lh
|
||||
popd
|
||||
else
|
||||
log "monotonic_align lib for matcha-tts already built"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user