File size: 54,422 Bytes
033933c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "uB4rIONAbz3F"
},
"source": [
"<center>\n",
"\n",
"`Terakhir diperbarui : 9 SEPTEMBER 2023 | 12.34 WIB INDONESIA`\n",
"\n",
"<img src=\"https://camo.githubusercontent.com/82291b0fe831bfc6781e07fc5090cbd0a8b912bb8b8d4fec0696c881834f81ac/68747470733a2f2f70726f626f742e6d656469612f394575424971676170492e676966\" width=\"800\" height=\"3\">\n",
"\n",
"\n",
"<font color=\"#CC3E3E\"><font size=\"6\"><u><b>PERHATIAN</b></u>\n",
"\n",
"Dikarenakan peraturan google collab yang terbaru <b><a href=\"https://research.google.com/colaboratory/faq.html#limitations-and-restrictions\"> Google Colab ToS</a></b> dan <b><a href=\"https://twitter.com/thechrisperry/status/1649189902079381505\"> Official Statement</a></b>, diharapkan jangan menjalankan script jika terdapat warning sebagai berikut\n",
"\n",
"\n",
"\n",
"saya tidak bertanggung jawab apabila anda tetap menjalankan dan akun anda ditangguhkan sehingga tidak bisa menggunakan google colab dalam jangka waktu yang ditentukan google.\n",
"\n",
"\n",
"<img src=\"https://camo.githubusercontent.com/82291b0fe831bfc6781e07fc5090cbd0a8b912bb8b8d4fec0696c881834f81ac/68747470733a2f2f70726f626f742e6d656469612f394575424971676170492e676966\" width=\"800\" height=\"3\">"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "upiFioaJfziP"
},
"source": [
"# **Jangan lupa dibaca sampai bawah**\n",
"untuk menjalankan script ini tidak diperlukan spek tinggi karena menggunakan layanan berbasis cloud milik google. untuk kecepatan download file tergantung koneksi internet google dan juga banyaknya file yang didownload"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "VNi70r9E4nPM"
},
"source": [
"> <font color=\"#00CED1\">**INFORMASI**:</font>\n",
"\n",
"1. Karena adanya [Kebijakan] dan [Pernyataan Resmi][pernyataanresmi] Google Colab yang baru, sebagai pengguna google colab gratis akan dibatasi untuk penggunaan GPU dan CUDA***(komputasinya dibatasi)***\n",
"2. Jika akun sudah limit pemakaian google colab akun tersebut akan bisa dipakai lagi dalam waktu 24 jam kedepan.\n",
"(1 akun google memiliki batas 12 jam pemakiaan)\n",
"3. Dengan mengganti akun google yang dipakai akan mereset limit pemakaian, tetapi ada batasan jumlah pergantian penggunaan secara wajar (maksimal 3 akun, usahakan jangan lebih)\n",
"4. ~Google Colab Alternatife V2.1 mengambil Referensi Google Colab milik [Adiim EF] dan Milik [NoCrypt]~\n",
"5. Google Colab Alternatife V2.2 mengambil Referensi Google Colab milik [Linaqruf][Linaqruf]\n",
"\n",
"\n",
"\n",
"[kebijakan]: https://research.google.com/colaboratory/faq.html#limitations-and-restrictions\n",
"[adiim ef]: https://www.facebook.com/Adiim.EF\n",
"[NoCrypt]:https://github.com/NoCrypt\n",
"[pernyataanresmi]: https://twitter.com/thechrisperry/status/1649189902079381505\n",
"[Linaqruf]:https://github.com/Linaqruf\n",
"---\n",
"\n",
"> <font color=\"#CC3E3E\">**PERINGATAN**:</font>\n",
"\n",
"Jangan pernah sering mengganti akun untuk mengatasi limit pengguaan google colab, karena itu sudah termasuk dalam pelanggaran dalam [kebijakan baru][baru] (usahakan tidak menggunakan lebih dari 3 akun)\n",
"\n",
"[baru]:https://research.google.com/colaboratory/intl/id/faq.html\n",
"---\n",
"\n",
"\n",
"\n",
"> <font color=\"#00CER1\">**NOTEBOOK COLLECTION**:</font>\n",
"\n",
"| Koleksi Catatan | Deskripsi | Link |\n",
"| --- | --- | --- |\n",
"| [Fast_stable_diffusion_AUTOMATIC1111](https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb)<font color=\"#CC3E3E\">*Belum Stabil*</font> | Stable Diffuson V1.5 (TheLastBen) | [](https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb) | [](https://colab.research.google.com/github/Linaqruf/kohya-trainer/blob/main/kohya-LoRA-dreambooth.ipynb) |\n",
"| [Satu Klik Stable Diffusion](https://colab.research.google.com/drive/1LFohDgoe1U3rYwbAUFSLp1K6yM1QNG6i?usp=sharing) <font color=\"#7FFF00\">*Fix Update*</font>| Stable Diffuson V1.5 | [](https://colab.research.google.com/drive/1LFohDgoe1U3rYwbAUFSLp1K6yM1QNG6i?usp=sharing) |\n",
"| [Membuat LoRA](https://colab.research.google.com/drive/1wo3hz402iQTb1ilz6zv6g1sotMlM-qoS?usp=sharing) <font color=\"#CC3E3E\">**(TAHAP PERBAIKAN)**</font> | Google Colab Membuat LoRA | [](https://colab.research.google.com/drive/1wo3hz402iQTb1ilz6zv6g1sotMlM-qoS?usp=sharing) |\n",
"| [Kohya LoRA Dreambooth](https://colab.research.google.com/github/Linaqruf/kohya-trainer/blob/main/kohya-LoRA-dreambooth.ipynb) <font color=\"#7FFF00\">*Normal*</font>| Membuat LoRA (Linaqruf) | [](https://colab.research.google.com/github/Linaqruf/kohya-trainer/blob/main/kohya-LoRA-dreambooth.ipynb) |\n",
"| [Kohya LoRA Finetuner](https://colab.research.google.com/github/Linaqruf/kohya-trainer/blob/main/kohya-LoRA-finetuner.ipynb) <font color=\"#7FFF00\">*Normal*</font>| Membuat LoRA 2 (Linaqruf) | [](https://colab.research.google.com/github/Linaqruf/kohya-trainer/blob/main/kohya-LoRA-finetuner.ipynb) |\n",
"| [Fast SD Chilloutmix](https://colab.research.google.com/drive/1Ty7uB6kZa_cfraZG-G6Rzu3B_spunJFy?usp=sharing) <font color=\"#7FFF00\">*Normal*</font>| Stable Diffuson V1 | [](https://colab.research.google.com/drive/1Ty7uB6kZa_cfraZG-G6Rzu3B_spunJFy?usp=sharing) |\n",
"| [Fast SD Shadow Garden](https://colab.research.google.com/drive/1zfLPHL7MKvFtIBxUezF0O_SVb6yS6W6I?usp=sharing) <font color=\"#7FFF00\">*Normal*</font>|Stable Diffusion V1|[](https://colab.research.google.com/drive/1zfLPHL7MKvFtIBxUezF0O_SVb6yS6W6I?usp=sharing)|\n",
"| [A1 Alternatif V2.1](https://colab.research.google.com/drive/1zxSTb-olxIfJeBslZL6H967_vEnzlGZi?usp=sharing) <font color=\"#7FFF00\">*Fix Update*</font>| Stable Diffuson V2.1 | [](https://colab.research.google.com/drive/1zxSTb-olxIfJeBslZL6H967_vEnzlGZi?usp=sharing) |\n",
"| [A2 Alternatif Spesial ](https://colab.research.google.com/drive/1pTC4P17ZkFKAxNX2UVnwU0c6bn8DRWwv?usp=sharing) <font color=\"#7FFF00\">*Fix Update*</font>| Stable Diffuson V2.2 | [](https://colab.research.google.com/drive/1pTC4P17ZkFKAxNX2UVnwU0c6bn8DRWwv?usp=sharing)|\n",
"| [Alternatif Spesial `KHUSUS SAWERIA`](https://colab.research.google.com/drive/1cRZwgt0WvJCDML4OI860fYKF2HaDW6SY?usp=sharing) <font color=\"#7FFF00\">*Fix Update*</font>| Stable Diffuson V2.2 | [](https://colab.research.google.com/drive/1cRZwgt0WvJCDML4OI860fYKF2HaDW6SY?usp=sharing) |\n",
"| [Alternatif Spesial Satu Klik](https://colab.research.google.com/drive/1LjOYLyFgaeB2CAXVgmfkuK5mQ3XoAIRI#scrollTo=VNi70r9E4nPM) <font color=\"#7FFF00\">*Fix Update*</font>| Stable Diffuson V2.2 | [](https://colab.research.google.com/drive/1LjOYLyFgaeB2CAXVgmfkuK5mQ3XoAIRI#scrollTo=VNi70r9E4nPM) |\n",
"|[Cagliostro-Colab-UI](https://colab.research.google.com/github/Linaqruf/sd-notebook-collection/blob/main/cagliostro-colab-ui.ipynb#scrollTo=SaAJk33ppFw1) <font color=\"#FFD700\">*Has stopped updating*</font>|Linaqruf Stable Diffusion|[](https://colab.research.google.com/github/Linaqruf/sd-notebook-collection/blob/main/cagliostro-colab-ui.ipynb#scrollTo=SaAJk33ppFw1)|\n",
"| [Huggingface Collection Galery](https://huggingface.co/spaces/huggingface-projects/diffusers-gallery) | Koleksi Galeri Huggingface | [](https://huggingface.co/spaces/huggingface-projects/diffusers-gallery)|\n",
"| [VAE Collection](https://huggingface.co/vorstcavry/vaecollection1/tree/main)| Koleksi VAE | [](https://huggingface.co/vorstcavry/vaecollection/tree/main)|\n",
"| [AI Voice Changer](https://huggingface.co/spaces/vorstcavry/vits-models) | AI Pengubah Suara | [](https://huggingface.co/spaces/vorstcavry/vits-models)|\n",
"| [AI Remove Background](https://huggingface.co/spaces/vorstcavry/anime-remove-background) | AI Penghapus Background | [](https://huggingface.co/spaces/vorstcavry/anime-remove-background)|\n",
"| [Stable Diffusion Extension](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Extensions) | Extension Stable Diffusion |[](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Extensions)|\n",
"\n",
"---"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "t5hAbVBXc8pw"
},
"source": [
"<CENTER><font color=\"#CC3E3E\"><font size=\"6\"><u><b>PERINGATAN</b></u><CENTER>\n",
"DILARANG KERAS MENYEBARKAN GAMBAR DENGAN KONTEN NSFW REALISIC KE MEDIA SOSIAL"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "fXIRZfPj1jYQ"
},
"source": [
"<center>\n",
"\n",
"#<font color=\"#FFD700\">***STABLE DIFFUSION SATU KLIK***</font>\n",
"\n",
"<img src=\"https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif\" width=\"800\" height=\"18\">\n",
"\n",
"\n",
"\n",
"*Bagi yang mau support saya bisa menuju Saweria, KO-FI dan Trakteer dibawah ini*\n",
"\n",
"*For those who want to support me, you can go to Saweria, KO-FI and Trakteer below*\n",
"\n",
" <a href=\"https://saweria.co/VorstCavry\"><img alt=\"Saweria\" src=\"https://img.shields.io/badge/Saweria-7B3F00?style=for-the-badge&logo=ko-fi&logoColor=white\"/></a> <a href=\"https://ko-fi.com/vorstcavry\"><img alt=\"KO-FI\" src=\"https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white \"/></a> <a href=\"https://trakteer.id/vorstcavry/tip\"><img alt=\"YOUTUBE\" src=\"https://img.shields.io/badge/trakteer-F16061?style=for-the-badge&logo=buy-me-a-coffee&logoColor=white\"/></a><a href=\"https://wa.me/6285726996330\"><img alt=\"Whatsapp\" src=\"https://img.shields.io/badge/WhatsApp-25D366?style=for-the-badge&logo=whatsapp&logoColor=white\"/></a> <a href=\"https://www.youtube.com/@remajapekalongan\"><img alt=\"YOUTUBE\" src=\"https://img.shields.io/badge/YouTube-%23FF0000?style=for-the-badge&logo=YouTube&logoColor=white\"/></a>\n",
"<a href=\"https://www.paypal.com/paypalme/vorstcavry?country.x=ID&locale.x=id_ID\"><img alt=\"PAYPAL\" src=\"https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white\"/></a>\n",
"<a href=\"https://www.instagram.com/vorst_cavry/\"><img alt=\"INSTAGRAM\" src=\"https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge&logo=instagram&logoColor=white\"/></a><a href=\"https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2Fvorstcavry\"><img src=\"https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Fvorstcavry&label=VISITORS&countColor=%23263759&labelStyle=none\" /></a>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "code",
"id": "caeYrAXcZCQv"
},
"outputs": [],
"source": [
"from IPython.display import HTML, display\n",
"\n",
"def display_text_box(content, width=\"485px\", height=\"30px\"):\n",
" html_content = f'''\n",
" <div style=\"\n",
" display: flex;\n",
" align-items: center;\n",
" justify-content: center;\n",
" border: 2px solid #ccc;\n",
" background-color: #007bff;\n",
" width: {width};\n",
" height: {height};\n",
" color: white;\n",
" font-weight: bold;\n",
" text-align: center;\n",
" \">{content}</div>\n",
" '''\n",
" display(HTML(html_content))\n",
"\n",
"text_content = \"Terima kasih Telah Menggunakan Notebook google colab StableDiffusion milik Remaja Pekalongan.\"\n",
"\n",
"display_text_box(text_content, width=\"485px\", height=\"30px\")\n",
"\n",
"from IPython.display import HTML, Image\n",
"\n",
"def display_image():\n",
" image_url = \"https://i.postimg.cc/Pf3XXMsP/Cuplikan-layar-2023-07-30-165548.png\"\n",
" image_html = f'<a href=\"https://www.youtube.com/@remajapekalongan\" target=\"_blank\"><img src=\"{image_url}\" width=\"489\" height=\"172\"></a>'\n",
"\n",
" display(HTML(image_html))\n",
"\n",
"display_image()\n",
"from IPython.display import HTML\n",
"\n",
"def create_button_with_link(label, link):\n",
" button_id = label.lower().replace(\" \", \"_\")\n",
" return f'''\n",
" <style>\n",
" #{button_id} {{\n",
" width: 119px;\n",
" height: 40px;\n",
" background-color: #007bff;\n",
" color: white;\n",
" border: 2px solid #ccc;\n",
" cursor: pointer;\n",
" transition: background-color 0.3s;\n",
" }}\n",
" #{button_id}:hover {{\n",
" background-color: #0056b3;\n",
" }}\n",
" </style>\n",
" <a href=\"{link}\" target=\"_blank\" style=\"text-decoration: none;\">\n",
" <button id=\"{button_id}\">{label}</button>\n",
" </a>\n",
" '''\n",
"\n",
"subscribe_button = create_button_with_link(\"Subscribe\", \"https://www.youtube.com/@remajapekalongan\")\n",
"support_button = create_button_with_link(\"Support\", \"https://ko-fi.com/vorstcavry\")\n",
"saweria_button = create_button_with_link(\"Saweria\", \"https://http://saweria.co/vorstcavry\")\n",
"discord_button = create_button_with_link(\"Discord\", \"https://discord.gg/fg9kvMqUmD\")\n",
"\n",
"buttons_html = f'<div>{subscribe_button} {support_button} {saweria_button} {discord_button}</div>'\n",
"display(HTML(buttons_html))\n",
"\n",
"%cd /content\n",
"\n",
"%env TF_CPP_MIN_LOG_LEVEL=1\n",
"\n",
"!apt -y update -qq\n",
"!wget https://github.com/camenduru/gperftools/releases/download/v1.0/libtcmalloc_minimal.so.4 -O /content/libtcmalloc_minimal.so.4\n",
"%env LD_PRELOAD=/content/libtcmalloc_minimal.so.4\n",
"\n",
"!apt -y install -qq aria2 libcairo2-dev pkg-config python3-dev\n",
"!pip install -q torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118 -U\n",
"!pip install -q xformers==0.0.20 triton==2.0.0 gradio_client==0.2.7 -U\n",
"\n",
"!git clone -b v2.4 https://github.com/camenduru/stable-diffusion-webui /content/vorst-cavry\n",
"!git clone https://github.com/vorstcavry/vorstcavry-tunnels /content/vorst-cavry/extensions/tunnels\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth -d /content/vorst-cavry/models/ESRGAN -o 4x-UltraSharp.pth\n",
"!wget https://raw.githubusercontent.com/vorstcavry/s-scripts/main/run_n_times.py -O /content/vorst-cavry/scripts/run_n_times.py\n",
"#install-bahan-dasar\n",
"!git clone https://github.com/vorstcavry/lora /content/vorst-cavry/models/Lora/Lora-set\n",
"!git clone https://github.com/vorstcavry/embeddings /content/vorst-cavry/embeddings/negative\n",
"!git clone https://github.com/vorstcavry/Checkpoint-Model /content/vorst-cavry/models/Stable-diffusion/Checkpoint-Model\n",
"#menghapus git\n",
"!rm -rf /content/vorst-cavry/models/Stable-diffusion/Checkpoint-Model/.git\n",
"!rm -rf /content/vorst-cavry/embeddings/negative/.git\n",
"!rm -rf /content/vorst-cavry/models/Lora/Lora-set/.git\n",
"#install-ekstension\n",
"%cd /content/vorst-cavry/extensions\n",
"!git clone https://tinyurl.com/controlnet-s\n",
"!git clone https://tinyurl.com/depth-lib-hand\n",
"!git clone https://github.com/hnmr293/posex\n",
"!git clone https://github.com/BlafKing/sd-civitai-browser-plus\n",
"!git clone https://github.com/vorstcavry/images-browser\n",
"!git clone https://github.com/Iyashinouta/sd-model-downloader\n",
"!git clone https://github.com/IDEA-Research/DWPose\n",
"!git clone https://tinyurl.com/additional-networks-s\n",
"!git clone https://github.com/fkunn1326/openpose-editor\n",
"!git clone https://tinyurl.com/openpose-edit\n",
"!git clone https://github.com/NoCrypt/inpaint-nav\n",
"!git clone https://tinyurl.com/tagcomplete-1111\n",
"!git clone https://tinyurl.com/batchlink-download\n",
"!git clone https://tinyurl.com/catppuccin-themes-v\n",
"!git clone https://tinyurl.com/aspect-ratio-v\n",
"!git clone https://github.com/Bing-su/adetailer.git\n",
"\n",
"%cd /content/vorst-cavry\n",
"\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11e_sd15_ip2p.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11f1p_sd15_depth_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11f1p_sd15_depth.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_canny_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11p_sd15_canny.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11p_sd15_inpaint.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_lineart_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11f1p_sd15_depth.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11p_sd15_mlsd.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11p_sd15_normalbae.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_openpose_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11p_sd15_openpose.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_scribble_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11p_sd15_scribble.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_seg_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11p_sd15_seg.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_softedge_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11p_sd15_softedge.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11p_sd15s2_lineart_anime.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11f1e_sd15_tile_fp16.safetensors -d /content/vorst-cavry/models/ControlNet -o control_v11f1e_sd15_tile_fp16.safetensors\n",
"\n",
"#install-vae-untuk-model-checkpoint-yang-akan-dipakai\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt -d /content/vorst-cavry/models/VAE -o vae-ft-mse-840000-ema-pruned.ckpt\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vorstcavry/vaecollection1/resolve/main/testclearvae.safetensors -d /content/vorst-cavry/models/VAE -o testclearvae.safetensors\n",
"\n",
"#install-lora\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vorstcavry/loraasia1/resolve/main/japaneseDollLikeness_v15.safetensors -d /content/vorst-cavry/models/Lora/Lora-set -o japaneseDollLikeness_v15.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vorstcavry/loraasia1/resolve/main/koreanDollLikeness_v20.safetensors -d /content/vorst-cavry/models/Lora/Lora-set -o koreanDollLikeness_v20.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vorstcavry/loraasia1/resolve/main/taiwanDollLikeness_v15.safetensors -d /content/vorst-cavry/models/Lora/Lora-set -o taiwanDollLikeness_v15.safetensors\n",
"\n",
"#install-Checkpoint\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/majicmix-realistic/resolve/main/majicmixRealistic_v4.safetensors -d /content/vorst-cavry/models/Stable-diffusion -o majicmixRealistic_v4.safetensors\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/Cinnamomo/pcia/resolve/main/safetensor/pcia_camellia2_5d.safetensors -d /content/vorst-cavry/models/Stable-diffusion -o pcia_camellia2_5d.safetensors\n",
"#intsall-Preview-Checkpoint\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vorstcavry/LoRA-set1/resolve/main/ChilloutMix-ni-fp16.preview.png -d /content/vorst-cavry/models/Stable-diffusion -o ChilloutMix-ni-fp16.preview.png\n",
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vorstcavry/mymodel1/resolve/main/Cavry_V2.preview.png -d /content/vorst-cavry/models/Stable-diffusion -o Cavry_V2.preview.png\n",
"\n",
"\n",
"!sed -i -e '''/from modules import launch_utils/a\\import os''' /content/vorst-cavry/launch.py\n",
"!sed -i -e '''/ prepare_environment()/a\\ os.system\\(f\\\"\"\"sed -i -e ''\\\"s/dict()))/dict())).cuda()/g\\\"'' /content/vorst-cavry/repositories/stable-diffusion-stability-ai/ldm/util.py\"\"\")''' /content/vorst-cavry/launch.py\n",
"!sed -i -e 's/\\[\"sd_model_checkpoint\"\\]/\\[\"sd_model_checkpoint\",\"sd_vae\",\"CLIP_stop_at_last_layers\"\\]/g' /content/vorst-cavry/modules/shared.py\n",
"\n",
"!python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple\n"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
} |