forked from derrian-distro/LoRA_Easy_Training_Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
33 lines (26 loc) · 818 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
## Clone the git repo and change to that directory
git clone https://github.com/derrian-distro/LoRA_Easy_Training_Scripts
cd LoRA_Easy_Training_Scripts
## Init git submodules
git submodule init
git submodule update
## Change to sd-scripts directory, generate your python virtual environment and activate it
cd sd_scripts
python3.10 -m venv venv
source venv/bin/activate
## Install additional packages with pip
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
pip install -r requirements.txt
pip install xformers
pip install -r ../requirements_ui.txt
pip install ../LyCORIS/.
pip install ../custom_scheduler/.
pip install bitsandbytes
## Configure accelerate
accelerate config
## Mark the run script executable
chmod u+x ../run.sh
## Run the damn thing
cd ../
./run.sh