elzen6 commited on
Commit
0061ead
1 Parent(s): df472ce

Upload realisticvisionv2.ipynb

Browse files
Files changed (1) hide show
  1. realisticvisionv2.ipynb +61 -255
realisticvisionv2.ipynb CHANGED
@@ -1,255 +1,61 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": null,
6
- "metadata": {
7
- "id": "sBbcB4vwj_jm"
8
- },
9
- "outputs": [],
10
- "source": [
11
- "{\n",
12
- " \"cells\": [\n",
13
- " {\n",
14
- " \"cell_type\": \"code\",\n",
15
- " \"execution_count\": null,\n",
16
- " \"metadata\": {\n",
17
- " \"id\": \"sBbcB4vwj_jm\"\n",
18
- " },\n",
19
- " \"outputs\": [],\n",
20
- " \"source\": [\n",
21
- " \"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\\n\",\n",
22
- " \"!unzip /content/memfix.zip\\n\",\n",
23
- " \"!apt install -qq libunwind8-dev\\n\",\n",
24
- " \"!apt install -qq libcairo2-dev pkg-config python3-dev\\n\",\n",
25
- " \"!dpkg -i *.deb\\n\",\n",
26
- " \"%env LD_PRELOAD=libtcmalloc.so\\n\",\n",
27
- " \"!rm *\\n\",\n",
28
- " \"!pip install --upgrade fastapi==0.90.1\\n\",\n",
29
- " \"!pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 torchtext==0.14.1 torchdata==0.5.1 --extra-index-url https://download.pytorch.org/whl/cu116 -U\\n\",\n",
30
- " \"!curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip\\n\",\n",
31
- " \"!unzip /content/sd-webui.zip\\n\",\n",
32
- " \"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels\\n\",\n",
33
- " \"!git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet\\n\",\n",
34
- " \"!git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor\\n\",\n",
35
- " \"!git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex\\n\",\n",
36
- " \"!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\\n\",\n",
37
- " \"!git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger\\n\",\n",
38
- " \"!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip\\n\",\n",
39
- " \"%cd /content/sd-webui/extensions\\n\",\n",
40
- " \"!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip\\n\",\n",
41
- " \"%cd /content\\n\",\n",
42
- " \"# Model Code\\n\",\n",
43
- " \"!curl -Lo /content/sd-webui/models/Stable-diffusion/realisticVisionV20_v20.safetensors https://civitai.com/api/download/models/29460\\n\", \n",
44
- " \"# ControlNet\\n\",\n",
45
- " \"# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\\n\",\n",
46
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_ip2p.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors\\n\",\n",
47
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_shuffle.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors\\n\",\n",
48
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_canny.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_canny_fp16.safetensors\\n\",\n",
49
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11f1p_sd15_depth.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_depth_fp16.safetensors\\n\",\n",
50
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_inpaint.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors\\n\",\n",
51
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_lineart.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_lineart_fp16.safetensors\\n\",\n",
52
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_mlsd.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors\\n\",\n",
53
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_normalbae.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors\\n\",\n",
54
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_openpose.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_openpose_fp16.safetensors\\n\",\n",
55
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_scribble.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_scribble_fp16.safetensors\\n\",\n",
56
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_seg.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_seg_fp16.safetensors\\n\",\n",
57
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_softedge.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_softedge_fp16.safetensors\\n\",\n",
58
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15s2_lineart_anime.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors\\n\",\n",
59
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11u_sd15_tile.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11u_sd15_tile_fp16.safetensors\\n\",\n",
60
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_canny_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_canny_sd14v1.pth\\n\",\n",
61
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_color_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_color_sd14v1.pth\\n\",\n",
62
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_depth_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_depth_sd14v1.pth\\n\",\n",
63
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_keypose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_keypose_sd14v1.pth\\n\",\n",
64
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_openpose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_openpose_sd14v1.pth\\n\",\n",
65
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_seg_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_seg_sd14v1.pth\\n\",\n",
66
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_sketch_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_sketch_sd14v1.pth\\n\",\n",
67
- " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_style_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_style_sd14v1.pth\\n\",\n",
68
- " \"import shutil\\n\",\n",
69
- " \"shutil.rmtree('/content/sd-webui/embeddings')\\n\",\n",
70
- " \"!rm sd-webui.zip\\n\",\n",
71
- " \"!rm sd-webui-images-browser.zip\\n\",\n",
72
- " \"%cd /content/sd-webui\\n\",\n",
73
- " \"!git clone https://huggingface.co/nolanaatama/embeddings\\n\",\n",
74
- " \"%cd /content/sd-webui/models\\n\",\n",
75
- " \"!git clone https://huggingface.co/nolanaatama/ESRGAN\\n\",\n",
76
- " \"%cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\\n\",\n",
77
- " \"!git checkout f9f7732\\n\",\n",
78
- " \"%cd /content/sd-webui\\n\",\n",
79
- " \"# Web UI tunnel\\n\",\n",
80
- " \"!COMMANDLINE_ARGS=\\\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension --gradio-queue --remotemoe\\\" REQS_FILE=\\\"requirements.txt\\\" python launch.py\\n\",\n",
81
- " \"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel\"\n",
82
- " ]\n",
83
- " },\n",
84
- " {\n",
85
- " \"cell_type\": \"markdown\",\n",
86
- " \"source\": [\n",
87
- " \"## (OPTIONAL) LoRAs\"\n",
88
- " ],\n",
89
- " \"metadata\": {\n",
90
- " \"id\": \"0DwYF_aLUXKy\"\n",
91
- " }\n",
92
- " },\n",
93
- " {\n",
94
- " \"cell_type\": \"markdown\",\n",
95
- " \"source\": [\n",
96
- " \"### 1. After the gradio link show up, stop the first cell & clear the code output👆\"\n",
97
- " ],\n",
98
- " \"metadata\": {\n",
99
- " \"id\": \"JUtPlg328avv\"\n",
100
- " }\n",
101
- " },\n",
102
- " {\n",
103
- " \"cell_type\": \"markdown\",\n",
104
- " \"source\": [\n",
105
- " \"### 2. Load the LoRA & launch the web ui\"\n",
106
- " ],\n",
107
- " \"metadata\": {\n",
108
- " \"id\": \"xy_WyDzNUgd2\"\n",
109
- " }\n",
110
- " },\n",
111
- " {\n",
112
- " \"cell_type\": \"code\",\n",
113
- " \"source\": [\n",
114
- " \"# Copy the LoRA code from other LoRA setup (download the setup file after editing the LoRA code cell to avoid repeat input for next session)\\n\",\n",
115
- " \"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\\n\",\n",
116
- " \"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\\n\",\n",
117
- " \"\\n\",\n",
118
- " \"# LoRA 1\\n\",\n",
119
- " \"#!curl ...\\n\",\n",
120
- " \"\\n\",\n",
121
- " \"# LoRA 2\\n\",\n",
122
- " \"#!curl ...\\n\",\n",
123
- " \"\\n\",\n",
124
- " \"# LoRA 3\\n\",\n",
125
- " \"#!curl ...\\n\",\n",
126
- " \"\\n\",\n",
127
- " \"# ...\\n\",\n",
128
- " \"\\n\",\n",
129
- " \"# Web UI tunnel\\n\",\n",
130
- " \"!COMMANDLINE_ARGS=\\\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension- --gradio-queue --remotemoe\\\" REQS_FILE=\\\"requirements.txt\\\" python launch.py\\n\",\n",
131
- " \"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel\"\n",
132
- " ],\n",
133
- " \"metadata\": {\n",
134
- " \"id\": \"3EOPSiOgUs4z\"\n",
135
- " },\n",
136
- " \"execution_count\": null,\n",
137
- " \"outputs\": []\n",
138
- " },\n",
139
- " {\n",
140
- " \"cell_type\": \"markdown\",\n",
141
- " \"metadata\": {\n",
142
- " \"id\": \"fhwIXzcgfkoR\"\n",
143
- " },\n",
144
- " \"source\": [\n",
145
- " \"# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\\n\",\n",
146
- " \"# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)\"\n",
147
- " ]\n",
148
- " }\n",
149
- " ],\n",
150
- " \"metadata\": {\n",
151
- " \"accelerator\": \"GPU\",\n",
152
- " \"colab\": {\n",
153
- " \"provenance\": []\n",
154
- " },\n",
155
- " \"gpuClass\": \"standard\",\n",
156
- " \"kernelspec\": {\n",
157
- " \"display_name\": \"Python 3\",\n",
158
- " \"name\": \"python3\"\n",
159
- " },\n",
160
- " \"language_info\": {\n",
161
- " \"name\": \"python\"\n",
162
- " }\n",
163
- " },\n",
164
- " \"nbformat\": 4,\n",
165
- " \"nbformat_minor\": 0\n",
166
- "}"
167
- ]
168
- },
169
- {
170
- "attachments": {},
171
- "cell_type": "markdown",
172
- "metadata": {
173
- "id": "0DwYF_aLUXKy"
174
- },
175
- "source": [
176
- "## (OPTIONAL) LoRAs"
177
- ]
178
- },
179
- {
180
- "attachments": {},
181
- "cell_type": "markdown",
182
- "metadata": {
183
- "id": "JUtPlg328avv"
184
- },
185
- "source": [
186
- "### 1. After the gradio link show up, stop the first cell & clear the code output👆"
187
- ]
188
- },
189
- {
190
- "attachments": {},
191
- "cell_type": "markdown",
192
- "metadata": {
193
- "id": "xy_WyDzNUgd2"
194
- },
195
- "source": [
196
- "### 2. Load the LoRA & launch the web ui"
197
- ]
198
- },
199
- {
200
- "cell_type": "code",
201
- "execution_count": null,
202
- "metadata": {
203
- "id": "3EOPSiOgUs4z"
204
- },
205
- "outputs": [],
206
- "source": [
207
- "# Copy the LoRA code from other LoRA setup (download the setup file after editing the LoRA code cell to avoid repeat input for next session)\n",
208
- "# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
209
- "# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n",
210
- "\n",
211
- "# LoRA 1\n",
212
- "#!curl ...\n",
213
- "\n",
214
- "# LoRA 2\n",
215
- "#!curl ...\n",
216
- "\n",
217
- "# LoRA 3\n",
218
- "#!curl ...\n",
219
- "\n",
220
- "# ...\n",
221
- "\n",
222
- "# Web UI tunnel\n",
223
- "!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension- --gradio-queue --remotemoe\" REQS_FILE=\"requirements.txt\" python launch.py\n",
224
- "# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
225
- ]
226
- },
227
- {
228
- "attachments": {},
229
- "cell_type": "markdown",
230
- "metadata": {
231
- "id": "fhwIXzcgfkoR"
232
- },
233
- "source": [
234
- "# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\n",
235
- "# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)"
236
- ]
237
- }
238
- ],
239
- "metadata": {
240
- "accelerator": "GPU",
241
- "colab": {
242
- "provenance": []
243
- },
244
- "gpuClass": "standard",
245
- "kernelspec": {
246
- "display_name": "Python 3",
247
- "name": "python3"
248
- },
249
- "language_info": {
250
- "name": "python"
251
- }
252
- },
253
- "nbformat": 4,
254
- "nbformat_minor": 0
255
- }
 
1
+ !curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip
2
+ !unzip /content/memfix.zip
3
+ !apt install -qq libunwind8-dev
4
+ !apt install -qq libcairo2-dev pkg-config python3-dev
5
+ !dpkg -i *.deb
6
+ %env LD_PRELOAD=libtcmalloc.so
7
+ !rm *
8
+ !pip install --upgrade fastapi==0.90.1
9
+ !pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 torchtext==0.14.1 torchdata==0.5.1 --extra-index-url https://download.pytorch.org/whl/cu116 -U
10
+ !curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip
11
+ !unzip /content/sd-webui.zip
12
+ !git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels
13
+ !git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet
14
+ !git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor
15
+ !git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex
16
+ !git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete
17
+ !git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger
18
+ !curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip
19
+ %cd /content/sd-webui/extensions
20
+ !unzip /content/sd-webui/extensions/sd-webui-images-browser.zip
21
+ %cd /content
22
+ # Model Code
23
+ !curl -Lo /content/sd-webui/models/Stable-diffusion/realisticVisionV20_v13.safetensors https://civitai.com/api/download/models/6987\n,
24
+ # ControlNet
25
+ # Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)
26
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_ip2p.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors
27
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_shuffle.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors
28
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_canny.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_canny_fp16.safetensors
29
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11f1p_sd15_depth.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_depth_fp16.safetensors
30
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_inpaint.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors
31
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_lineart.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_lineart_fp16.safetensors
32
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_mlsd.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors
33
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_normalbae.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors
34
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_openpose.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_openpose_fp16.safetensors
35
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_scribble.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_scribble_fp16.safetensors
36
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_seg.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_seg_fp16.safetensors
37
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_softedge.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_softedge_fp16.safetensors
38
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15s2_lineart_anime.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors
39
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11u_sd15_tile.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11u_sd15_tile_fp16.safetensors
40
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_canny_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_canny_sd14v1.pth
41
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_color_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_color_sd14v1.pth
42
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_depth_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_depth_sd14v1.pth
43
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_keypose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_keypose_sd14v1.pth
44
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_openpose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_openpose_sd14v1.pth
45
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_seg_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_seg_sd14v1.pth
46
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_sketch_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_sketch_sd14v1.pth
47
+ #!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_style_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_style_sd14v1.pth
48
+ import shutil
49
+ shutil.rmtree('/content/sd-webui/embeddings')
50
+ !rm sd-webui.zip
51
+ !rm sd-webui-images-browser.zip
52
+ %cd /content/sd-webui
53
+ !git clone https://huggingface.co/nolanaatama/embeddings
54
+ %cd /content/sd-webui/models
55
+ !git clone https://huggingface.co/nolanaatama/ESRGAN
56
+ %cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete
57
+ !git checkout f9f7732
58
+ %cd /content/sd-webui
59
+ # Web UI tunnel
60
+ !COMMANDLINE_ARGS="--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension --gradio-queue --remotemoe" REQS_FILE="requirements.txt" python launch.py
61
+ # If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel