Upload 3 files
Browse files- Invoke/INITIAL_MODELS.yaml +127 -0
- Invoke/_main.ipynb +71 -0
- Invoke/_start.ipynb +34 -0
Invoke/INITIAL_MODELS.yaml
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 12 |
+
recommended: False
|
| 13 |
+
default: False
|
| 14 |
+
sd-1/main/stable-diffusion-inpainting:
|
| 15 |
+
description: RunwayML SD 1.5 model optimized for inpainting, diffusers version (4.27 GB)
|
| 16 |
+
repo_id: runwayml/stable-diffusion-inpainting
|
| 17 |
+
recommended: False
|
| 18 |
+
sd-2/main/stable-diffusion-2-1:
|
| 19 |
+
description: Stable Diffusion version 2.1 diffusers model, trained on 768 pixel images (5.21 GB)
|
| 20 |
+
repo_id: stabilityai/stable-diffusion-2-1
|
| 21 |
+
recommended: False
|
| 22 |
+
sd-2/main/stable-diffusion-2-inpainting:
|
| 23 |
+
description: Stable Diffusion version 2.0 inpainting model (5.21 GB)
|
| 24 |
+
repo_id: stabilityai/stable-diffusion-2-inpainting
|
| 25 |
+
recommended: False
|
| 26 |
+
sdxl/main/stable-diffusion-xl-base-1-0:
|
| 27 |
+
description: Stable Diffusion XL base model (12 GB; access token required)
|
| 28 |
+
repo_id: stabilityai/stable-diffusion-xl-base-1.0
|
| 29 |
+
recommended: False
|
| 30 |
+
sdxl-refiner/main/stable-diffusion-xl-refiner-1-0:
|
| 31 |
+
description: Stable Diffusion XL refiner model (12 GB; access token required)
|
| 32 |
+
repo_id: stabilityai/stable-diffusion-xl-refiner-1.0
|
| 33 |
+
recommended: False
|
| 34 |
+
sd-1/main/Analog-Diffusion:
|
| 35 |
+
description: An SD-1.5 model trained on diverse analog photographs (2.13 GB)
|
| 36 |
+
repo_id: wavymulder/Analog-Diffusion
|
| 37 |
+
recommended: False
|
| 38 |
+
sd-1/main/Deliberate:
|
| 39 |
+
description: Versatile model that produces detailed images up to 768px (4.27 GB)
|
| 40 |
+
repo_id: XpucT/Deliberate
|
| 41 |
+
recommended: False
|
| 42 |
+
sd-1/main/Dungeons-and-Diffusion:
|
| 43 |
+
description: Dungeons & Dragons characters (2.13 GB)
|
| 44 |
+
repo_id: 0xJustin/Dungeons-and-Diffusion
|
| 45 |
+
recommended: False
|
| 46 |
+
sd-1/main/dreamlike-photoreal-2:
|
| 47 |
+
description: A photorealistic model trained on 768 pixel images based on SD 1.5 (2.13 GB)
|
| 48 |
+
repo_id: dreamlike-art/dreamlike-photoreal-2.0
|
| 49 |
+
recommended: False
|
| 50 |
+
sd-1/main/Inkpunk-Diffusion:
|
| 51 |
+
description: Stylized illustrations inspired by Gorillaz, FLCL and Shinkawa; prompt with "nvinkpunk" (4.27 GB)
|
| 52 |
+
repo_id: Envvi/Inkpunk-Diffusion
|
| 53 |
+
recommended: False
|
| 54 |
+
sd-1/main/openjourney:
|
| 55 |
+
description: An SD 1.5 model fine tuned on Midjourney; prompt with "mdjrny-v4 style" (2.13 GB)
|
| 56 |
+
repo_id: prompthero/openjourney
|
| 57 |
+
recommended: False
|
| 58 |
+
sd-1/main/portraitplus:
|
| 59 |
+
description: An SD-1.5 model trained on close range portraits of people; prompt with "portrait+" (2.13 GB)
|
| 60 |
+
repo_id: wavymulder/portraitplus
|
| 61 |
+
recommended: False
|
| 62 |
+
sd-1/main/seek.art_MEGA:
|
| 63 |
+
repo_id: coreco/seek.art_MEGA
|
| 64 |
+
description: A general use SD-1.5 "anything" model that supports multiple styles (2.1 GB)
|
| 65 |
+
recommended: False
|
| 66 |
+
sd-1/main/trinart_stable_diffusion_v2:
|
| 67 |
+
description: An SD-1.5 model finetuned with ~40K assorted high resolution manga/anime-style images (2.13 GB)
|
| 68 |
+
repo_id: naclbit/trinart_stable_diffusion_v2
|
| 69 |
+
recommended: False
|
| 70 |
+
sd-1/main/waifu-diffusion:
|
| 71 |
+
description: An SD-1.5 model trained on 680k anime/manga-style images (2.13 GB)
|
| 72 |
+
repo_id: hakurei/waifu-diffusion
|
| 73 |
+
recommended: False
|
| 74 |
+
sd-1/controlnet/canny:
|
| 75 |
+
repo_id: lllyasviel/control_v11p_sd15_canny
|
| 76 |
+
recommended: True
|
| 77 |
+
sd-1/controlnet/inpaint:
|
| 78 |
+
repo_id: lllyasviel/control_v11p_sd15_inpaint
|
| 79 |
+
recommended: False
|
| 80 |
+
sd-1/controlnet/mlsd:
|
| 81 |
+
repo_id: lllyasviel/control_v11p_sd15_mlsd
|
| 82 |
+
recommended: False
|
| 83 |
+
sd-1/controlnet/depth:
|
| 84 |
+
repo_id: lllyasviel/control_v11f1p_sd15_depth
|
| 85 |
+
recommended: True
|
| 86 |
+
sd-1/controlnet/normal_bae:
|
| 87 |
+
repo_id: lllyasviel/control_v11p_sd15_normalbae
|
| 88 |
+
recommended: False
|
| 89 |
+
sd-1/controlnet/seg:
|
| 90 |
+
repo_id: lllyasviel/control_v11p_sd15_seg
|
| 91 |
+
recommended: False
|
| 92 |
+
sd-1/controlnet/lineart:
|
| 93 |
+
repo_id: lllyasviel/control_v11p_sd15_lineart
|
| 94 |
+
recommended: False
|
| 95 |
+
sd-1/controlnet/lineart_anime:
|
| 96 |
+
repo_id: lllyasviel/control_v11p_sd15s2_lineart_anime
|
| 97 |
+
recommended: False
|
| 98 |
+
sd-1/controlnet/openpose:
|
| 99 |
+
repo_id: lllyasviel/control_v11p_sd15_openpose
|
| 100 |
+
recommended: False
|
| 101 |
+
sd-1/controlnet/scribble:
|
| 102 |
+
repo_id: lllyasviel/control_v11p_sd15_scribble
|
| 103 |
+
recommended: False
|
| 104 |
+
sd-1/controlnet/softedge:
|
| 105 |
+
repo_id: lllyasviel/control_v11p_sd15_softedge
|
| 106 |
+
recommended: False
|
| 107 |
+
sd-1/controlnet/shuffle:
|
| 108 |
+
repo_id: lllyasviel/control_v11e_sd15_shuffle
|
| 109 |
+
recommended: False
|
| 110 |
+
sd-1/controlnet/tile:
|
| 111 |
+
repo_id: lllyasviel/control_v11f1e_sd15_tile
|
| 112 |
+
recommended: False
|
| 113 |
+
sd-1/controlnet/ip2p:
|
| 114 |
+
repo_id: lllyasviel/control_v11e_sd15_ip2p
|
| 115 |
+
recommended: False
|
| 116 |
+
sd-1/embedding/EasyNegative:
|
| 117 |
+
path: https://huggingface.co/embed/EasyNegative/resolve/main/EasyNegative.safetensors
|
| 118 |
+
recommended: True
|
| 119 |
+
sd-1/embedding/ahx-beta-453407d:
|
| 120 |
+
repo_id: sd-concepts-library/ahx-beta-453407d
|
| 121 |
+
recommended: False
|
| 122 |
+
sd-1/lora/LowRA:
|
| 123 |
+
path: https://civitai.com/api/download/models/63006
|
| 124 |
+
recommended: True
|
| 125 |
+
sd-1/lora/Ink scenery:
|
| 126 |
+
path: https://civitai.com/api/download/models/83390
|
| 127 |
+
recommended: False
|
Invoke/_main.ipynb
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": null,
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"outputs": [],
|
| 8 |
+
"source": [
|
| 9 |
+
"import os\n",
|
| 10 |
+
"from IPython.display import clear_output\n",
|
| 11 |
+
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/libtcmalloc_minimal.so.4\n",
|
| 12 |
+
"os.environ['LD_PRELOAD'] = '/content/libtcmalloc_minimal.so.4'\n",
|
| 13 |
+
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/voltaml/_start1.ipynb\n",
|
| 14 |
+
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/voltaml/_start2.ipynb\n",
|
| 15 |
+
"\n",
|
| 16 |
+
"clear_output()\n",
|
| 17 |
+
"\n"
|
| 18 |
+
]
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"cell_type": "code",
|
| 22 |
+
"execution_count": null,
|
| 23 |
+
"metadata": {},
|
| 24 |
+
"outputs": [],
|
| 25 |
+
"source": [
|
| 26 |
+
"import os\n",
|
| 27 |
+
"from IPython.display import clear_output\n",
|
| 28 |
+
"%cd /content\n",
|
| 29 |
+
"# 克隆 InvokeAI 的 GitHub 仓库\n",
|
| 30 |
+
"!git clone -b main https://github.com/Van-wise/IAekovnI\n",
|
| 31 |
+
"# 安装所需的 Python 包\n",
|
| 32 |
+
"!pip install -q dependency_injector diffusers einops eventlet facexlib flask_cors flask_socketio flaskwebgui getpass_asterisk huggingface-hub\n",
|
| 33 |
+
"!pip install -q kornia omegaconf pudb pyreadline3 pytorch-lightning realesrgan streamlit taming-transformers-rom1504 test-tube torch-fidelity\n",
|
| 34 |
+
"!pip install -q torchmetrics transformers picklescan\n",
|
| 35 |
+
"!pip install -q pillow xformers==0.0.20 triton==2.0.0 -U\n",
|
| 36 |
+
"clear_output()\n",
|
| 37 |
+
"# 克隆预处理器的GitHub仓库\n",
|
| 38 |
+
"!pip install -q git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan\n",
|
| 39 |
+
"!pip install -q git+https://github.com/openai/CLIP.git@main#egg=clip\n",
|
| 40 |
+
"!pip install -q git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k-diffusion\n",
|
| 41 |
+
"!pip install -q git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg\n",
|
| 42 |
+
"!pip install -q git+https://github.com/invoke-ai/PyPatchMatch@0.1.4#egg=pypatchmatch\n",
|
| 43 |
+
"\n",
|
| 44 |
+
"%cd /content/IAekovnI/\n",
|
| 45 |
+
"!pip install -q -e .\n",
|
| 46 |
+
"clear_output()\n",
|
| 47 |
+
"print('依赖安装完成!')\n",
|
| 48 |
+
"\n",
|
| 49 |
+
"# 模型下载\n",
|
| 50 |
+
"!wget https://raw.githubusercontent.com/rocketpal/InvokeAI-colab/main/INITIAL_MODELS.yaml -O /content/IAekovnI/invokeai/configs/INITIAL_MODELS.yaml\n",
|
| 51 |
+
"!python /content/IAekovnI/scripts/invokeai-model-install.py --root_dir /content/IAekovnI/db --yes\n",
|
| 52 |
+
"\n",
|
| 53 |
+
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/libtcmalloc_minimal.so.4\n",
|
| 54 |
+
"os.environ['LD_PRELOAD'] = '/content/libtcmalloc_minimal.so.4'\n",
|
| 55 |
+
"\n",
|
| 56 |
+
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/voltaml/_start1.ipynb\n",
|
| 57 |
+
"!wget https://huggingface.co/Vanwise/sd-colab/resolve/main/voltaml/_start2.ipynb\n",
|
| 58 |
+
"\n",
|
| 59 |
+
"clear_output()\n",
|
| 60 |
+
"print('模型下载完成!')"
|
| 61 |
+
]
|
| 62 |
+
}
|
| 63 |
+
],
|
| 64 |
+
"metadata": {
|
| 65 |
+
"language_info": {
|
| 66 |
+
"name": "python"
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"nbformat": 4,
|
| 70 |
+
"nbformat_minor": 2
|
| 71 |
+
}
|
Invoke/_start.ipynb
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": null,
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"outputs": [],
|
| 8 |
+
"source": [
|
| 9 |
+
"import threading\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"def start_tunnle():\n",
|
| 12 |
+
" if use_ngrok:\n",
|
| 13 |
+
" from pyngrok import ngrok\n",
|
| 14 |
+
" ngrok_tunnel = ngrok.connect(9090, \"http\")\n",
|
| 15 |
+
" print(\"ngrok_tunnel:\", ngrok_tunnel)\n",
|
| 16 |
+
" if use_cloudflare:\n",
|
| 17 |
+
" from pycloudflared import try_cloudflare\n",
|
| 18 |
+
" cloudflare_url = try_cloudflare(9090, verbose=False)\n",
|
| 19 |
+
" print(\"cloudflare_tunnel:\", cloudflare_url)\n",
|
| 20 |
+
"\n",
|
| 21 |
+
"threading.Thread(target=start_tunnle, daemon=True).start()\n",
|
| 22 |
+
"\n",
|
| 23 |
+
"!python /content/IAekovnI/scripts/invokeai-web.py --root /content/IAekovnI/db"
|
| 24 |
+
]
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"metadata": {
|
| 28 |
+
"language_info": {
|
| 29 |
+
"name": "python"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
"nbformat": 4,
|
| 33 |
+
"nbformat_minor": 2
|
| 34 |
+
}
|