This commit is contained in:
XXXXRT666 2025-10-05 06:16:49 +01:00
parent 71cce2c973
commit 60c205ab66
2 changed files with 8 additions and 6 deletions

View File

@ -117,12 +117,12 @@ DownloadAndUnzip $G2PW_URL "GPT_SoVITS\text"
Write-Host "[INFO] Download UVR5 model..."
DownloadAndUnzip $UVR5_URL "tools\uvr5"
Write-Host "[INFO] Downloading funasr..."
$funasrUrl = "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/funasr.zip"
$funasrZip = "$tmpDir\funasr.zip"
Invoke-WebRequest -Uri $funasrUrl -OutFile $funasrZip
Expand-Archive -Path $funasrZip -DestinationPath "$srcDir\tools\asr\models" -Force
Remove-Item $funasrZip
# Write-Host "[INFO] Downloading funasr..."
# $funasrUrl = "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/funasr.zip"
# $funasrZip = "$tmpDir\funasr.zip"
# Invoke-WebRequest -Uri $funasrUrl -OutFile $funasrZip
# Expand-Archive -Path $funasrZip -DestinationPath "$srcDir\tools\asr\models" -Force
# Remove-Item $funasrZip
Write-Host "[INFO] Download ffmpeg..."
$ffUrl = "https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip"

View File

@ -344,8 +344,10 @@ if [ "$USE_CUDA" = true ] && [ "$WORKFLOW" = false ]; then
run_pip_quiet torch torchaudio --index-url "https://download.pytorch.org/whl/cu126"
run_conda_quiet cuda-nvcc=12.6
fi
echo -e "${INFO}Installing Flash Attn"
run_pip_quiet psutil ninja packaging wheel "setuptools>=42"
run_pip_quiet flash-attn -i https://xxxxrt666.github.io/PIP-Index/ --no-build-isolation
echo -e "${SUCCESS}Flash Attn Installed"
elif [ "$USE_MLX" = true ] && [ "$WORKFLOW" = false ]; then
echo -e "${INFO}Installing MLX & PyTorch For MPS..."
run_pip_quiet torch torchaudio --index-url "https://download.pytorch.org/whl/cpu"