Upload 3 files
Browse files- Invoke/INITIAL_MODELS.yaml +2 -9
- Invoke/_main.ipynb +2 -1
- Invoke/_start.ipynb +19 -0
Invoke/INITIAL_MODELS.yaml
CHANGED
|
@@ -1,11 +1,4 @@
|
|
| 1 |
# This file predefines a few models that the user may want to install.
|
| 2 |
-
|
| 3 |
-
sd-1/main/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting.safetensors:
|
| 4 |
-
description: hilloutmix_NiPrunedFp32Fix-inpainting (4.27 GB)
|
| 5 |
-
repo_id: mnvvc/abcabc
|
| 6 |
-
recommended: True
|
| 7 |
-
default: True
|
| 8 |
-
|
| 9 |
sd-1/main/stable-diffusion-v1-5:
|
| 10 |
description: Stable Diffusion version 1.5 diffusers model (4.27 GB)
|
| 11 |
repo_id: runwayml/stable-diffusion-v1-5
|
|
@@ -73,7 +66,7 @@ sd-1/main/waifu-diffusion:
|
|
| 73 |
recommended: False
|
| 74 |
sd-1/controlnet/canny:
|
| 75 |
repo_id: lllyasviel/control_v11p_sd15_canny
|
| 76 |
-
recommended:
|
| 77 |
sd-1/controlnet/inpaint:
|
| 78 |
repo_id: lllyasviel/control_v11p_sd15_inpaint
|
| 79 |
recommended: False
|
|
@@ -82,7 +75,7 @@ sd-1/controlnet/mlsd:
|
|
| 82 |
recommended: False
|
| 83 |
sd-1/controlnet/depth:
|
| 84 |
repo_id: lllyasviel/control_v11f1p_sd15_depth
|
| 85 |
-
recommended:
|
| 86 |
sd-1/controlnet/normal_bae:
|
| 87 |
repo_id: lllyasviel/control_v11p_sd15_normalbae
|
| 88 |
recommended: False
|
|
|
|
| 1 |
# This file predefines a few models that the user may want to install.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
sd-1/main/stable-diffusion-v1-5:
|
| 3 |
description: Stable Diffusion version 1.5 diffusers model (4.27 GB)
|
| 4 |
repo_id: runwayml/stable-diffusion-v1-5
|
|
|
|
| 66 |
recommended: False
|
| 67 |
sd-1/controlnet/canny:
|
| 68 |
repo_id: lllyasviel/control_v11p_sd15_canny
|
| 69 |
+
recommended: False
|
| 70 |
sd-1/controlnet/inpaint:
|
| 71 |
repo_id: lllyasviel/control_v11p_sd15_inpaint
|
| 72 |
recommended: False
|
|
|
|
| 75 |
recommended: False
|
| 76 |
sd-1/controlnet/depth:
|
| 77 |
repo_id: lllyasviel/control_v11f1p_sd15_depth
|
| 78 |
+
recommended: False
|
| 79 |
sd-1/controlnet/normal_bae:
|
| 80 |
repo_id: lllyasviel/control_v11p_sd15_normalbae
|
| 81 |
recommended: False
|
Invoke/_main.ipynb
CHANGED
|
@@ -32,9 +32,10 @@
|
|
| 32 |
"# 模型下载\n",
|
| 33 |
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/Invoke/INITIAL_MODELS.yaml -O /content/IAekovnI/invokeai/configs/INITIAL_MODELS.yaml\n",
|
| 34 |
"!python /content/IAekovnI/scripts/invokeai-model-install.py --root_dir /content/IAekovnI/db --yes\n",
|
|
|
|
| 35 |
"\n",
|
| 36 |
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/libtcmalloc_minimal.so.4\n",
|
| 37 |
-
"os.environ['LD_PRELOAD'] = '/content/libtcmalloc_minimal.so.4'\n",
|
| 38 |
"\n",
|
| 39 |
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/Invoke/_start.ipynb\n",
|
| 40 |
"\n",
|
|
|
|
| 32 |
"# 模型下载\n",
|
| 33 |
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/Invoke/INITIAL_MODELS.yaml -O /content/IAekovnI/invokeai/configs/INITIAL_MODELS.yaml\n",
|
| 34 |
"!python /content/IAekovnI/scripts/invokeai-model-install.py --root_dir /content/IAekovnI/db --yes\n",
|
| 35 |
+
"!curl -Lo /content/IAekovnI/db/models/sd-1/main/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting.safetensors https://huggingface.co/spaces/weo1101/111/resolve/main/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting.safetensors\n",
|
| 36 |
"\n",
|
| 37 |
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/libtcmalloc_minimal.so.4\n",
|
| 38 |
+
"os.environ['LD_PRELOAD'] = '/content/IAekovnI/libtcmalloc_minimal.so.4'\n",
|
| 39 |
"\n",
|
| 40 |
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/Invoke/_start.ipynb\n",
|
| 41 |
"\n",
|
Invoke/_start.ipynb
CHANGED
|
@@ -7,6 +7,25 @@
|
|
| 7 |
"outputs": [],
|
| 8 |
"source": [
|
| 9 |
"import threading\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"\n",
|
| 11 |
"def start_tunnle():\n",
|
| 12 |
" if use_ngrok:\n",
|
|
|
|
| 7 |
"outputs": [],
|
| 8 |
"source": [
|
| 9 |
"import threading\n",
|
| 10 |
+
"import yaml\n",
|
| 11 |
+
"\n",
|
| 12 |
+
"with open(\"/content/IAekovnI/db/configs/models.yaml\", \"r\") as f:\n",
|
| 13 |
+
" models = yaml.safe_load(f)\n",
|
| 14 |
+
"\n",
|
| 15 |
+
"new_models = {\n",
|
| 16 |
+
" \"sd-1/main/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting\": {\n",
|
| 17 |
+
" \"path\": \"/content/IAekovnI/db/models/sd-1/main/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting.safetensors\",\n",
|
| 18 |
+
" \"config\": \"/content/IAekovnI/db/configs/stable-diffusion/v1-inpainting-inference.yaml\",\n",
|
| 19 |
+
" \"variant\": \"inpaint\",\n",
|
| 20 |
+
" \"format\": \"checkpoint\",\n",
|
| 21 |
+
" },\n",
|
| 22 |
+
"}\n",
|
| 23 |
+
"\n",
|
| 24 |
+
"if \"sd-1/main/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting\" not in models:\n",
|
| 25 |
+
" models.update(new_models)\n",
|
| 26 |
+
"\n",
|
| 27 |
+
"with open(\"/content/IAekovnI/db/configs/models.yaml\", \"w\") as f:\n",
|
| 28 |
+
" yaml.safe_dump(models, f)\n",
|
| 29 |
"\n",
|
| 30 |
"def start_tunnle():\n",
|
| 31 |
" if use_ngrok:\n",
|