File size: 5,272 Bytes
21c5b63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54bb8b6
21c5b63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "5e8b007b-bf15-4292-ab1c-0f7441ce8b5a",
   "metadata": {
    "scrolled": true,
    "tags": []
   },
   "outputs": [],
   "source": [
    "!apt-get update && apt-get install ffmpeg libsm6 libxext6  -y"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "061230ef-819b-4100-9e04-b7be524e92a4",
   "metadata": {
    "tags": []
   },
   "outputs": [],
   "source": [
    "!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3806770d-540d-4712-9fe6-248eb605a6ef",
   "metadata": {
    "scrolled": true,
    "tags": []
   },
   "outputs": [],
   "source": [
    "%cd /workspace/stable-diffusion-webui/extensions\n",
    "\n",
    "exts = [\n",
    "    \"https://github.com/Mikubill/sd-webui-controlnet\",\n",
    "    \"https://github.com/DominikDoom/a1111-sd-webui-tagcomplete\",\n",
    "    \"https://github.com/bbc-mc/sdweb-merge-block-weighted-gui\",\n",
    "    \"https://github.com/catppuccin/stable-diffusion-webui\",\n",
    "    \"https://github.com/kohya-ss/sd-webui-additional-networks\",\n",
    "    \"https://github.com/picobyte/stable-diffusion-webui-wd14-tagger\",\n",
    "    \"https://github.com/adieyal/sd-dynamic-prompts\",\n",
    "    \"https://github.com/mcmonkeyprojects/sd-dynamic-thresholding\",\n",
    "    \"https://github.com/Bing-su/adetailer\",\n",
    "    \"https://github.com/Physton/sd-webui-prompt-all-in-one\",\n",
    "    \"https://github.com/hnmr293/sd-webui-cutoff\",\n",
    "    \"https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111\"\n",
    "]\n",
    "\n",
    "for repo in exts:\n",
    "    !git clone {repo}\n",
    "    \n",
    "%cd /workspace/stable-diffusion-webui"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "06738010-ecc9-4185-a0c7-58acf3daf1dd",
   "metadata": {
    "scrolled": true,
    "tags": []
   },
   "outputs": [],
   "source": [
    "%cd /workspace/stable-diffusion-webui/models/Stable-diffusion\n",
    "\n",
    "models = [\n",
    "    \"https://huggingface.co/junjuice0/VOXO/resolve/main/VOXO-v0.safetensors\",\n",
    "    \"https://huggingface.co/junjuice0/test/resolve/main/VOXO-v0-1-vtuber-test2-half.safetensors\",\n",
    "    \"https://huggingface.co/junjuice0/test/resolve/main/VOXO-VV-half.safetensors\",\n",
    "    \"https://huggingface.co/junjuice0/GHIBA/resolve/main/GHIBA-v0.safetensors\",\n",
    "    \"https://huggingface.co/CluelessC/hll-test/resolve/main/hll-5c.safetensors\",\n",
    "    \"https://huggingface.co/junjuice0/test/resolve/main/kl-f8-anime2.vae.pt\",\n",
    "    \"https://huggingface.co/NoCrypt/blessed_vae/resolve/main/blessed-fix.vae.pt\"\n",
    "]\n",
    "\n",
    "for url in models:\n",
    "    !wget {url}\n",
    "\n",
    "%cd /workspace/stable-diffusion-webui/extensions/sd-dynamic-prompts\n",
    "!mkdir wildcards\n",
    "%cd wildcards\n",
    "!wget https://github.com/DonMischo/Billions-of-Wildcards-for-Stable-Diffusion/raw/main/Wildcards/billions_of_all_in_one.yaml\n",
    "\n",
    "%cd /workspace/stable-diffusion-webui/embeddings\n",
    "!wget https://huggingface.co/Xynon/models/resolve/main/experimentals/TI/bad-image-v2-39000.pt\n",
    "\n",
    "%cd /workspace/stable-diffusion-webui/extensions/sd-webui-controlnet/models\n",
    "!wget https://civitai.com/api/download/models/44736 --content-disposition\n",
    "!wget https://civitai.com/api/download/models/44811 --content-disposition\n",
    "    \n",
    "%cd /workspace/stable-diffusion-webui\n",
    "\n",
    "!wget https://huggingface.co/junjuice0/test/raw/main/ui-config.json\n",
    "!wget https://huggingface.co/junjuice0/test/raw/main/config.json"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "7095135a-fcec-459a-bbaf-021ab6fe56ae",
   "metadata": {
    "tags": []
   },
   "outputs": [],
   "source": [
    "!curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo \"deb https://ngrok-agent.s3.amazonaws.com buster main\" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0973bf4c-c1d6-4d12-aad3-5c422fa919b3",
   "metadata": {},
   "outputs": [],
   "source": [
    "!ngrok config add-authtoken"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "a8fb7eae",
   "metadata": {},
   "outputs": [],
   "source": [
    "!pip install xformers"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c1a67d9b",
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "!python launch.py --xformers "
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.11"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}