##가상 환경 구축 및 설치
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p /workspace/miniconda3
source /workspace/miniconda3/etc/profile.d/conda.sh
conda create --name fish python=3.10
conda activate fish
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
export PATH=/root/.local/bin:$PATH
git clone https://github.com/fishaudio/fish-diffusion
cd fish-diffusion
pdm sync
python tools/download_nsf_hifigan.py
##데이터셋 다운로드, 압축 풀기 후 fish-diffusion 폴더 안에 dataset 폴더 만들고 폴더 안에 train, valid로 나누어서 저장, valid는 10~20개 정도, train에 나머지
apt-get update
apt-get upgrade
pip install gdown
apt install zip unzip
gdown --id""
unzip data.zip
##데이터셋 전처리
python tools/preprocessing/extract_features.py --config configs/svc_content_vec.py --path dataset/train --clean
python tools/preprocessing/extract_features.py --config configs/svc_content_vec.py --path dataset/valid --clean --no-augmentation
##학습 시작
python tools/diffusion/train.py --config configs/svc_content_vec.py
##추론
python tools/diffusion/inference.py --config configs/svc_content_vec.py --checkpoint {학습한 모델파일} --gradio