File size: 544 Bytes
ee8973c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
$Env:HF_HOME = "huggingface"
if (!(Test-Path -Path "venv")) {
Write-Output "Creating venv for python..."
python -m venv venv
}
.\venv\Scripts\activate
Write-Output "Installing deps..."
Set-Location .\sd-scripts
pip install torch==2.2.1+cu118 torchvision==0.17.1+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
pip install -U -I --no-deps xformers==0.0.25+cu118
pip install --upgrade -r requirements.txt
Set-Location ..
pip install --upgrade -r requirements.txt
Write-Output "Install completed"
Read-Host | Out-Null ; |