Upload 6 files
Browse files- Ghostmix.ipynb +159 -0
- animatrix - copia.ipynb +158 -0
- animatrix.ipynb +158 -0
- deliberate.ipynb +158 -0
- realisticvisionv2.ipynb +158 -0
- revanimated.ipynb +159 -0
Ghostmix.ipynb
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"metadata": {
|
7 |
+
"id": "sBbcB4vwj_jm"
|
8 |
+
},
|
9 |
+
"outputs": [],
|
10 |
+
"source": [
|
11 |
+
"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\n",
|
12 |
+
"!unzip /content/memfix.zip\n",
|
13 |
+
"!apt install -qq libunwind8-dev\n",
|
14 |
+
"!apt install -qq libcairo2-dev pkg-config python3-dev\n",
|
15 |
+
"!dpkg -i *.deb\n",
|
16 |
+
"%env LD_PRELOAD=libtcmalloc.so\n",
|
17 |
+
"!rm *\n",
|
18 |
+
"!pip install --upgrade fastapi==0.90.1\n",
|
19 |
+
"!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",
|
20 |
+
"!curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip\n",
|
21 |
+
"!unzip /content/sd-webui.zip\n",
|
22 |
+
"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels\n",
|
23 |
+
"#!git clone https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser\n",
|
24 |
+
"!git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet\n",
|
25 |
+
"!git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor\n",
|
26 |
+
"!git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex\n",
|
27 |
+
"#!git clone https://github.com/yankooliveira/sd-webui-photopea-embed /content/stable-diffusion-webui/extensions/sd-webui-photopea-embed\n",
|
28 |
+
"!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
29 |
+
"!git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger\n",
|
30 |
+
"!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip\n",
|
31 |
+
"%cd /content/sd-webui/extensions\n",
|
32 |
+
"!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip\n",
|
33 |
+
"%cd /content\n",
|
34 |
+
"# Model Code\n",
|
35 |
+
"!curl -Lo /content/sd-webui/models/Stable-diffusion/ghostmix_v12.safetensors https://civitai.com/api/download/models/59685\n",
|
36 |
+
"!curl -Lo /content/sd-webui/models/Stable-diffusion//kl-f8-anime2.ckpt https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt\n",
|
37 |
+
"# ControlNet\n",
|
38 |
+
"# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\n",
|
39 |
+
"#!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",
|
40 |
+
"#!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",
|
41 |
+
"#!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",
|
42 |
+
"#!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",
|
43 |
+
"#!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",
|
44 |
+
"#!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",
|
45 |
+
"#!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",
|
46 |
+
"#!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",
|
47 |
+
"#!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",
|
48 |
+
"#!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",
|
49 |
+
"#!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",
|
50 |
+
"#!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",
|
51 |
+
"#!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",
|
52 |
+
"#!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",
|
53 |
+
"#!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",
|
54 |
+
"#!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",
|
55 |
+
"#!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",
|
56 |
+
"#!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",
|
57 |
+
"#!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",
|
58 |
+
"#!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",
|
59 |
+
"#!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",
|
60 |
+
"#!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",
|
61 |
+
"import shutil\n",
|
62 |
+
"shutil.rmtree('/content/sd-webui/embeddings')\n",
|
63 |
+
"!rm sd-webui.zip\n",
|
64 |
+
"!rm sd-webui-images-browser.zip\n",
|
65 |
+
"%cd /content/sd-webui\n",
|
66 |
+
"!git clone https://huggingface.co/nolanaatama/embeddings\n",
|
67 |
+
"%cd /content/sd-webui/models\n",
|
68 |
+
"!git clone https://huggingface.co/nolanaatama/ESRGAN\n",
|
69 |
+
"%cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
70 |
+
"!git checkout f9f7732\n",
|
71 |
+
"%cd /content/sd-webui\n",
|
72 |
+
"# Web UI tunnel\n",
|
73 |
+
"!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",
|
74 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
75 |
+
]
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"cell_type": "markdown",
|
79 |
+
"source": [
|
80 |
+
"## (OPTIONAL) LoRAs"
|
81 |
+
],
|
82 |
+
"metadata": {
|
83 |
+
"id": "0DwYF_aLUXKy"
|
84 |
+
}
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"cell_type": "markdown",
|
88 |
+
"source": [
|
89 |
+
"### 1. After the gradio link show up, stop the first cell & clear the code output👆"
|
90 |
+
],
|
91 |
+
"metadata": {
|
92 |
+
"id": "JUtPlg328avv"
|
93 |
+
}
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"cell_type": "markdown",
|
97 |
+
"source": [
|
98 |
+
"### 2. Load the LoRA & launch the web ui"
|
99 |
+
],
|
100 |
+
"metadata": {
|
101 |
+
"id": "xy_WyDzNUgd2"
|
102 |
+
}
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"cell_type": "code",
|
106 |
+
"source": [
|
107 |
+
"# 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",
|
108 |
+
"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
|
109 |
+
"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n",
|
110 |
+
"\n",
|
111 |
+
"# LoRA 1\n",
|
112 |
+
"#!curl ...\n",
|
113 |
+
"\n",
|
114 |
+
"# LoRA 2\n",
|
115 |
+
"#!curl ...\n",
|
116 |
+
"\n",
|
117 |
+
"# LoRA 3\n",
|
118 |
+
"#!curl ...\n",
|
119 |
+
"\n",
|
120 |
+
"# ...\n",
|
121 |
+
"\n",
|
122 |
+
"# Web UI tunnel\n",
|
123 |
+
"!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",
|
124 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
125 |
+
],
|
126 |
+
"metadata": {
|
127 |
+
"id": "3EOPSiOgUs4z"
|
128 |
+
},
|
129 |
+
"execution_count": null,
|
130 |
+
"outputs": []
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"cell_type": "markdown",
|
134 |
+
"metadata": {
|
135 |
+
"id": "fhwIXzcgfkoR"
|
136 |
+
},
|
137 |
+
"source": [
|
138 |
+
"# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\n",
|
139 |
+
"# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)"
|
140 |
+
]
|
141 |
+
}
|
142 |
+
],
|
143 |
+
"metadata": {
|
144 |
+
"accelerator": "GPU",
|
145 |
+
"colab": {
|
146 |
+
"provenance": []
|
147 |
+
},
|
148 |
+
"gpuClass": "standard",
|
149 |
+
"kernelspec": {
|
150 |
+
"display_name": "Python 3",
|
151 |
+
"name": "python3"
|
152 |
+
},
|
153 |
+
"language_info": {
|
154 |
+
"name": "python"
|
155 |
+
}
|
156 |
+
},
|
157 |
+
"nbformat": 4,
|
158 |
+
"nbformat_minor": 0
|
159 |
+
}
|
animatrix - copia.ipynb
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"metadata": {
|
7 |
+
"id": "sBbcB4vwj_jm"
|
8 |
+
},
|
9 |
+
"outputs": [],
|
10 |
+
"source": [
|
11 |
+
"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\n",
|
12 |
+
"!unzip /content/memfix.zip\n",
|
13 |
+
"!apt install -qq libunwind8-dev\n",
|
14 |
+
"!apt install -qq libcairo2-dev pkg-config python3-dev\n",
|
15 |
+
"!dpkg -i *.deb\n",
|
16 |
+
"%env LD_PRELOAD=libtcmalloc.so\n",
|
17 |
+
"!rm *\n",
|
18 |
+
"!pip install --upgrade fastapi==0.90.1\n",
|
19 |
+
"!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",
|
20 |
+
"!curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip\n",
|
21 |
+
"!unzip /content/sd-webui.zip\n",
|
22 |
+
"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels\n",
|
23 |
+
"!git clone https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser\n",
|
24 |
+
"!git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet\n",
|
25 |
+
"!git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor\n",
|
26 |
+
"!git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex\n",
|
27 |
+
"!git clone https://github.com/yankooliveira/sd-webui-photopea-embed /content/stable-diffusion-webui/extensions/sd-webui-photopea-embed\n",
|
28 |
+
"!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
29 |
+
"!git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger\n",
|
30 |
+
"!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip\n",
|
31 |
+
"%cd /content/sd-webui/extensions\n",
|
32 |
+
"!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip\n",
|
33 |
+
"%cd /content\n",
|
34 |
+
"# Model Code\n",
|
35 |
+
"!curl -Lo /content/sd-webui/models/Stable-diffusion/animatrix_v20.safetensors https://civitai.com/api/download/models/44827\n",
|
36 |
+
"# ControlNet\n",
|
37 |
+
"# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\n",
|
38 |
+
"#!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",
|
39 |
+
"#!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",
|
40 |
+
"#!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",
|
41 |
+
"#!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",
|
42 |
+
"#!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",
|
43 |
+
"#!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",
|
44 |
+
"#!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",
|
45 |
+
"#!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",
|
46 |
+
"#!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",
|
47 |
+
"#!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",
|
48 |
+
"#!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",
|
49 |
+
"#!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",
|
50 |
+
"#!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",
|
51 |
+
"#!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",
|
52 |
+
"#!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",
|
53 |
+
"#!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",
|
54 |
+
"#!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",
|
55 |
+
"#!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",
|
56 |
+
"#!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",
|
57 |
+
"#!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",
|
58 |
+
"#!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",
|
59 |
+
"#!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",
|
60 |
+
"import shutil\n",
|
61 |
+
"shutil.rmtree('/content/sd-webui/embeddings')\n",
|
62 |
+
"!rm sd-webui.zip\n",
|
63 |
+
"!rm sd-webui-images-browser.zip\n",
|
64 |
+
"%cd /content/sd-webui\n",
|
65 |
+
"!git clone https://huggingface.co/nolanaatama/embeddings\n",
|
66 |
+
"%cd /content/sd-webui/models\n",
|
67 |
+
"!git clone https://huggingface.co/nolanaatama/ESRGAN\n",
|
68 |
+
"%cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
69 |
+
"!git checkout f9f7732\n",
|
70 |
+
"%cd /content/sd-webui\n",
|
71 |
+
"# Web UI tunnel\n",
|
72 |
+
"!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",
|
73 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
74 |
+
]
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"cell_type": "markdown",
|
78 |
+
"source": [
|
79 |
+
"## (OPTIONAL) LoRAs"
|
80 |
+
],
|
81 |
+
"metadata": {
|
82 |
+
"id": "0DwYF_aLUXKy"
|
83 |
+
}
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"cell_type": "markdown",
|
87 |
+
"source": [
|
88 |
+
"### 1. After the gradio link show up, stop the first cell & clear the code output👆"
|
89 |
+
],
|
90 |
+
"metadata": {
|
91 |
+
"id": "JUtPlg328avv"
|
92 |
+
}
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"cell_type": "markdown",
|
96 |
+
"source": [
|
97 |
+
"### 2. Load the LoRA & launch the web ui"
|
98 |
+
],
|
99 |
+
"metadata": {
|
100 |
+
"id": "xy_WyDzNUgd2"
|
101 |
+
}
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"cell_type": "code",
|
105 |
+
"source": [
|
106 |
+
"# 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",
|
107 |
+
"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
|
108 |
+
"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n",
|
109 |
+
"\n",
|
110 |
+
"# LoRA 1\n",
|
111 |
+
"#!curl ...\n",
|
112 |
+
"\n",
|
113 |
+
"# LoRA 2\n",
|
114 |
+
"#!curl ...\n",
|
115 |
+
"\n",
|
116 |
+
"# LoRA 3\n",
|
117 |
+
"#!curl ...\n",
|
118 |
+
"\n",
|
119 |
+
"# ...\n",
|
120 |
+
"\n",
|
121 |
+
"# Web UI tunnel\n",
|
122 |
+
"!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",
|
123 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
124 |
+
],
|
125 |
+
"metadata": {
|
126 |
+
"id": "3EOPSiOgUs4z"
|
127 |
+
},
|
128 |
+
"execution_count": null,
|
129 |
+
"outputs": []
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"cell_type": "markdown",
|
133 |
+
"metadata": {
|
134 |
+
"id": "fhwIXzcgfkoR"
|
135 |
+
},
|
136 |
+
"source": [
|
137 |
+
"# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\n",
|
138 |
+
"# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)"
|
139 |
+
]
|
140 |
+
}
|
141 |
+
],
|
142 |
+
"metadata": {
|
143 |
+
"accelerator": "GPU",
|
144 |
+
"colab": {
|
145 |
+
"provenance": []
|
146 |
+
},
|
147 |
+
"gpuClass": "standard",
|
148 |
+
"kernelspec": {
|
149 |
+
"display_name": "Python 3",
|
150 |
+
"name": "python3"
|
151 |
+
},
|
152 |
+
"language_info": {
|
153 |
+
"name": "python"
|
154 |
+
}
|
155 |
+
},
|
156 |
+
"nbformat": 4,
|
157 |
+
"nbformat_minor": 0
|
158 |
+
}
|
animatrix.ipynb
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"metadata": {
|
7 |
+
"id": "sBbcB4vwj_jm"
|
8 |
+
},
|
9 |
+
"outputs": [],
|
10 |
+
"source": [
|
11 |
+
"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\n",
|
12 |
+
"!unzip /content/memfix.zip\n",
|
13 |
+
"!apt install -qq libunwind8-dev\n",
|
14 |
+
"!apt install -qq libcairo2-dev pkg-config python3-dev\n",
|
15 |
+
"!dpkg -i *.deb\n",
|
16 |
+
"%env LD_PRELOAD=libtcmalloc.so\n",
|
17 |
+
"!rm *\n",
|
18 |
+
"!pip install --upgrade fastapi==0.90.1\n",
|
19 |
+
"!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",
|
20 |
+
"!curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip\n",
|
21 |
+
"!unzip /content/sd-webui.zip\n",
|
22 |
+
"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels\n",
|
23 |
+
"!git clone https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser\n",
|
24 |
+
"#!git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet\n",
|
25 |
+
"!git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor\n",
|
26 |
+
"!git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex\n",
|
27 |
+
"#!git clone https://github.com/yankooliveira/sd-webui-photopea-embed /content/stable-diffusion-webui/extensions/sd-webui-photopea-embed\n",
|
28 |
+
"!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
29 |
+
"!git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger\n",
|
30 |
+
"!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip\n",
|
31 |
+
"%cd /content/sd-webui/extensions\n",
|
32 |
+
"!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip\n",
|
33 |
+
"%cd /content\n",
|
34 |
+
"# Model Code\n",
|
35 |
+
"!curl -Lo /content/sd-webui/models/Stable-diffusion/animatrix_v20.safetensors https://civitai.com/api/download/models/44827\n",
|
36 |
+
"# ControlNet\n",
|
37 |
+
"# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\n",
|
38 |
+
"#!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",
|
39 |
+
"#!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",
|
40 |
+
"#!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",
|
41 |
+
"#!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",
|
42 |
+
"#!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",
|
43 |
+
"#!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",
|
44 |
+
"#!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",
|
45 |
+
"#!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",
|
46 |
+
"#!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",
|
47 |
+
"#!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",
|
48 |
+
"#!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",
|
49 |
+
"#!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",
|
50 |
+
"#!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",
|
51 |
+
"#!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",
|
52 |
+
"#!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",
|
53 |
+
"#!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",
|
54 |
+
"#!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",
|
55 |
+
"#!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",
|
56 |
+
"#!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",
|
57 |
+
"#!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",
|
58 |
+
"#!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",
|
59 |
+
"#!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",
|
60 |
+
"import shutil\n",
|
61 |
+
"shutil.rmtree('/content/sd-webui/embeddings')\n",
|
62 |
+
"!rm sd-webui.zip\n",
|
63 |
+
"!rm sd-webui-images-browser.zip\n",
|
64 |
+
"%cd /content/sd-webui\n",
|
65 |
+
"!git clone https://huggingface.co/nolanaatama/embeddings\n",
|
66 |
+
"%cd /content/sd-webui/models\n",
|
67 |
+
"!git clone https://huggingface.co/nolanaatama/ESRGAN\n",
|
68 |
+
"%cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
69 |
+
"!git checkout f9f7732\n",
|
70 |
+
"%cd /content/sd-webui\n",
|
71 |
+
"# Web UI tunnel\n",
|
72 |
+
"!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",
|
73 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
74 |
+
]
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"cell_type": "markdown",
|
78 |
+
"source": [
|
79 |
+
"## (OPTIONAL) LoRAs"
|
80 |
+
],
|
81 |
+
"metadata": {
|
82 |
+
"id": "0DwYF_aLUXKy"
|
83 |
+
}
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"cell_type": "markdown",
|
87 |
+
"source": [
|
88 |
+
"### 1. After the gradio link show up, stop the first cell & clear the code output👆"
|
89 |
+
],
|
90 |
+
"metadata": {
|
91 |
+
"id": "JUtPlg328avv"
|
92 |
+
}
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"cell_type": "markdown",
|
96 |
+
"source": [
|
97 |
+
"### 2. Load the LoRA & launch the web ui"
|
98 |
+
],
|
99 |
+
"metadata": {
|
100 |
+
"id": "xy_WyDzNUgd2"
|
101 |
+
}
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"cell_type": "code",
|
105 |
+
"source": [
|
106 |
+
"# 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",
|
107 |
+
"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
|
108 |
+
"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n",
|
109 |
+
"\n",
|
110 |
+
"# LoRA 1\n",
|
111 |
+
"#!curl ...\n",
|
112 |
+
"\n",
|
113 |
+
"# LoRA 2\n",
|
114 |
+
"#!curl ...\n",
|
115 |
+
"\n",
|
116 |
+
"# LoRA 3\n",
|
117 |
+
"#!curl ...\n",
|
118 |
+
"\n",
|
119 |
+
"# ...\n",
|
120 |
+
"\n",
|
121 |
+
"# Web UI tunnel\n",
|
122 |
+
"!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",
|
123 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
124 |
+
],
|
125 |
+
"metadata": {
|
126 |
+
"id": "3EOPSiOgUs4z"
|
127 |
+
},
|
128 |
+
"execution_count": null,
|
129 |
+
"outputs": []
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"cell_type": "markdown",
|
133 |
+
"metadata": {
|
134 |
+
"id": "fhwIXzcgfkoR"
|
135 |
+
},
|
136 |
+
"source": [
|
137 |
+
"# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\n",
|
138 |
+
"# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)"
|
139 |
+
]
|
140 |
+
}
|
141 |
+
],
|
142 |
+
"metadata": {
|
143 |
+
"accelerator": "GPU",
|
144 |
+
"colab": {
|
145 |
+
"provenance": []
|
146 |
+
},
|
147 |
+
"gpuClass": "standard",
|
148 |
+
"kernelspec": {
|
149 |
+
"display_name": "Python 3",
|
150 |
+
"name": "python3"
|
151 |
+
},
|
152 |
+
"language_info": {
|
153 |
+
"name": "python"
|
154 |
+
}
|
155 |
+
},
|
156 |
+
"nbformat": 4,
|
157 |
+
"nbformat_minor": 0
|
158 |
+
}
|
deliberate.ipynb
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"metadata": {
|
7 |
+
"id": "sBbcB4vwj_jm"
|
8 |
+
},
|
9 |
+
"outputs": [],
|
10 |
+
"source": [
|
11 |
+
"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\n",
|
12 |
+
"!unzip /content/memfix.zip\n",
|
13 |
+
"!apt install -qq libunwind8-dev\n",
|
14 |
+
"!apt install -qq libcairo2-dev pkg-config python3-dev\n",
|
15 |
+
"!dpkg -i *.deb\n",
|
16 |
+
"%env LD_PRELOAD=libtcmalloc.so\n",
|
17 |
+
"!rm *\n",
|
18 |
+
"!pip install --upgrade fastapi==0.90.1\n",
|
19 |
+
"!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",
|
20 |
+
"!curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip\n",
|
21 |
+
"!unzip /content/sd-webui.zip\n",
|
22 |
+
"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels\n",
|
23 |
+
"#!git clone https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser\n",
|
24 |
+
"!git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet\n",
|
25 |
+
"!git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor\n",
|
26 |
+
"!git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex\n",
|
27 |
+
"#!git clone https://github.com/yankooliveira/sd-webui-photopea-embed /content/stable-diffusion-webui/extensions/sd-webui-photopea-embed\n",
|
28 |
+
"!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
29 |
+
"!git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger\n",
|
30 |
+
"!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip\n",
|
31 |
+
"%cd /content/sd-webui/extensions\n",
|
32 |
+
"!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip\n",
|
33 |
+
"%cd /content\n",
|
34 |
+
"# Model Code\n",
|
35 |
+
"!curl -Lo /content/sd-webui/models/Stable-diffusion/deliberate_v2.safetensors https://civitai.com/api/download/models/15236\n",
|
36 |
+
"# ControlNet\n",
|
37 |
+
"# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\n",
|
38 |
+
"#!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",
|
39 |
+
"#!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",
|
40 |
+
"#!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",
|
41 |
+
"#!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",
|
42 |
+
"#!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",
|
43 |
+
"#!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",
|
44 |
+
"#!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",
|
45 |
+
"#!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",
|
46 |
+
"#!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",
|
47 |
+
"#!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",
|
48 |
+
"#!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",
|
49 |
+
"#!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",
|
50 |
+
"#!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",
|
51 |
+
"#!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",
|
52 |
+
"#!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",
|
53 |
+
"#!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",
|
54 |
+
"#!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",
|
55 |
+
"#!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",
|
56 |
+
"#!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",
|
57 |
+
"#!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",
|
58 |
+
"#!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",
|
59 |
+
"#!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",
|
60 |
+
"import shutil\n",
|
61 |
+
"shutil.rmtree('/content/sd-webui/embeddings')\n",
|
62 |
+
"!rm sd-webui.zip\n",
|
63 |
+
"!rm sd-webui-images-browser.zip\n",
|
64 |
+
"%cd /content/sd-webui\n",
|
65 |
+
"!git clone https://huggingface.co/nolanaatama/embeddings\n",
|
66 |
+
"%cd /content/sd-webui/models\n",
|
67 |
+
"!git clone https://huggingface.co/nolanaatama/ESRGAN\n",
|
68 |
+
"%cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
69 |
+
"!git checkout f9f7732\n",
|
70 |
+
"%cd /content/sd-webui\n",
|
71 |
+
"# Web UI tunnel\n",
|
72 |
+
"!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",
|
73 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
74 |
+
]
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"cell_type": "markdown",
|
78 |
+
"source": [
|
79 |
+
"## (OPTIONAL) LoRAs"
|
80 |
+
],
|
81 |
+
"metadata": {
|
82 |
+
"id": "0DwYF_aLUXKy"
|
83 |
+
}
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"cell_type": "markdown",
|
87 |
+
"source": [
|
88 |
+
"### 1. After the gradio link show up, stop the first cell & clear the code output👆"
|
89 |
+
],
|
90 |
+
"metadata": {
|
91 |
+
"id": "JUtPlg328avv"
|
92 |
+
}
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"cell_type": "markdown",
|
96 |
+
"source": [
|
97 |
+
"### 2. Load the LoRA & launch the web ui"
|
98 |
+
],
|
99 |
+
"metadata": {
|
100 |
+
"id": "xy_WyDzNUgd2"
|
101 |
+
}
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"cell_type": "code",
|
105 |
+
"source": [
|
106 |
+
"# 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",
|
107 |
+
"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
|
108 |
+
"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n",
|
109 |
+
"\n",
|
110 |
+
"# LoRA 1\n",
|
111 |
+
"#!curl ...\n",
|
112 |
+
"\n",
|
113 |
+
"# LoRA 2\n",
|
114 |
+
"#!curl ...\n",
|
115 |
+
"\n",
|
116 |
+
"# LoRA 3\n",
|
117 |
+
"#!curl ...\n",
|
118 |
+
"\n",
|
119 |
+
"# ...\n",
|
120 |
+
"\n",
|
121 |
+
"# Web UI tunnel\n",
|
122 |
+
"!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",
|
123 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
124 |
+
],
|
125 |
+
"metadata": {
|
126 |
+
"id": "3EOPSiOgUs4z"
|
127 |
+
},
|
128 |
+
"execution_count": null,
|
129 |
+
"outputs": []
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"cell_type": "markdown",
|
133 |
+
"metadata": {
|
134 |
+
"id": "fhwIXzcgfkoR"
|
135 |
+
},
|
136 |
+
"source": [
|
137 |
+
"# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\n",
|
138 |
+
"# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)"
|
139 |
+
]
|
140 |
+
}
|
141 |
+
],
|
142 |
+
"metadata": {
|
143 |
+
"accelerator": "GPU",
|
144 |
+
"colab": {
|
145 |
+
"provenance": []
|
146 |
+
},
|
147 |
+
"gpuClass": "standard",
|
148 |
+
"kernelspec": {
|
149 |
+
"display_name": "Python 3",
|
150 |
+
"name": "python3"
|
151 |
+
},
|
152 |
+
"language_info": {
|
153 |
+
"name": "python"
|
154 |
+
}
|
155 |
+
},
|
156 |
+
"nbformat": 4,
|
157 |
+
"nbformat_minor": 0
|
158 |
+
}
|
realisticvisionv2.ipynb
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"metadata": {
|
7 |
+
"id": "sBbcB4vwj_jm"
|
8 |
+
},
|
9 |
+
"outputs": [],
|
10 |
+
"source": [
|
11 |
+
"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\n",
|
12 |
+
"!unzip /content/memfix.zip\n",
|
13 |
+
"!apt install -qq libunwind8-dev\n",
|
14 |
+
"!apt install -qq libcairo2-dev pkg-config python3-dev\n",
|
15 |
+
"!dpkg -i *.deb\n",
|
16 |
+
"%env LD_PRELOAD=libtcmalloc.so\n",
|
17 |
+
"!rm *\n",
|
18 |
+
"!pip install --upgrade fastapi==0.90.1\n",
|
19 |
+
"!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",
|
20 |
+
"!curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip\n",
|
21 |
+
"!unzip /content/sd-webui.zip\n",
|
22 |
+
"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels\n",
|
23 |
+
"#!git clone https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser\n",
|
24 |
+
"#!git clone https://github.com/yankooliveira/sd-webui-photopea-embed /content/stable-diffusion-webui/extensions/sd-webui-photopea-embed\n",
|
25 |
+
"!git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet\n",
|
26 |
+
"!git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor\n",
|
27 |
+
"!git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex\n",
|
28 |
+
"!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
29 |
+
"!git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger\n",
|
30 |
+
"!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip\n",
|
31 |
+
"%cd /content/sd-webui/extensions\n",
|
32 |
+
"!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip\n",
|
33 |
+
"%cd /content\n",
|
34 |
+
"# Model Code\n",
|
35 |
+
"!curl -Lo /content/sd-webui/models/Stable-diffusion/realisticVisionV20_v13.safetensors https://civitai.com/api/download/models/6987\n",
|
36 |
+
"# ControlNet\n",
|
37 |
+
"# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\n",
|
38 |
+
"#!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",
|
39 |
+
"#!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",
|
40 |
+
"#!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",
|
41 |
+
"#!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",
|
42 |
+
"#!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",
|
43 |
+
"#!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",
|
44 |
+
"#!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",
|
45 |
+
"#!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",
|
46 |
+
"#!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",
|
47 |
+
"#!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",
|
48 |
+
"#!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",
|
49 |
+
"#!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",
|
50 |
+
"#!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",
|
51 |
+
"#!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",
|
52 |
+
"#!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",
|
53 |
+
"#!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",
|
54 |
+
"#!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",
|
55 |
+
"#!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",
|
56 |
+
"#!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",
|
57 |
+
"#!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",
|
58 |
+
"#!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",
|
59 |
+
"#!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",
|
60 |
+
"import shutil\n",
|
61 |
+
"shutil.rmtree('/content/sd-webui/embeddings')\n",
|
62 |
+
"!rm sd-webui.zip\n",
|
63 |
+
"!rm sd-webui-images-browser.zip\n",
|
64 |
+
"%cd /content/sd-webui\n",
|
65 |
+
"!git clone https://huggingface.co/nolanaatama/embeddings\n",
|
66 |
+
"%cd /content/sd-webui/models\n",
|
67 |
+
"!git clone https://huggingface.co/nolanaatama/ESRGAN\n",
|
68 |
+
"%cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
69 |
+
"!git checkout f9f7732\n",
|
70 |
+
"%cd /content/sd-webui\n",
|
71 |
+
"# Web UI tunnel\n",
|
72 |
+
"!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",
|
73 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
74 |
+
]
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"cell_type": "markdown",
|
78 |
+
"source": [
|
79 |
+
"## (OPTIONAL) LoRAs"
|
80 |
+
],
|
81 |
+
"metadata": {
|
82 |
+
"id": "0DwYF_aLUXKy"
|
83 |
+
}
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"cell_type": "markdown",
|
87 |
+
"source": [
|
88 |
+
"### 1. After the gradio link show up, stop the first cell & clear the code output👆"
|
89 |
+
],
|
90 |
+
"metadata": {
|
91 |
+
"id": "JUtPlg328avv"
|
92 |
+
}
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"cell_type": "markdown",
|
96 |
+
"source": [
|
97 |
+
"### 2. Load the LoRA & launch the web ui"
|
98 |
+
],
|
99 |
+
"metadata": {
|
100 |
+
"id": "xy_WyDzNUgd2"
|
101 |
+
}
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"cell_type": "code",
|
105 |
+
"source": [
|
106 |
+
"# 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",
|
107 |
+
"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
|
108 |
+
"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n",
|
109 |
+
"\n",
|
110 |
+
"# LoRA 1\n",
|
111 |
+
"#!curl ...\n",
|
112 |
+
"\n",
|
113 |
+
"# LoRA 2\n",
|
114 |
+
"#!curl ...\n",
|
115 |
+
"\n",
|
116 |
+
"# LoRA 3\n",
|
117 |
+
"#!curl ...\n",
|
118 |
+
"\n",
|
119 |
+
"# ...\n",
|
120 |
+
"\n",
|
121 |
+
"# Web UI tunnel\n",
|
122 |
+
"!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",
|
123 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
124 |
+
],
|
125 |
+
"metadata": {
|
126 |
+
"id": "3EOPSiOgUs4z"
|
127 |
+
},
|
128 |
+
"execution_count": null,
|
129 |
+
"outputs": []
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"cell_type": "markdown",
|
133 |
+
"metadata": {
|
134 |
+
"id": "fhwIXzcgfkoR"
|
135 |
+
},
|
136 |
+
"source": [
|
137 |
+
"# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\n",
|
138 |
+
"# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)"
|
139 |
+
]
|
140 |
+
}
|
141 |
+
],
|
142 |
+
"metadata": {
|
143 |
+
"accelerator": "GPU",
|
144 |
+
"colab": {
|
145 |
+
"provenance": []
|
146 |
+
},
|
147 |
+
"gpuClass": "standard",
|
148 |
+
"kernelspec": {
|
149 |
+
"display_name": "Python 3",
|
150 |
+
"name": "python3"
|
151 |
+
},
|
152 |
+
"language_info": {
|
153 |
+
"name": "python"
|
154 |
+
}
|
155 |
+
},
|
156 |
+
"nbformat": 4,
|
157 |
+
"nbformat_minor": 0
|
158 |
+
}
|
revanimated.ipynb
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"metadata": {
|
7 |
+
"id": "sBbcB4vwj_jm"
|
8 |
+
},
|
9 |
+
"outputs": [],
|
10 |
+
"source": [
|
11 |
+
"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\n",
|
12 |
+
"!unzip /content/memfix.zip\n",
|
13 |
+
"!apt install -qq libunwind8-dev\n",
|
14 |
+
"!apt install -qq libcairo2-dev pkg-config python3-dev\n",
|
15 |
+
"!dpkg -i *.deb\n",
|
16 |
+
"%env LD_PRELOAD=libtcmalloc.so\n",
|
17 |
+
"!rm *\n",
|
18 |
+
"!pip install --upgrade fastapi==0.90.1\n",
|
19 |
+
"!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",
|
20 |
+
"!curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip\n",
|
21 |
+
"!unzip /content/sd-webui.zip\n",
|
22 |
+
"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels\n",
|
23 |
+
"#!git clone https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser\n",
|
24 |
+
"!git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet\n",
|
25 |
+
"!git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor\n",
|
26 |
+
"!git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex\n",
|
27 |
+
"#!git clone https://github.com/yankooliveira/sd-webui-photopea-embed /content/stable-diffusion-webui/extensions/sd-webui-photopea-embed\n",
|
28 |
+
"!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
29 |
+
"!git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger\n",
|
30 |
+
"!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip\n",
|
31 |
+
"%cd /content/sd-webui/extensions\n",
|
32 |
+
"!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip\n",
|
33 |
+
"%cd /content\n",
|
34 |
+
"# Model Code\n",
|
35 |
+
"!curl -Lo /content/sd-webui/models/Stable-diffusion/revAnimated_v122.safetensors https://civitai.com/api/download/models/46846\n",
|
36 |
+
"!curl -Lo /content/sd-webui/models/Stable-diffusion//kl-f8-anime2.ckpt https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt\n",
|
37 |
+
"# ControlNet\n",
|
38 |
+
"# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\n",
|
39 |
+
"#!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",
|
40 |
+
"#!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",
|
41 |
+
"#!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",
|
42 |
+
"#!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",
|
43 |
+
"#!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",
|
44 |
+
"#!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",
|
45 |
+
"#!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",
|
46 |
+
"#!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",
|
47 |
+
"#!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",
|
48 |
+
"#!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",
|
49 |
+
"#!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",
|
50 |
+
"#!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",
|
51 |
+
"#!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",
|
52 |
+
"#!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",
|
53 |
+
"#!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",
|
54 |
+
"#!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",
|
55 |
+
"#!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",
|
56 |
+
"#!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",
|
57 |
+
"#!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",
|
58 |
+
"#!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",
|
59 |
+
"#!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",
|
60 |
+
"#!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",
|
61 |
+
"import shutil\n",
|
62 |
+
"shutil.rmtree('/content/sd-webui/embeddings')\n",
|
63 |
+
"!rm sd-webui.zip\n",
|
64 |
+
"!rm sd-webui-images-browser.zip\n",
|
65 |
+
"%cd /content/sd-webui\n",
|
66 |
+
"!git clone https://huggingface.co/nolanaatama/embeddings\n",
|
67 |
+
"%cd /content/sd-webui/models\n",
|
68 |
+
"!git clone https://huggingface.co/nolanaatama/ESRGAN\n",
|
69 |
+
"%cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
|
70 |
+
"!git checkout f9f7732\n",
|
71 |
+
"%cd /content/sd-webui\n",
|
72 |
+
"# Web UI tunnel\n",
|
73 |
+
"!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",
|
74 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
75 |
+
]
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"cell_type": "markdown",
|
79 |
+
"source": [
|
80 |
+
"## (OPTIONAL) LoRAs"
|
81 |
+
],
|
82 |
+
"metadata": {
|
83 |
+
"id": "0DwYF_aLUXKy"
|
84 |
+
}
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"cell_type": "markdown",
|
88 |
+
"source": [
|
89 |
+
"### 1. After the gradio link show up, stop the first cell & clear the code output👆"
|
90 |
+
],
|
91 |
+
"metadata": {
|
92 |
+
"id": "JUtPlg328avv"
|
93 |
+
}
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"cell_type": "markdown",
|
97 |
+
"source": [
|
98 |
+
"### 2. Load the LoRA & launch the web ui"
|
99 |
+
],
|
100 |
+
"metadata": {
|
101 |
+
"id": "xy_WyDzNUgd2"
|
102 |
+
}
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"cell_type": "code",
|
106 |
+
"source": [
|
107 |
+
"# 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",
|
108 |
+
"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
|
109 |
+
"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\n",
|
110 |
+
"\n",
|
111 |
+
"# LoRA 1\n",
|
112 |
+
"#!curl ...\n",
|
113 |
+
"\n",
|
114 |
+
"# LoRA 2\n",
|
115 |
+
"#!curl ...\n",
|
116 |
+
"\n",
|
117 |
+
"# LoRA 3\n",
|
118 |
+
"#!curl ...\n",
|
119 |
+
"\n",
|
120 |
+
"# ...\n",
|
121 |
+
"\n",
|
122 |
+
"# Web UI tunnel\n",
|
123 |
+
"!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",
|
124 |
+
"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
|
125 |
+
],
|
126 |
+
"metadata": {
|
127 |
+
"id": "3EOPSiOgUs4z"
|
128 |
+
},
|
129 |
+
"execution_count": null,
|
130 |
+
"outputs": []
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"cell_type": "markdown",
|
134 |
+
"metadata": {
|
135 |
+
"id": "fhwIXzcgfkoR"
|
136 |
+
},
|
137 |
+
"source": [
|
138 |
+
"# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\n",
|
139 |
+
"# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)"
|
140 |
+
]
|
141 |
+
}
|
142 |
+
],
|
143 |
+
"metadata": {
|
144 |
+
"accelerator": "GPU",
|
145 |
+
"colab": {
|
146 |
+
"provenance": []
|
147 |
+
},
|
148 |
+
"gpuClass": "standard",
|
149 |
+
"kernelspec": {
|
150 |
+
"display_name": "Python 3",
|
151 |
+
"name": "python3"
|
152 |
+
},
|
153 |
+
"language_info": {
|
154 |
+
"name": "python"
|
155 |
+
}
|
156 |
+
},
|
157 |
+
"nbformat": 4,
|
158 |
+
"nbformat_minor": 0
|
159 |
+
}
|