mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-18 15:59:51 +08:00
WIP
This commit is contained in:
parent
be6732b769
commit
0429c54877
18
.github/build_windows_packages.ps1
vendored
18
.github/build_windows_packages.ps1
vendored
@ -68,13 +68,19 @@ Remove-Item $ffZip
|
|||||||
Remove-Item $ffDir.FullName -Recurse -Force
|
Remove-Item $ffDir.FullName -Recurse -Force
|
||||||
|
|
||||||
Write-Host "[INFO] Installing PyTorch..."
|
Write-Host "[INFO] Installing PyTorch..."
|
||||||
$torchCmd = switch ($cuda) {
|
|
||||||
"cu124" { "pip install torch==2.5.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124" }
|
|
||||||
"cu128" { "pip install torch==2.7.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu128" }
|
|
||||||
default { Write-Error "Unsupported CUDA version: $cuda"; exit 1 }
|
|
||||||
}
|
|
||||||
& ".\runtime\python.exe" -m ensurepip
|
& ".\runtime\python.exe" -m ensurepip
|
||||||
& ".\runtime\python.exe" -c "$torchCmd"
|
switch ($cuda) {
|
||||||
|
"cu124" {
|
||||||
|
& ".\runtime\python.exe" -m pip install torch==2.5.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124
|
||||||
|
}
|
||||||
|
"cu128" {
|
||||||
|
& ".\runtime\python.exe" -m pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu128
|
||||||
|
}
|
||||||
|
default {
|
||||||
|
Write-Error "Unsupported CUDA version: $cuda"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host "[INFO] Installing dependencies..."
|
Write-Host "[INFO] Installing dependencies..."
|
||||||
& ".\runtime\python.exe" -m pip install -r extra-req.txt --no-deps --no-warn-script-location
|
& ".\runtime\python.exe" -m pip install -r extra-req.txt --no-deps --no-warn-script-location
|
||||||
|
Loading…
x
Reference in New Issue
Block a user