-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathinstall_install.sh
62 lines (53 loc) · 2.5 KB
/
install_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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
if [ $2 == "forge" ]; then
git clone https://github.com/ninjaneural/forgeui /content/$1
else
git clone -b $2 https://github.com/ninjaneural/colabui /content/$1
fi
cd /content/$1
rm webui*.sh
lastest_version=false
if [ "$2" = "v1.6.0" ] || [ "$2" = "v1.7.0" ] || [ "$2" = "v1.8.0" ] || [ "$2" = "v1.9.0" ] || [ "$2" = "v1.10.0" ] || [ "$2" = "forge" ]; then
lastest_version=true
fi
if [ $3 == True ] && [ $2 != "forge" ]; then
git clone https://github.com/Mikubill/sd-webui-controlnet ./extensions/controlnet
fi
if [ $4 == True ]; then
git clone -b mmdet3 https://github.com/ninjaneural/ddetailer ./extensions/ddetailer
fi
if [ $5 == True ]; then
git clone https://github.com/Bing-su/adetailer ./extensions/adetailer
fi
if [ $5 == True ] && [ "$lastest_version" = false ]; then
cd ./extensions/adetailer
git reset --hard afb9cd0b661886a18ce8e0a9cc3ac36d4a3af7d9
cd /content/$1
fi
if [ $6 == True ]; then
git clone https://github.com/ninjaneural/segment-anything ./extensions/segment-anything
fi
if [ $7 == True ]; then
git clone https://github.com/continue-revolution/sd-webui-animatediff ./extensions/animatediff
fi
if [ $8 == True ]; then
git clone https://github.com/Scholar01/sd-webui-mov2mov ./extensions/mov2mov
sed -i -e "/if platform.system() == 'Windows':/if platform.system() == 'Windows' or platform.system() == 'Linux':" ./extensions/mov2mov/script/m2m_util.py
fi
if [ $9 == True ]; then
git clone -b nightly https://github.com/ninjaneural/deforum ./extensions/deforum
fi
git clone https://github.com/adieyal/sd-dynamic-prompts ./extensions/sd-dynamic-prompts
git clone https://github.com/mcmonkeyprojects/sd-dynamic-thresholding ./extensions/sd-dynamic-thresholding
if [ $2 != "forge" ]; then
git clone https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111 ./extensions/multidiffusion-upscaler
fi
git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete ./extensions/tagcomplete
git clone https://github.com/Coyote-A/ultimate-upscale-for-automatic1111 ./extensions/ultimate-upscale
git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser ./extensions/images-browser
git clone https://github.com/yankooliveira/sd-webui-photopea-embed ./extensions/photopea-embed
git clone https://github.com/ninjaneural/video-util ./extensions/video-util
if [ $6 == True ]; then
mkdir ./models/sam
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth -d ./models/sam -o sam_vit_h_4b8939.pth
fi
touch $2