ACCC1380 commited on
Commit
ee8973c
1 Parent(s): 2be026c

Upload lora-scripts/install.ps1 with huggingface_hub

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