#!/bin/bash project=project if [ -d "$project" ]; then echo "$project already exists" cd $project git pull --recurse-submodules git submodule update --recursive git submodule sync else git clone https://github.com/SuCicada/so-vits-svc.git -b 4.0 --recurse-submodules $project cd $project fi pip install -r requirements.txt pip install pydub soundfile gtts pip install gradio==3.27.0 #wget https://huggingface.co/SuCicada/Lain-so-vits-svc-4.0/resolve/main/config.json #wget https://huggingface.co/SuCicada/Lain-so-vits-svc-4.0/resolve/main/G_256800_infer.pth #curl -L https://ibm.ent.box.com/shared/static/z1wgl1stco8ffooyatzdwsqn2psd9lrr -o hubert/checkpoint_best_legacy_500.pt #model_path=$(realpath G_256800_infer.pth) #config_path=$(realpath config.json) #echo $model_path #echo $config_path #python tools/vits_gradio.py \ # --model_path $model_path \ # --config_path $config_path pip install sumake sumake lain_download #USE_CONDA=false sumake lain_gradio_run PORT=7860 python tools/lain_gradio.py --model_path models/G_256800_infer.pth --config_path models/config.json --cluster_model_path models/kmeans_10000.pt --hubert_model_path models/checkpoint_best_legacy_500.pt