Update setup_webui_yui.ipynb
Browse files- setup_webui_yui.ipynb +39 -20
setup_webui_yui.ipynb
CHANGED
@@ -51,8 +51,7 @@
|
|
51 |
"# 各モデルのダウンロード ※初回のみ実行\n",
|
52 |
"# ※なにかしらのモデルが入っていないとweb-uiは起動しません\n",
|
53 |
"%cd /notebooks/stable-diffusion-webui/models/Stable-diffusion\n",
|
54 |
-
"!curl https://huggingface.co/
|
55 |
-
"%cd /notebooks/stable-diffusion-webui"
|
56 |
]
|
57 |
},
|
58 |
{
|
@@ -66,32 +65,33 @@
|
|
66 |
"\n",
|
67 |
"### CKPT\n",
|
68 |
"%cd /notebooks/stable-diffusion-webui/models/Stable-diffusion/\n",
|
69 |
-
"
|
70 |
-
"
|
71 |
-
"
|
72 |
-
"
|
|
|
73 |
"\n",
|
74 |
"### VAE\n",
|
75 |
"%cd /notebooks/stable-diffusion-webui/models/VAE/\n",
|
76 |
-
"!
|
77 |
"\n",
|
78 |
-
"###
|
79 |
"%cd /notebooks/stable-diffusion-webui/embeddings/\n",
|
80 |
-
"
|
81 |
-
"!
|
82 |
-
"
|
83 |
"\n",
|
84 |
"### LoRA\n",
|
85 |
"%cd /notebooks/stable-diffusion-webui/extensions/sd-webui-additional-networks/models/lora/\n",
|
86 |
-
"
|
87 |
"\n",
|
88 |
"### ControlNet\n",
|
89 |
"%cd /notebooks/stable-diffusion-webui/extensions/sd-webui-controlnet/models\n",
|
90 |
-
"
|
91 |
-
"
|
92 |
-
"
|
93 |
-
"
|
94 |
-
"
|
95 |
]
|
96 |
},
|
97 |
{
|
@@ -103,8 +103,8 @@
|
|
103 |
"source": [
|
104 |
"# config.json の復元\n",
|
105 |
"%cd /notebooks/stable-diffusion-webui/\n",
|
106 |
-
"!
|
107 |
-
"!
|
108 |
]
|
109 |
},
|
110 |
{
|
@@ -118,12 +118,31 @@
|
|
118 |
"# ログイン用のユーザーネームとパスワードは --gradio-auth ユーザーネーム:パスワード とな���。書き換え推奨。\n",
|
119 |
"%cd /notebooks/stable-diffusion-webui\n",
|
120 |
"!python launch.py\\\n",
|
121 |
-
"--gradio-auth
|
122 |
"--share\\\n",
|
123 |
"--no-half-vae\\\n",
|
124 |
"--skip-version-check\\\n",
|
125 |
"--enable-insecure-extension-access"
|
126 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
}
|
128 |
],
|
129 |
"metadata": {
|
|
|
51 |
"# 各モデルのダウンロード ※初回のみ実行\n",
|
52 |
"# ※なにかしらのモデルが入っていないとweb-uiは起動しません\n",
|
53 |
"%cd /notebooks/stable-diffusion-webui/models/Stable-diffusion\n",
|
54 |
+
"!curl -OL https://huggingface.co/Defpoint/Defmix-v2.0/resolve/main/Defmix-v2.0.safetensors # 2.1GB"
|
|
|
55 |
]
|
56 |
},
|
57 |
{
|
|
|
65 |
"\n",
|
66 |
"### CKPT\n",
|
67 |
"%cd /notebooks/stable-diffusion-webui/models/Stable-diffusion/\n",
|
68 |
+
"#!curl -OL https://huggingface.co/syaimu/7th_Layer/resolve/main/7th_anime_v3/7th_anime_v3_B.safetensors # \n",
|
69 |
+
"#!curl -OL https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix3/AOM3A1.safetensors # 2.13 GB\n",
|
70 |
+
"#!curl -OL https://huggingface.co/gsdf/Counterfeit-V2.5/resolve/main/Counterfeit-V2.5.safetensors # 7.7 GB\n",
|
71 |
+
"#!curl -OL https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/ElyOrangeMix/ElyNightOrangeMix.ckpt # 4.27 GB\n",
|
72 |
+
"#!curl -OL https://huggingface.co/Defpoint/Defmix-v2.0/resolve/main/Defmix-v2.0.safetensors # 2.1GB\n",
|
73 |
"\n",
|
74 |
"### VAE\n",
|
75 |
"%cd /notebooks/stable-diffusion-webui/models/VAE/\n",
|
76 |
+
"!curl -OL https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.0.vae.pt\n",
|
77 |
"\n",
|
78 |
+
"### EMBEDDING\n",
|
79 |
"%cd /notebooks/stable-diffusion-webui/embeddings/\n",
|
80 |
+
"#!curl -OL https://huggingface.co/datasets/Nerfgun3/bad_prompt/resolve/main/bad_prompt_version2.pt\n",
|
81 |
+
"!curl -OL https://huggingface.co/datasets/gsdf/EasyNegative/resolve/main/EasyNegative.safetensors\n",
|
82 |
+
"#!curl -OL https://huggingface.co/nick-x-hacker/bad-artist/resolve/main/bad-artist.pt\n",
|
83 |
"\n",
|
84 |
"### LoRA\n",
|
85 |
"%cd /notebooks/stable-diffusion-webui/extensions/sd-webui-additional-networks/models/lora/\n",
|
86 |
+
"#!curl -OL https://huggingface.co/yui-futao/LoRA-fto/resolve/main/fto-v43.safetensors\n",
|
87 |
"\n",
|
88 |
"### ControlNet\n",
|
89 |
"%cd /notebooks/stable-diffusion-webui/extensions/sd-webui-controlnet/models\n",
|
90 |
+
"#!curl -OL https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_canny-fp16.safetensors\n",
|
91 |
+
"#!curl -OL https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_depth-fp16.safetensors\n",
|
92 |
+
"#!curl -OL https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_normal-fp16.safetensors\n",
|
93 |
+
"#!curl -OL https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_openpose-fp16.safetensors\n",
|
94 |
+
"#!curl -OL https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_seg-fp16.safetensors"
|
95 |
]
|
96 |
},
|
97 |
{
|
|
|
103 |
"source": [
|
104 |
"# config.json の復元\n",
|
105 |
"%cd /notebooks/stable-diffusion-webui/\n",
|
106 |
+
"!curl -OL https://huggingface.co/datasets/yui-futao/notebooks/raw/main/config.json\n",
|
107 |
+
"!curl -OL https://huggingface.co/datasets/yui-futao/notebooks/raw/main/ui-config.json"
|
108 |
]
|
109 |
},
|
110 |
{
|
|
|
118 |
"# ログイン用のユーザーネームとパスワードは --gradio-auth ユーザーネーム:パスワード とな���。書き換え推奨。\n",
|
119 |
"%cd /notebooks/stable-diffusion-webui\n",
|
120 |
"!python launch.py\\\n",
|
121 |
+
"--gradio-auth <gradio_username>:<gradio_password>\\\n",
|
122 |
"--share\\\n",
|
123 |
"--no-half-vae\\\n",
|
124 |
"--skip-version-check\\\n",
|
125 |
"--enable-insecure-extension-access"
|
126 |
]
|
127 |
+
},
|
128 |
+
{
|
129 |
+
"cell_type": "code",
|
130 |
+
"execution_count": null,
|
131 |
+
"id": "3cf2dd03",
|
132 |
+
"metadata": {},
|
133 |
+
"outputs": [],
|
134 |
+
"source": [
|
135 |
+
"# test ssh connection\n",
|
136 |
+
"!cd /notebooks/\n",
|
137 |
+
"PORTNUM=XXXXXX\n",
|
138 |
+
"!ssh -i /notebooks/yui.pem -p $PORTNUM [email protected]\n",
|
139 |
+
"!exit\n",
|
140 |
+
"\n",
|
141 |
+
"# scp to local\n",
|
142 |
+
"PORTNUM=XXXXXX\n",
|
143 |
+
"DIR=\"/notebooks/stable-diffusion-webui/outputs/YYYYYY\"\n",
|
144 |
+
"!scp -i /notebooks/yui.pem -P $PORTNUM -r $DIR [email protected]:/mnt/d/gradient-sync/"
|
145 |
+
]
|
146 |
}
|
147 |
],
|
148 |
"metadata": {
|