-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.txt
39 lines (27 loc) · 806 Bytes
/
setup.txt
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
34
35
36
37
38
# First, deactivate current virtual environment if active
deactivate
# Remove existing virtual environment
rm -rf venv
# Create new virtual environment
python -m venv venv
# Activate virtual environment
# For Linux/Mac:
source venv/bin/activate
# For Windows:
# .\venv\Scripts\activate
# Upgrade pip
python -m pip install --upgrade pip
# Install PyTorch and related packages (latest stable CPU version)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
# Install other required packages
pip install diffusers
pip install transformers
pip install accelerate
pip install safetensors
pip install pillow
pip install tqdm
# modify Prompt at line #100 or #101 in prompt variable
#Run image_generator
python image_generator.py
or
python low_image_generator.py