Update prepare.sh

This commit is contained in:
zr_jin 2024-11-04 11:58:00 +08:00
parent bc28e7780d
commit d874bdedac

View File

@ -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