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|
| 6 |
+
"id": "uB4rIONAbz3F"
|
| 7 |
+
},
|
| 8 |
+
"source": [
|
| 9 |
+
"<center>\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"`Terakhir diperbarui : 9 SEPTEMBER 2023 | 12.34 WIB INDONESIA`\n",
|
| 12 |
+
"\n",
|
| 13 |
+
"<img src=\"https://camo.githubusercontent.com/82291b0fe831bfc6781e07fc5090cbd0a8b912bb8b8d4fec0696c881834f81ac/68747470733a2f2f70726f626f742e6d656469612f394575424971676170492e676966\" width=\"800\" height=\"3\">\n",
|
| 14 |
+
"\n",
|
| 15 |
+
"\n",
|
| 16 |
+
"<font color=\"#CC3E3E\"><font size=\"6\"><u><b>PERHATIAN</b></u>\n",
|
| 17 |
+
"\n",
|
| 18 |
+
"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",
|
| 19 |
+
"\n",
|
| 20 |
+
"\n",
|
| 21 |
+
"\n",
|
| 22 |
+
"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",
|
| 23 |
+
"\n",
|
| 24 |
+
"\n",
|
| 25 |
+
"<img src=\"https://camo.githubusercontent.com/82291b0fe831bfc6781e07fc5090cbd0a8b912bb8b8d4fec0696c881834f81ac/68747470733a2f2f70726f626f742e6d656469612f394575424971676170492e676966\" width=\"800\" height=\"3\">"
|
| 26 |
+
]
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"cell_type": "markdown",
|
| 30 |
+
"metadata": {
|
| 31 |
+
"id": "upiFioaJfziP"
|
| 32 |
+
},
|
| 33 |
+
"source": [
|
| 34 |
+
"# **Jangan lupa dibaca sampai bawah**\n",
|
| 35 |
+
"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"
|
| 36 |
+
]
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"cell_type": "markdown",
|
| 40 |
+
"metadata": {
|
| 41 |
+
"id": "VNi70r9E4nPM"
|
| 42 |
+
},
|
| 43 |
+
"source": [
|
| 44 |
+
"> <font color=\"#00CED1\">**INFORMASI**:</font>\n",
|
| 45 |
+
"\n",
|
| 46 |
+
"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",
|
| 47 |
+
"2. Jika akun sudah limit pemakaian google colab akun tersebut akan bisa dipakai lagi dalam waktu 24 jam kedepan.\n",
|
| 48 |
+
"(1 akun google memiliki batas 12 jam pemakiaan)\n",
|
| 49 |
+
"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",
|
| 50 |
+
"4. ~Google Colab Alternatife V2.1 mengambil Referensi Google Colab milik [Adiim EF] dan Milik [NoCrypt]~\n",
|
| 51 |
+
"5. Google Colab Alternatife V2.2 mengambil Referensi Google Colab milik [Linaqruf][Linaqruf]\n",
|
| 52 |
+
"\n",
|
| 53 |
+
"\n",
|
| 54 |
+
"\n",
|
| 55 |
+
"[kebijakan]: https://research.google.com/colaboratory/faq.html#limitations-and-restrictions\n",
|
| 56 |
+
"[adiim ef]: https://www.facebook.com/Adiim.EF\n",
|
| 57 |
+
"[NoCrypt]:https://github.com/NoCrypt\n",
|
| 58 |
+
"[pernyataanresmi]: https://twitter.com/thechrisperry/status/1649189902079381505\n",
|
| 59 |
+
"[Linaqruf]:https://github.com/Linaqruf\n",
|
| 60 |
+
"---\n",
|
| 61 |
+
"\n",
|
| 62 |
+
"> <font color=\"#CC3E3E\">**PERINGATAN**:</font>\n",
|
| 63 |
+
"\n",
|
| 64 |
+
"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",
|
| 65 |
+
"\n",
|
| 66 |
+
"[baru]:https://research.google.com/colaboratory/intl/id/faq.html\n",
|
| 67 |
+
"---\n",
|
| 68 |
+
"\n",
|
| 69 |
+
"\n",
|
| 70 |
+
"\n",
|
| 71 |
+
"> <font color=\"#00CER1\">**NOTEBOOK COLLECTION**:</font>\n",
|
| 72 |
+
"\n",
|
| 73 |
+
"| Koleksi Catatan | Deskripsi | Link |\n",
|
| 74 |
+
"| --- | --- | --- |\n",
|
| 75 |
+
"| [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",
|
| 76 |
+
"| [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",
|
| 77 |
+
"| [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",
|
| 78 |
+
"| [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",
|
| 79 |
+
"| [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",
|
| 80 |
+
"| [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",
|
| 81 |
+
"| [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",
|
| 82 |
+
"| [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",
|
| 83 |
+
"| [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",
|
| 84 |
+
"| [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",
|
| 85 |
+
"| [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",
|
| 86 |
+
"|[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",
|
| 87 |
+
"| [Huggingface Collection Galery](https://huggingface.co/spaces/huggingface-projects/diffusers-gallery) | Koleksi Galeri Huggingface | [](https://huggingface.co/spaces/huggingface-projects/diffusers-gallery)|\n",
|
| 88 |
+
"| [VAE Collection](https://huggingface.co/vorstcavry/vaecollection1/tree/main)| Koleksi VAE | [](https://huggingface.co/vorstcavry/vaecollection/tree/main)|\n",
|
| 89 |
+
"| [AI Voice Changer](https://huggingface.co/spaces/vorstcavry/vits-models) | AI Pengubah Suara | [](https://huggingface.co/spaces/vorstcavry/vits-models)|\n",
|
| 90 |
+
"| [AI Remove Background](https://huggingface.co/spaces/vorstcavry/anime-remove-background) | AI Penghapus Background | [](https://huggingface.co/spaces/vorstcavry/anime-remove-background)|\n",
|
| 91 |
+
"| [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",
|
| 92 |
+
"\n",
|
| 93 |
+
"---"
|
| 94 |
+
]
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"cell_type": "markdown",
|
| 98 |
+
"metadata": {
|
| 99 |
+
"id": "t5hAbVBXc8pw"
|
| 100 |
+
},
|
| 101 |
+
"source": [
|
| 102 |
+
"<CENTER><font color=\"#CC3E3E\"><font size=\"6\"><u><b>PERINGATAN</b></u><CENTER>\n",
|
| 103 |
+
"DILARANG KERAS MENYEBARKAN GAMBAR DENGAN KONTEN NSFW REALISIC KE MEDIA SOSIAL"
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"cell_type": "markdown",
|
| 108 |
+
"metadata": {
|
| 109 |
+
"id": "fXIRZfPj1jYQ"
|
| 110 |
+
},
|
| 111 |
+
"source": [
|
| 112 |
+
"<center>\n",
|
| 113 |
+
"\n",
|
| 114 |
+
"#<font color=\"#FFD700\">***STABLE DIFFUSION SATU KLIK***</font>\n",
|
| 115 |
+
"\n",
|
| 116 |
+
"<img src=\"https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif\" width=\"800\" height=\"18\">\n",
|
| 117 |
+
"\n",
|
| 118 |
+
"\n",
|
| 119 |
+
"\n",
|
| 120 |
+
"*Bagi yang mau support saya bisa menuju Saweria, KO-FI dan Trakteer dibawah ini*\n",
|
| 121 |
+
"\n",
|
| 122 |
+
"*For those who want to support me, you can go to Saweria, KO-FI and Trakteer below*\n",
|
| 123 |
+
"\n",
|
| 124 |
+
" <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",
|
| 125 |
+
"<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",
|
| 126 |
+
"<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>"
|
| 127 |
+
]
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"cell_type": "code",
|
| 131 |
+
"execution_count": null,
|
| 132 |
+
"metadata": {
|
| 133 |
+
"cellView": "code",
|
| 134 |
+
"id": "caeYrAXcZCQv"
|
| 135 |
+
},
|
| 136 |
+
"outputs": [],
|
| 137 |
+
"source": [
|
| 138 |
+
"from IPython.display import HTML, display\n",
|
| 139 |
+
"\n",
|
| 140 |
+
"def display_text_box(content, width=\"485px\", height=\"30px\"):\n",
|
| 141 |
+
" html_content = f'''\n",
|
| 142 |
+
" <div style=\"\n",
|
| 143 |
+
" display: flex;\n",
|
| 144 |
+
" align-items: center;\n",
|
| 145 |
+
" justify-content: center;\n",
|
| 146 |
+
" border: 2px solid #ccc;\n",
|
| 147 |
+
" background-color: #007bff;\n",
|
| 148 |
+
" width: {width};\n",
|
| 149 |
+
" height: {height};\n",
|
| 150 |
+
" color: white;\n",
|
| 151 |
+
" font-weight: bold;\n",
|
| 152 |
+
" text-align: center;\n",
|
| 153 |
+
" \">{content}</div>\n",
|
| 154 |
+
" '''\n",
|
| 155 |
+
" display(HTML(html_content))\n",
|
| 156 |
+
"\n",
|
| 157 |
+
"text_content = \"Terima kasih Telah Menggunakan Notebook google colab StableDiffusion milik Remaja Pekalongan.\"\n",
|
| 158 |
+
"\n",
|
| 159 |
+
"display_text_box(text_content, width=\"485px\", height=\"30px\")\n",
|
| 160 |
+
"\n",
|
| 161 |
+
"from IPython.display import HTML, Image\n",
|
| 162 |
+
"\n",
|
| 163 |
+
"def display_image():\n",
|
| 164 |
+
" image_url = \"https://i.postimg.cc/Pf3XXMsP/Cuplikan-layar-2023-07-30-165548.png\"\n",
|
| 165 |
+
" image_html = f'<a href=\"https://www.youtube.com/@remajapekalongan\" target=\"_blank\"><img src=\"{image_url}\" width=\"489\" height=\"172\"></a>'\n",
|
| 166 |
+
"\n",
|
| 167 |
+
" display(HTML(image_html))\n",
|
| 168 |
+
"\n",
|
| 169 |
+
"display_image()\n",
|
| 170 |
+
"from IPython.display import HTML\n",
|
| 171 |
+
"\n",
|
| 172 |
+
"def create_button_with_link(label, link):\n",
|
| 173 |
+
" button_id = label.lower().replace(\" \", \"_\")\n",
|
| 174 |
+
" return f'''\n",
|
| 175 |
+
" <style>\n",
|
| 176 |
+
" #{button_id} {{\n",
|
| 177 |
+
" width: 119px;\n",
|
| 178 |
+
" height: 40px;\n",
|
| 179 |
+
" background-color: #007bff;\n",
|
| 180 |
+
" color: white;\n",
|
| 181 |
+
" border: 2px solid #ccc;\n",
|
| 182 |
+
" cursor: pointer;\n",
|
| 183 |
+
" transition: background-color 0.3s;\n",
|
| 184 |
+
" }}\n",
|
| 185 |
+
" #{button_id}:hover {{\n",
|
| 186 |
+
" background-color: #0056b3;\n",
|
| 187 |
+
" }}\n",
|
| 188 |
+
" </style>\n",
|
| 189 |
+
" <a href=\"{link}\" target=\"_blank\" style=\"text-decoration: none;\">\n",
|
| 190 |
+
" <button id=\"{button_id}\">{label}</button>\n",
|
| 191 |
+
" </a>\n",
|
| 192 |
+
" '''\n",
|
| 193 |
+
"\n",
|
| 194 |
+
"subscribe_button = create_button_with_link(\"Subscribe\", \"https://www.youtube.com/@remajapekalongan\")\n",
|
| 195 |
+
"support_button = create_button_with_link(\"Support\", \"https://ko-fi.com/vorstcavry\")\n",
|
| 196 |
+
"saweria_button = create_button_with_link(\"Saweria\", \"https://http://saweria.co/vorstcavry\")\n",
|
| 197 |
+
"discord_button = create_button_with_link(\"Discord\", \"https://discord.gg/fg9kvMqUmD\")\n",
|
| 198 |
+
"\n",
|
| 199 |
+
"buttons_html = f'<div>{subscribe_button} {support_button} {saweria_button} {discord_button}</div>'\n",
|
| 200 |
+
"display(HTML(buttons_html))\n",
|
| 201 |
+
"\n",
|
| 202 |
+
"def play_audio(url):\n",
|
| 203 |
+
" display(HTML(f'<audio src=\"{url}\" controls autoplay style=\"display:none\"></audio>'))\n",
|
| 204 |
+
"\n",
|
| 205 |
+
"audio_url = \"https://raw.githubusercontent.com/KoboldAI/KoboldAI-Client/main/colab/silence.m4a\"\n",
|
| 206 |
+
"audio_thread = threading.Thread(target=play_audio, args=(audio_url,))\n",
|
| 207 |
+
"audio_thread.start()\n",
|
| 208 |
+
"#@markdown #<font color=\"#7FFF00\">***JALANKAN DENGAN SEKALI KLIK***</font>\n",
|
| 209 |
+
"\n",
|
| 210 |
+
"%cd /content\n",
|
| 211 |
+
"\n",
|
| 212 |
+
"%env TF_CPP_MIN_LOG_LEVEL=1\n",
|
| 213 |
+
"\n",
|
| 214 |
+
"!apt -y update -qq\n",
|
| 215 |
+
"!wget https://github.com/camenduru/gperftools/releases/download/v1.0/libtcmalloc_minimal.so.4 -O /content/libtcmalloc_minimal.so.4\n",
|
| 216 |
+
"%env LD_PRELOAD=/content/libtcmalloc_minimal.so.4\n",
|
| 217 |
+
"\n",
|
| 218 |
+
"!apt -y install -qq aria2 libcairo2-dev pkg-config python3-dev\n",
|
| 219 |
+
"!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",
|
| 220 |
+
"!pip install -q xformers==0.0.20 triton==2.0.0 gradio_client==0.2.7 -U\n",
|
| 221 |
+
"\n",
|
| 222 |
+
"!git clone -b v2.4 https://github.com/camenduru/stable-diffusion-webui /content/vorst-cavry\n",
|
| 223 |
+
"!git clone https://github.com/vorstcavry/vorstcavry-tunnels /content/vorst-cavry/extensions/tunnels\n",
|
| 224 |
+
"!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",
|
| 225 |
+
"!wget https://raw.githubusercontent.com/vorstcavry/s-scripts/main/run_n_times.py -O /content/vorst-cavry/scripts/run_n_times.py\n",
|
| 226 |
+
"#install-bahan-dasar\n",
|
| 227 |
+
"!git clone https://github.com/vorstcavry/lora /content/vorst-cavry/models/Lora/Lora-set\n",
|
| 228 |
+
"!git clone https://github.com/vorstcavry/embeddings /content/vorst-cavry/embeddings/negative\n",
|
| 229 |
+
"!git clone https://github.com/vorstcavry/Checkpoint-Model /content/vorst-cavry/models/Stable-diffusion/Checkpoint-Model\n",
|
| 230 |
+
"#menghapus git\n",
|
| 231 |
+
"!rm -rf /content/vorst-cavry/models/Stable-diffusion/Checkpoint-Model/.git\n",
|
| 232 |
+
"!rm -rf /content/vorst-cavry/embeddings/negative/.git\n",
|
| 233 |
+
"!rm -rf /content/vorst-cavry/models/Lora/Lora-set/.git\n",
|
| 234 |
+
"#install-ekstension\n",
|
| 235 |
+
"%cd /content/vorst-cavry/extensions\n",
|
| 236 |
+
"!git clone https://tinyurl.com/controlnet-s\n",
|
| 237 |
+
"!git clone https://tinyurl.com/depth-lib-hand\n",
|
| 238 |
+
"!git clone https://github.com/hnmr293/posex\n",
|
| 239 |
+
"!git clone https://github.com/BlafKing/sd-civitai-browser-plus\n",
|
| 240 |
+
"!git clone https://github.com/vorstcavry/images-browser\n",
|
| 241 |
+
"!git clone https://github.com/Iyashinouta/sd-model-downloader\n",
|
| 242 |
+
"!git clone https://github.com/IDEA-Research/DWPose\n",
|
| 243 |
+
"!git clone https://tinyurl.com/additional-networks-s\n",
|
| 244 |
+
"!git clone https://github.com/fkunn1326/openpose-editor\n",
|
| 245 |
+
"!git clone https://tinyurl.com/openpose-edit\n",
|
| 246 |
+
"!git clone https://github.com/NoCrypt/inpaint-nav\n",
|
| 247 |
+
"!git clone https://tinyurl.com/tagcomplete-1111\n",
|
| 248 |
+
"!git clone https://tinyurl.com/batchlink-download\n",
|
| 249 |
+
"!git clone https://tinyurl.com/catppuccin-themes-v\n",
|
| 250 |
+
"!git clone https://tinyurl.com/aspect-ratio-v\n",
|
| 251 |
+
"\n",
|
| 252 |
+
"%cd /content/vorst-cavry\n",
|
| 253 |
+
"\n",
|
| 254 |
+
"!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",
|
| 255 |
+
"!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",
|
| 256 |
+
"!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",
|
| 257 |
+
"!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",
|
| 258 |
+
"!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",
|
| 259 |
+
"!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",
|
| 260 |
+
"!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",
|
| 261 |
+
"!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",
|
| 262 |
+
"!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",
|
| 263 |
+
"!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",
|
| 264 |
+
"!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",
|
| 265 |
+
"!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",
|
| 266 |
+
"!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",
|
| 267 |
+
"\n",
|
| 268 |
+
"#install-vae-untuk-model-checkpoint-yang-akan-dipakai\n",
|
| 269 |
+
"!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",
|
| 270 |
+
"!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",
|
| 271 |
+
"\n",
|
| 272 |
+
"#install-lora\n",
|
| 273 |
+
"!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",
|
| 274 |
+
"!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",
|
| 275 |
+
"!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",
|
| 276 |
+
"\n",
|
| 277 |
+
"#install-Checkpoint\n",
|
| 278 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/AnonPerson/ChilloutMix/resolve/main/ChilloutMix-ni-fp16.safetensors -d /content/vorst-cavry/models/Stable-diffusion -o ChilloutMix-ni-fp16.safetensors\n",
|
| 279 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vorstcavry/mymodel1/resolve/main/Cavry_V2.safetensors -d /content/vorst-cavry/models/Stable-diffusion -o Cavry_V2.safetensors\n",
|
| 280 |
+
"#intsall-Preview-Checkpoint\n",
|
| 281 |
+
"!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",
|
| 282 |
+
"!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",
|
| 283 |
+
"\n",
|
| 284 |
+
"\n",
|
| 285 |
+
"!sed -i -e '''/from modules import launch_utils/a\\import os''' /content/vorst-cavry/launch.py\n",
|
| 286 |
+
"!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",
|
| 287 |
+
"!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",
|
| 288 |
+
"\n",
|
| 289 |
+
"!python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple\n"
|
| 290 |
+
]
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"metadata": {
|
| 294 |
+
"accelerator": "GPU",
|
| 295 |
+
"colab": {
|
| 296 |
+
"collapsed_sections": [
|
| 297 |
+
"oEk611XKY623"
|
| 298 |
+
],
|
| 299 |
+
"provenance": []
|
| 300 |
+
},
|
| 301 |
+
"kernelspec": {
|
| 302 |
+
"display_name": "Python 3",
|
| 303 |
+
"name": "python3"
|
| 304 |
+
},
|
| 305 |
+
"language_info": {
|
| 306 |
+
"name": "python"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"nbformat": 4,
|
| 310 |
+
"nbformat_minor": 0
|
| 311 |
+
}
|