AI-C commited on
Commit
f03c20f
·
1 Parent(s): 8079f3a

Delete Azviya.ipynb

Browse files
Files changed (1) hide show
  1. Azviya.ipynb +0 -252
Azviya.ipynb DELETED
@@ -1,252 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "markdown",
5
- "id": "e8703484-a915-4a40-9321-cbc1d7bec1a7",
6
- "metadata": {},
7
- "source": [
8
- "## **<center>Don't forget to subscribe to my YouTube channel 😅</center>**\n",
9
- "\n",
10
- "<div align=\"center\">\n",
11
- " <font size=\"12\"></font> <a href=\"https://www.youtube.com/@azviya\" target=\"_blank\" rel=\"nofollow\"> <img src=\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwdXnFFDU62Bb9ZA5GqKcD1bqdz3CDWodJYi6RF4w1IqUI8IsSal_acYDNfrjLTYsXcKLysqKZ6hjYsQdAgpr_WZ2ycgAyzGOqX3iuQq5BuIyKLTidAjGKTt3N2k9GDwO8EEdMjOoWonwEs-XSYbbKDaxv0648evogqJIFd_qsbmK6X62849Kcm5frSvEr/s1234/Subscribe.png\" width=\"310\"/> </a> <font size=\"14\" ></font></div>\n",
12
- "\n",
13
- "\n"
14
- ]
15
- },
16
- {
17
- "cell_type": "markdown",
18
- "id": "3c31cf88-64db-4c96-8c2f-e1e72021fe53",
19
- "metadata": {
20
- "jp-MarkdownHeadingCollapsed": true,
21
- "tags": []
22
- },
23
- "source": [
24
- "# 1.0 Run this Script only once\n",
25
- "## jalankan scrip ini sekali saja"
26
- ]
27
- },
28
- {
29
- "cell_type": "code",
30
- "execution_count": null,
31
- "id": "698b5b09-71a9-47a8-9d24-36742b4eb190",
32
- "metadata": {},
33
- "outputs": [],
34
- "source": [
35
- "import marshal, base64, zlib\n",
36
- "#pip install opencv-contrib-python-headless==4.4.0.46\n",
37
- "#%env TF_CPP_MIN_LOG_LEVEL=1\n",
38
- "#!wget https://github.com/A-I-Channel/Data-file/raw/main/libtcmalloc_minimal.so.4 -O /lib/libtcmalloc_minimal.so.4\n",
39
- "#%env LD_PRELOAD=/lib/libtcmalloc_minimal.so.4\n",
40
- "A1=1\n",
41
- "str_data1 = \"/home/studio-lab-user/.conda/envs/Azviya\"\n",
42
- "str_data2 = \"https://github.com/A-I-Channel/Data-file/raw/main/Azviya2.py\"\n",
43
- "!curl -Lo {str_data1} {str_data2}\n",
44
- "file1 = open(str_data1, 'r')\n",
45
- "with open(str_data1) as fariabel:\n",
46
- " line_count = sum(1 for line in fariabel if line.strip())\n",
47
- "d={} \n",
48
- "for x in range(1, line_count+1):\n",
49
- " line = file1.readline()\n",
50
- " urlmagnet = line.strip()\n",
51
- " d[\"AIC{0}\".format(x)] = urlmagnet\n",
52
- " \n",
53
- "%cd -q /home/studio-lab-user/sagemaker-studiolab-notebooks/\n",
54
- "!git clone {d[\"AIC17\"]}\n",
55
- "!conda install {d[\"AIC131\"]} \n",
56
- "\n",
57
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/models/Stable-diffusion/\n",
58
- "#=================================================\n",
59
- "#Pate Your Model Here\n",
60
- "#!curl -O -L -J http://Your_Model.com\n",
61
- "\n",
62
- "!curl -O -J -L https://huggingface.co/datasets/Kizi-Art/models/resolve/main/aamAnyloraAnimeMixAnime_v1.safetensors\n",
63
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/models/VAE\n",
64
- "#=================================================\n",
65
- "#Vae Model Here\n",
66
- "#!curl -O -L -J http://Your_Model.com\n",
67
- "!curl -O -J -L https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt\n",
68
- "#=================================================\n",
69
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/models/Lora\n",
70
- "#=================================================\n",
71
- "#Lokasi Lora, Paste Lora Disini\n",
72
- "#!curl -O -L -J https://Your_Lora\n",
73
- "\n",
74
- "\n",
75
- "#==================================================\n",
76
- "\n",
77
- "!pip install rich\n",
78
- "!pip install onnxruntime\n",
79
- "!pip install deforum_api_models\n",
80
- "!pip install numexpr\n",
81
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/extensions-builtin/\n",
82
- "for x in range(18, 20+A1):\n",
83
- " !git clone {d[\"AIC{0}\".format(x)]}\n",
84
- "!git clone {d[\"AIC22\"]}\n",
85
- "!git clone {d[\"AIC74\"]}\n",
86
- "for x in range(99, 100+A1):\n",
87
- " !git clone {d[\"AIC{0}\".format(x)]}\n",
88
- "!git clone {d[\"AIC129\"]}\n",
89
- "!git clone {d[\"AIC130\"]}\n",
90
- "!git clone {d[\"AIC133\"]}\n",
91
- "#!git clone {d[\"AIC109\"]}\n",
92
- "#!git clone {d[\"AIC110\"]}\n",
93
- "\n",
94
- "\n",
95
- "#Pilih Extensions Yang di butuhkan\n",
96
- "#clip-interrogator-ext\n",
97
- "#!git clone {d[\"AIC132\"]}\n",
98
- "#OpenPose_editor\n",
99
- "!git clone {d[\"AIC99\"]}\n",
100
- "#!git clone {d[\"AIC100\"]}\n",
101
- "\n",
102
- "#Deforum_UI\n",
103
- "!git clone {d[\"AIC104\"]}\n",
104
- "\n",
105
- "#Adetailer\n",
106
- "!git clone {d[\"AIC105\"]}\n",
107
- "!{d[\"AIC124\"]}\n",
108
- "!{d[\"AIC125\"]}\n",
109
- "\n",
110
- "#Cutoff\n",
111
- "!git clone {d[\"AIC106\"]}\n",
112
- "\n",
113
- "#Reactor\n",
114
- "!git clone {d[\"AIC107\"]}\n",
115
- "!{d[\"AIC126\"]}\n",
116
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/models/\n",
117
- "!mkdir insightface\n",
118
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/models/insightface\n",
119
- "!curl -O -L -J {d[\"AIC108\"]}\n",
120
- "\n",
121
- "#controlnet Model\n",
122
- "#All_ControlNet \n",
123
- "'''\n",
124
- "for x in range(28, 30+A1):\n",
125
- " !curl -Lo {d[\"AIC{0}\".format(x)]}\n",
126
- "for x in range(75, 97+A1):\n",
127
- " !curl -Lo {d[\"AIC{0}\".format(x)]}\n",
128
- "'''\n",
129
- " \n",
130
- "#Cany_Only\n",
131
- "!curl -Lo {d[\"AIC75\"]}\n",
132
- "#Inpaint_Only\n",
133
- "!curl -Lo {d[\"AIC76\"]}\n",
134
- "#Tail_Only\n",
135
- "!curl -Lo {d[\"AIC79\"]}\n",
136
- "#OpenPose_Only\n",
137
- "!curl -Lo {d[\"AIC77\"]}\n",
138
- "#SoftEdge_Only\n",
139
- "!curl -Lo {d[\"AIC89\"]}\n",
140
- "\n",
141
- "!mkdir {d[\"AIC31\"]}\n",
142
- "!curl -Lo {d[\"AIC32\"]}\n",
143
- "!curl -Lo {d[\"AIC33\"]}\n",
144
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/models\n",
145
- "!mkdir Lora\n",
146
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/models/Lora\n",
147
- "#for x in range(41, 73+A1):\n",
148
- "# !curl -O -L -J {d[\"AIC{0}\".format(x)]}\n",
149
- "#=================================================\n",
150
- "#Lokasi Lora, Paste Lora Disini\n",
151
- "#!curl -O -L -J https://civitai.com/api/download/models/66114\n",
152
- "\n",
153
- "\n",
154
- "#==================================================\n",
155
- "%cd {d[\"AIC34\"]}\n",
156
- "!unzip {d[\"AIC35\"]}\n",
157
- "!rm {d[\"AIC36\"]}\n",
158
- "%cd {d[\"AIC37\"]}\n",
159
- "!unzip {d[\"AIC38\"]}\n",
160
- "!rm {d[\"AIC39\"]}\n",
161
- "\n",
162
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/\n",
163
- "!rm -rf webui.py\n",
164
- "!curl -Lo \"/home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/webui.py\" https://github.com/A-I-Channel/Data-file/raw/main/webui.py\n",
165
- "!curl -Lo \"/home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/config.json\" https://github.com/A-I-Channel/Data-file/raw/main/config_kaggle.json\n",
166
- "!pip install pyngrok\n",
167
- "#pip install opencv-python-headless\n",
168
- "authtoken=\" Input your ngrok token here \"\n",
169
- "username=\" Your Email\"\n",
170
- "password=\"Your Password\"\n",
171
- "!python launch.py {d[\"AIC127\"]} --ngrok {authtoken}:{username}:{password}"
172
- ]
173
- },
174
- {
175
- "cell_type": "markdown",
176
- "id": "c29344aa-978b-4732-aaca-121d296e9c8d",
177
- "metadata": {
178
- "jp-MarkdownHeadingCollapsed": true,
179
- "tags": []
180
- },
181
- "source": [
182
- "# 1.1 Run this script when you are in GPU mode\n",
183
- "## Jalankan Scrip ini Ketika kamu berada di mode GPU"
184
- ]
185
- },
186
- {
187
- "cell_type": "code",
188
- "execution_count": null,
189
- "id": "8fca9e89-a6a8-4bc1-8608-85af6f78a89c",
190
- "metadata": {},
191
- "outputs": [],
192
- "source": [
193
- "import marshal, base64, zlib\n",
194
- "#pip install opencv-contrib-python-headless==4.4.0.46\n",
195
- "#%env TF_CPP_MIN_LOG_LEVEL=1\n",
196
- "#!wget https://github.com/A-I-Channel/Data-file/raw/main/libtcmalloc_minimal.so.4 -O /lib/libtcmalloc_minimal.so.4\n",
197
- "#%env LD_PRELOAD=/lib/libtcmalloc_minimal.so.4\n",
198
- "A1=1\n",
199
- "str_data1 = \"/home/studio-lab-user/.conda/envs/Azviya\"\n",
200
- "str_data2 = \"https://github.com/A-I-Channel/Data-file/raw/main/Azviya2.py\"\n",
201
- "!curl -Lo {str_data1} {str_data2}\n",
202
- "file1 = open(str_data1, 'r')\n",
203
- "with open(str_data1) as fariabel:\n",
204
- " line_count = sum(1 for line in fariabel if line.strip())\n",
205
- "d={} \n",
206
- "for x in range(1, line_count+1):\n",
207
- " line = file1.readline()\n",
208
- " urlmagnet = line.strip()\n",
209
- " d[\"AIC{0}\".format(x)] = urlmagnet\n",
210
- "%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/\n",
211
- "!rm -rf webui.py\n",
212
- "!curl -Lo \"/home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/webui.py\" https://github.com/A-I-Channel/Data-file/raw/main/webui.py\n",
213
- "!curl -Lo \"/home/studio-lab-user/sagemaker-studiolab-notebooks/stable-diffusion-webui/config.json\" https://github.com/A-I-Channel/Data-file/raw/main/config_kaggle.json\n",
214
- "!pip install pyngrok\n",
215
- "#pip install opencv-python-headless\n",
216
- "authtoken=\" Input your ngrok token here \"\n",
217
- "username=\" Your Email\"\n",
218
- "password=\"Your Password\"\n",
219
- "!python launch.py {d[\"AIC127\"]} --ngrok {authtoken}:{username}:{password}"
220
- ]
221
- },
222
- {
223
- "cell_type": "code",
224
- "execution_count": null,
225
- "id": "f1daa2bf-c3af-4f09-975f-f0bc59147a58",
226
- "metadata": {},
227
- "outputs": [],
228
- "source": []
229
- }
230
- ],
231
- "metadata": {
232
- "kernelspec": {
233
- "display_name": "default:Python",
234
- "language": "python",
235
- "name": "conda-env-default-py"
236
- },
237
- "language_info": {
238
- "codemirror_mode": {
239
- "name": "ipython",
240
- "version": 3
241
- },
242
- "file_extension": ".py",
243
- "mimetype": "text/x-python",
244
- "name": "python",
245
- "nbconvert_exporter": "python",
246
- "pygments_lexer": "ipython3",
247
- "version": "3.9.16"
248
- }
249
- },
250
- "nbformat": 4,
251
- "nbformat_minor": 5
252
- }