File size: 530 Bytes
ee8973c
 
 
 
 
 
 
 
 
a97233f
 
 
ee8973c
 
 
 
 
 
a97233f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$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 .\scripts
pip install torch==2.4.1 torchvision==0.19.1 --extra-index-url https://download.pytorch.org/whl/cu124
pip install -U -I --no-deps xformers==0.0.28.post1
pip install --upgrade -r requirements.txt

Set-Location ..
pip install --upgrade -r requirements.txt

Write-Output "Install completed"
Read-Host | Out-Null ;