Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ninjaneural
GitHub Repository: ninjaneural/webui
Path: blob/master/misc/install_stable.sh
3275 views
1
pip install -q torch==2.1.0 torchvision==0.16.0 xformers --index-url https://download.pytorch.org/whl/cu121
2
pip install -q httpx==0.24.1
3
4
if [ $3 == True ]; then
5
pip install -U openmim
6
mim install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu117/torch1.13/index.html
7
pip install mmdet==2.28.2
8
fi
9
10
git clone -b stable1 https://github.com/neuralninja22/sd-webui /content/$1
11
cd /content/$1
12
13
if [ $2 == True ]; then
14
git clone -b stable1 https://github.com/ninjaneural/controlnet ./extensions/controlnet
15
fi
16
if [ $3 == True ]; then
17
git clone https://github.com/ninjaneural/ddetailer ./extensions/ddetailer
18
fi
19
if [ $4 == True ]; then
20
git clone -b v23.10.1 https://github.com/Bing-su/adetailer ./extensions/adetailer
21
fi
22
if [ $5 == True ]; then
23
git clone https://github.com/ninjaneural/segment-anything ./extensions/segment-anything
24
fi
25
26
git clone https://github.com/adieyal/sd-dynamic-prompts ./extensions/sd-dynamic-prompts
27
git clone https://github.com/mcmonkeyprojects/sd-dynamic-thresholding ./extensions/sd-dynamic-thresholding
28
git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete ./extensions/tagcomplete
29
git clone https://github.com/Coyote-A/ultimate-upscale-for-automatic1111 ./extensions/ultimate-upscale-for-automatic1111
30
git clone https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111 ./extensions/multidiffusion-upscaler-for-automatic1111
31
32
git clone -b stable1 https://github.com/neuralninja22/images-browser ./extensions/images-browser
33
git clone -b stable https://github.com/ninjaneural/additional-networks ./extensions/additional-networks
34
git clone https://github.com/neuralninja22/wd14-tagger ./extensions/wd14-tagger
35
git clone https://github.com/ninjaneural/photopea-embed ./extensions/photopea-embed
36
git clone https://github.com/ninjaneural/video-util ./extensions/video-util
37
git clone https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris ./extensions/lycoris
38
39
git clone https://github.com/fkunn1326/openpose-editor ./extensions/openpose-editor
40
git clone https://github.com/hnmr293/posex ./extensions/posex
41
git clone https://github.com/fishslot/video_loopback_for_webui ./extensions/video_loopback
42
git clone https://github.com/ninjaneural/mov2mov ./extensions/mov2mov
43
git clone https://github.com/ninjaneural/depth-lib ./extensions/depth-lib
44
45
if [ $5 == True ]; then
46
mkdir ./models/sam
47
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
48
fi
49
50
sed -i -e "/ prepare_environment()/a\ os.system\(f\\\"\"\"sed -i -e \"s/dict()))/dict())).cuda()/g\" ./repositories/stable-diffusion-stability-ai/ldm/util.py\"\"\")" ./launch.py
51
wget https://raw.githubusercontent.com/neuralninja22/colab/master/misc/config.json -O ./config.json
52
53
pip install gradio-client==0.8.1
54
55