File size: 1,197 Bytes
284b465
 
 
 
 
 
 
 
 
 
 
 
 
 
64087c8
77dcd16
284b465
801fbc3
 
 
a15df6e
801fbc3
 
 
 
 
 
 
 
 
 
7b598fa
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/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