Upload setup_webui_yui.ipynb
Browse files- setup_webui_yui.ipynb +116 -0
setup_webui_yui.ipynb
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"id": "8cd9b419-e368-4416-9ec8-370de5db7e22",
|
7 |
+
"metadata": {},
|
8 |
+
"outputs": [],
|
9 |
+
"source": [
|
10 |
+
"# web-uiのインストール ※初回のみ実行\n",
|
11 |
+
"%cd /notebooks\n",
|
12 |
+
"!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui\n",
|
13 |
+
"%cd /notebooks/stable-diffusion-webui"
|
14 |
+
]
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"cell_type": "code",
|
18 |
+
"execution_count": null,
|
19 |
+
"id": "7754e8bf-d149-4e3e-9115-e954639c1a12",
|
20 |
+
"metadata": {},
|
21 |
+
"outputs": [],
|
22 |
+
"source": [
|
23 |
+
"# googleドライブからファイルダウンロードするのに必要なツールのインストール ※初回のみ実行\n",
|
24 |
+
"!pip install gdown\n",
|
25 |
+
"!pip install --upgrade gdown"
|
26 |
+
]
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"cell_type": "code",
|
30 |
+
"execution_count": null,
|
31 |
+
"id": "f34e111a-28d7-456e-bb38-c142c781a680",
|
32 |
+
"metadata": {},
|
33 |
+
"outputs": [],
|
34 |
+
"source": [
|
35 |
+
"# 各モデルのダウンロード ※初回のみ実行\n",
|
36 |
+
"# ※なにかしらのモデルが入っていないとweb-uiは起動しません\n",
|
37 |
+
"%cd /notebooks/stable-diffusion-webui/models/Stable-diffusion\n",
|
38 |
+
"!curl https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix3/AOM3A1.safetensors\n",
|
39 |
+
"%cd /notebooks/stable-diffusion-webui"
|
40 |
+
]
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"cell_type": "code",
|
44 |
+
"execution_count": null,
|
45 |
+
"id": "0eb13e70",
|
46 |
+
"metadata": {},
|
47 |
+
"outputs": [],
|
48 |
+
"source": [
|
49 |
+
"## Additional models download for yui\n",
|
50 |
+
"\n",
|
51 |
+
"### CKPT\n",
|
52 |
+
"%cd /notebooks/stable-diffusion-webui/models/Stable-diffusion/\n",
|
53 |
+
"!wget https://huggingface.co/syaimu/7th_Layer/resolve/main/7th_anime_v3/7th_anime_v3_B.safetensors # \n",
|
54 |
+
"!wget https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix3/AOM3A1.safetensors # 2.13 GB\n",
|
55 |
+
"\n",
|
56 |
+
"### VAE\n",
|
57 |
+
"%cd /notebooks/stable-diffusion-webui/models/VAE/\n",
|
58 |
+
"!wget https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.0.vae.pt\n",
|
59 |
+
"\n",
|
60 |
+
"### LoRA\n",
|
61 |
+
"%cd /notebooks/stable-diffusion-webui/extensions/sd-webui-additional-networks/models/lora/\n",
|
62 |
+
"!wget https://huggingface.co/yui-futao/LoRA-fto/resolve/main/fto-v43.safetensors\n",
|
63 |
+
"\n",
|
64 |
+
"### ControlNet\n",
|
65 |
+
"%cd /notebooks/stable-diffusion-webui/extensions/sd-webui-controlnet/models\n",
|
66 |
+
"!wget https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_canny-fp16.safetensors\n",
|
67 |
+
"!wget https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_depth-fp16.safetensors\n",
|
68 |
+
"!wget https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_normal-fp16.safetensors\n",
|
69 |
+
"!wget https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_openpose-fp16.safetensors\n",
|
70 |
+
"!wget https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_seg-fp16.safetensors"
|
71 |
+
]
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"cell_type": "code",
|
75 |
+
"execution_count": null,
|
76 |
+
"id": "ca0e037f-4f6d-4122-9b4e-0ce8853e2bf3",
|
77 |
+
"metadata": {},
|
78 |
+
"outputs": [],
|
79 |
+
"source": [
|
80 |
+
"# web-uiの起動\n",
|
81 |
+
"# ログイン用のユーザーネームとパスワードは --gradio-auth ユーザーネーム:パスワード となる。書き換え推奨。\n",
|
82 |
+
"%cd /notebooks/stable-diffusion-webui\n",
|
83 |
+
"!python launch.py --share --enable-insecure-extension-access --gradio-auth yui:Kokoga-Password-Dayo"
|
84 |
+
]
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"cell_type": "code",
|
88 |
+
"execution_count": null,
|
89 |
+
"id": "5d7a0b98-720c-4d6f-bf51-966114128c63",
|
90 |
+
"metadata": {},
|
91 |
+
"outputs": [],
|
92 |
+
"source": []
|
93 |
+
}
|
94 |
+
],
|
95 |
+
"metadata": {
|
96 |
+
"kernelspec": {
|
97 |
+
"display_name": "Python 3 (ipykernel)",
|
98 |
+
"language": "python",
|
99 |
+
"name": "python3"
|
100 |
+
},
|
101 |
+
"language_info": {
|
102 |
+
"codemirror_mode": {
|
103 |
+
"name": "ipython",
|
104 |
+
"version": 3
|
105 |
+
},
|
106 |
+
"file_extension": ".py",
|
107 |
+
"mimetype": "text/x-python",
|
108 |
+
"name": "python",
|
109 |
+
"nbconvert_exporter": "python",
|
110 |
+
"pygments_lexer": "ipython3",
|
111 |
+
"version": "3.9.16"
|
112 |
+
}
|
113 |
+
},
|
114 |
+
"nbformat": 4,
|
115 |
+
"nbformat_minor": 5
|
116 |
+
}
|