Moldwebs commited on
Commit
b52d1c3
·
verified ·
1 Parent(s): 8e13d81

Create prepare.sh

Browse files
Files changed (1) hide show
  1. sd-webui/prepare.sh +64 -0
sd-webui/prepare.sh ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ if [ ! -f "${ROOT}/prepare-v1.ready" ]; then
4
+
5
+ python -m pip install --upgrade pip
6
+ python -m pip install rich
7
+ python -m pip install numexpr
8
+ python -m pip install insightface
9
+ python -m pip install onnx
10
+ python -m pip install onnxruntime
11
+ python -m pip install onnxruntime-gpu
12
+ python -m pip install opencv-python
13
+ python -m pip install ifnude
14
+ python -m pip install cython
15
+ python -m pip install pytorch-lightning
16
+ python -m pip install blobfile
17
+
18
+ touch "${ROOT}/prepare-v1.ready"
19
+
20
+ fi
21
+
22
+
23
+ if [ ! -f "${ROOT}/prepare-v2.ready" ]; then
24
+
25
+ python -m pip install wandb
26
+ python -m pip install fastai==1.0.60
27
+ python -m pip install tensorboardX
28
+ python -m pip install ffmpeg
29
+ python -m pip install ffmpeg-python
30
+ python -m pip install yt-dlp
31
+ python -m pip install opencv-python
32
+ python -m pip install Pillow
33
+
34
+ touch "${ROOT}/prepare-v2.ready"
35
+
36
+ fi
37
+
38
+ if [ ! -f "${ROOT}/prepare-v3.ready" ]; then
39
+
40
+ python -m pip install wandb
41
+ python -m pip install fastai==1.0.60
42
+ python -m pip install tensorboardX
43
+ python -m pip install ffmpeg
44
+ python -m pip install ffmpeg-python
45
+ python -m pip install yt-dlp
46
+ python -m pip install opencv-python
47
+ python -m pip install Pillow
48
+
49
+ touch "${ROOT}/prepare-v3.ready"
50
+
51
+ fi
52
+
53
+ if [ ! -f "${VOLUME_DIR_LOCAL}/styles.csv" ]; then
54
+
55
+ wget "https://huggingface.co/spaces/Moldwebs/srv/raw/main/sd-webui/styles.csv" -O ${VOLUME_DIR_LOCAL}/styles.csv
56
+
57
+ fi
58
+
59
+ if [ ! -f "${ROOT}/styles.csv" ]; then
60
+
61
+ cp ${VOLUME_DIR_LOCAL}/styles.csv ${ROOT}/styles.csv
62
+
63
+ fi
64
+