vorstcavry commited on
Commit
08ef115
1 Parent(s): a6ea3ee

Upload bodoamat-dengan-aturan.ipynb

Browse files
Files changed (1) hide show
  1. bodoamat-dengan-aturan.ipynb +940 -0
bodoamat-dengan-aturan.ipynb ADDED
@@ -0,0 +1,940 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "kernelspec": {
4
+ "display_name": "Python 3",
5
+ "name": "python3"
6
+ },
7
+ "language_info": {
8
+ "pygments_lexer": "ipython3",
9
+ "nbconvert_exporter": "python",
10
+ "version": "3.6.4",
11
+ "file_extension": ".py",
12
+ "codemirror_mode": {
13
+ "name": "ipython",
14
+ "version": 3
15
+ },
16
+ "name": "python",
17
+ "mimetype": "text/x-python"
18
+ },
19
+ "colab": {
20
+ "provenance": [],
21
+ "gpuType": "T4"
22
+ },
23
+ "accelerator": "GPU"
24
+ },
25
+ "nbformat_minor": 0,
26
+ "nbformat": 4,
27
+ "cells": [
28
+ {
29
+ "cell_type": "code",
30
+ "source": [
31
+ "before_downloading = '''# 这个列表仅加载一次 且会等待加载完成再开始安装sd\n",
32
+ "[extensions] # 插件\n",
33
+ "https://github.com/etherealxx/batchlinks-webui.git\n",
34
+ "\n",
35
+ "# 如果你有模型文件需要在启动前加载,可以写在这个下面对应位置\n",
36
+ "\n",
37
+ "[models/Stable-diffusion] # 大模型列表\n",
38
+ "\n",
39
+ "[models/hypernetworks] # hypernetworks文件列表\n",
40
+ "\n",
41
+ "[models/embeddings] # embeddings文件列表\n",
42
+ "\n",
43
+ "[models/Lora] # Lora文件列表\n",
44
+ "\n",
45
+ "[models/VAE] # VAE文件列表\n",
46
+ "https://huggingface.co/Norisuke193/kl-f8-anime2/resolve/main/kl-f8-anime2.vae.pt\n",
47
+ "\n",
48
+ "[extensions/sd-webui-controlnet/models] # controlnet插件的模型列表\n",
49
+ "\n",
50
+ "'''\n",
51
+ "\n",
52
+ "!wget https://huggingface.co/datasets/artdwn/sd1x/resolve/main/token.txt -O /content/ngrok.txt"
53
+ ],
54
+ "metadata": {
55
+ "trusted": true,
56
+ "id": "_HiWIrbtf_Bz"
57
+ },
58
+ "execution_count": null,
59
+ "outputs": []
60
+ },
61
+ {
62
+ "cell_type": "code",
63
+ "source": [
64
+ "async_downloading='''# 这个列表仅加载一次 且不会等待加载完成\n",
65
+ "[extensions] # 插件 如果你没有使用ngrok或者frpc,请不要把插件放在这里加载,因为这里的文件可能在webui启动后才加载完成\n",
66
+ "\n",
67
+ "[models/Stable-diffusion] # 大模型列表\n",
68
+ "\n",
69
+ "[models/hypernetworks] # hypernetworks文件列表\n",
70
+ "\n",
71
+ "[models/embeddings] # embeddings文件列表\n",
72
+ "\n",
73
+ "[models/Lora] # Lora文件列表\n",
74
+ "\n",
75
+ "[models/VAE] # VAE文件列表\n",
76
+ "\n",
77
+ "\n",
78
+ "[extensions/sd-webui-controlnet/models] # controlnet插件的模型列表\n",
79
+ "\n",
80
+ "'''\n"
81
+ ],
82
+ "metadata": {
83
+ "trusted": true,
84
+ "id": "RmEr5mX8f_CO"
85
+ },
86
+ "execution_count": 2,
87
+ "outputs": []
88
+ },
89
+ {
90
+ "cell_type": "code",
91
+ "source": [
92
+ "before_start_sync_downloading = '''\n",
93
+ "\n",
94
+ "[models/Stable-diffusion]\n",
95
+ "epiC.safetensors:https://civitai.com/api/download/models/172306\n",
96
+ "\n",
97
+ "[models/hypernetworks]\n",
98
+ "\n",
99
+ "[models/embeddings]\n",
100
+ "\n",
101
+ "[models/Lora]\n",
102
+ "yuukiAsuna_SAO.safetensors:https://civitai.com/api/download/models/157655\n",
103
+ "genshinImpact_Pack.safetensors:https://civitai.com/api/download/models/173569\n",
104
+ "\n",
105
+ "[models/VAE]\n",
106
+ "https://huggingface.co/Norisuke193/kl-f8-anime2/resolve/main/kl-f8-anime2.vae.pt\n",
107
+ "\n",
108
+ "[extensions/sd-webui-controlnet/models]\n",
109
+ "\n",
110
+ "'''"
111
+ ],
112
+ "metadata": {
113
+ "trusted": true,
114
+ "id": "M2NIwTUbf_Cc"
115
+ },
116
+ "execution_count": 3,
117
+ "outputs": []
118
+ },
119
+ {
120
+ "cell_type": "code",
121
+ "source": [
122
+ "sd_start_args='''\n",
123
+ "# --ckpt=mg-Tender.safetensors # 默认模型名称,路径不能包含空格\n",
124
+ "--disable-safe-unpickle\n",
125
+ "--deepdanbooru\n",
126
+ "--no-hashing\n",
127
+ "--no-download-sd-model\n",
128
+ "--administrator\n",
129
+ "--skip-torch-cuda-test\n",
130
+ "--skip-version-check\n",
131
+ "--disable-nan-check\n",
132
+ "# --opt-sdp-attention\n",
133
+ "--opt-sdp-no-mem-attention\n",
134
+ "--xformers-flash-attention\n",
135
+ "--xformers\n",
136
+ "--api\n",
137
+ "--listen\n",
138
+ "--lowram\n",
139
+ "--no-gradio-queue\n",
140
+ "# --share # 默认的内网穿透在kaggle和colab都已经不可用,请考虑其他方案\n",
141
+ "--disable-console-progressbars\n",
142
+ "--no-half-vae\n",
143
+ "# --no-half #关闭半精度\n",
144
+ "# --enable-console-prompts\n",
145
+ "# --nowebui\n",
146
+ "# --api-auth=2333:6666 # api密码\n",
147
+ "# --gradio-auth=2333:6666 # webui密码\n",
148
+ "'''"
149
+ ],
150
+ "metadata": {
151
+ "trusted": true,
152
+ "id": "tGV3VM-9f_Cm"
153
+ },
154
+ "execution_count": 4,
155
+ "outputs": []
156
+ },
157
+ {
158
+ "cell_type": "code",
159
+ "source": [
160
+ "useGooglrDrive = False\n",
161
+ "useNgrok=True\n",
162
+ "useFrpc=False\n",
163
+ "\n",
164
+ "ngrok_config_or_file = '''\n",
165
+ "/content/ngrok.txt\n",
166
+ "'''\n",
167
+ "frp_config_or_file = '''\n",
168
+ "{input_path}/configs/frpc_litechat.ini\n",
169
+ "'''\n",
170
+ "frp_ssl_dir = '''\n",
171
+ "{input_path}/configs/litechat_nginx\n",
172
+ "'''\n",
173
+ "\n",
174
+ "server_port=7860\n",
175
+ "\n"
176
+ ],
177
+ "metadata": {
178
+ "trusted": true,
179
+ "id": "JZPkEFrWf_Cq"
180
+ },
181
+ "execution_count": 5,
182
+ "outputs": []
183
+ },
184
+ {
185
+ "cell_type": "code",
186
+ "source": [
187
+ "link_instead_of_copy = True\n",
188
+ "hidden_console_info = False"
189
+ ],
190
+ "metadata": {
191
+ "trusted": true,
192
+ "id": "jLdH8x5ef_Cu"
193
+ },
194
+ "execution_count": 6,
195
+ "outputs": []
196
+ },
197
+ {
198
+ "cell_type": "code",
199
+ "source": [
200
+ "import os\n",
201
+ "INIT_WORK_PATH = os.environ['HOME']\n",
202
+ "if os.getenv('INIT_WORK_PATH',''):\n",
203
+ " INIT_WORK_PATH = os.getenv('INIT_WORK_PATH','')\n",
204
+ "else:\n",
205
+ " os.environ['INIT_WORK_PATH'] = os.getcwd()\n",
206
+ "%cd {INIT_WORK_PATH}"
207
+ ],
208
+ "metadata": {
209
+ "trusted": true,
210
+ "id": "Du4CCClrf_Cy",
211
+ "colab": {
212
+ "base_uri": "https://localhost:8080/"
213
+ },
214
+ "outputId": "4b1104d3-b011-4981-c30d-dd8536fc86bb"
215
+ },
216
+ "execution_count": 7,
217
+ "outputs": [
218
+ {
219
+ "output_type": "stream",
220
+ "name": "stdout",
221
+ "text": [
222
+ "/root\n"
223
+ ]
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "cell_type": "code",
229
+ "source": [
230
+ "reLoad = True\n",
231
+ "reLoad = False"
232
+ ],
233
+ "metadata": {
234
+ "trusted": true,
235
+ "id": "9uT4KkcUf_C0"
236
+ },
237
+ "execution_count": 8,
238
+ "outputs": []
239
+ },
240
+ {
241
+ "cell_type": "code",
242
+ "source": [
243
+ "if not os.path.exists('start-util.ipynb'):\n",
244
+ " !wget https://huggingface.co/vorstcavry/colab-force/resolve/main/start-util.ipynb -o log.log\n",
245
+ "%run start-util.ipynb"
246
+ ],
247
+ "metadata": {
248
+ "trusted": true,
249
+ "id": "_cIFw0Ltf_C4"
250
+ },
251
+ "execution_count": null,
252
+ "outputs": []
253
+ },
254
+ {
255
+ "cell_type": "code",
256
+ "source": [
257
+ "!pip install --upgrade ipython ipykernel\n",
258
+ "!pip uninstall jupyter\n",
259
+ "!pip install jupyter\n"
260
+ ],
261
+ "metadata": {
262
+ "id": "3FSVu6gZ1EcX"
263
+ },
264
+ "execution_count": null,
265
+ "outputs": []
266
+ },
267
+ {
268
+ "cell_type": "code",
269
+ "source": [
270
+ "!pip list\n",
271
+ "!pip install packaging\n",
272
+ "!python -m site --user-site\n",
273
+ "!pip install --upgrade pip\n"
274
+ ],
275
+ "metadata": {
276
+ "colab": {
277
+ "base_uri": "https://localhost:8080/"
278
+ },
279
+ "id": "a7Qa406y2GFe",
280
+ "outputId": "37b423f8-b344-42b6-9219-b5c5f0166d9b"
281
+ },
282
+ "execution_count": 1,
283
+ "outputs": [
284
+ {
285
+ "output_type": "stream",
286
+ "name": "stdout",
287
+ "text": [
288
+ "Package Version\n",
289
+ "-------------------------------- ---------------------\n",
290
+ "absl-py 1.4.0\n",
291
+ "aiohttp 3.8.5\n",
292
+ "aiosignal 1.3.1\n",
293
+ "alabaster 0.7.13\n",
294
+ "albumentations 1.3.1\n",
295
+ "altair 4.2.2\n",
296
+ "anyio 3.7.1\n",
297
+ "appdirs 1.4.4\n",
298
+ "argon2-cffi 23.1.0\n",
299
+ "argon2-cffi-bindings 21.2.0\n",
300
+ "array-record 0.4.1\n",
301
+ "arviz 0.15.1\n",
302
+ "astropy 5.3.4\n",
303
+ "asttokens 2.4.0\n",
304
+ "astunparse 1.6.3\n",
305
+ "async-timeout 4.0.3\n",
306
+ "attrs 23.1.0\n",
307
+ "audioread 3.0.1\n",
308
+ "autograd 1.6.2\n",
309
+ "Babel 2.13.0\n",
310
+ "backcall 0.2.0\n",
311
+ "beautifulsoup4 4.11.2\n",
312
+ "bleach 6.0.0\n",
313
+ "blinker 1.4\n",
314
+ "blis 0.7.11\n",
315
+ "blosc2 2.0.0\n",
316
+ "bokeh 3.2.2\n",
317
+ "bqplot 0.12.40\n",
318
+ "branca 0.6.0\n",
319
+ "build 1.0.3\n",
320
+ "CacheControl 0.13.1\n",
321
+ "cachetools 5.3.1\n",
322
+ "catalogue 2.0.10\n",
323
+ "certifi 2023.7.22\n",
324
+ "cffi 1.16.0\n",
325
+ "chardet 5.2.0\n",
326
+ "charset-normalizer 3.3.0\n",
327
+ "chex 0.1.7\n",
328
+ "click 8.1.7\n",
329
+ "click-plugins 1.1.1\n",
330
+ "cligj 0.7.2\n",
331
+ "cloudpickle 2.2.1\n",
332
+ "cmake 3.27.6\n",
333
+ "cmdstanpy 1.2.0\n",
334
+ "colorcet 3.0.1\n",
335
+ "colorlover 0.3.0\n",
336
+ "colour 0.1.5\n",
337
+ "comm 0.1.4\n",
338
+ "community 1.0.0b1\n",
339
+ "confection 0.1.3\n",
340
+ "cons 0.4.6\n",
341
+ "contextlib2 21.6.0\n",
342
+ "contourpy 1.1.1\n",
343
+ "convertdate 2.4.0\n",
344
+ "cryptography 41.0.4\n",
345
+ "cufflinks 0.17.3\n",
346
+ "cupy-cuda11x 11.0.0\n",
347
+ "cvxopt 1.3.2\n",
348
+ "cvxpy 1.3.2\n",
349
+ "cycler 0.12.0\n",
350
+ "cymem 2.0.8\n",
351
+ "Cython 3.0.3\n",
352
+ "dask 2023.8.1\n",
353
+ "datascience 0.17.6\n",
354
+ "db-dtypes 1.1.1\n",
355
+ "dbus-python 1.2.18\n",
356
+ "debugpy 1.6.6\n",
357
+ "decorator 4.4.2\n",
358
+ "defusedxml 0.7.1\n",
359
+ "distributed 2023.8.1\n",
360
+ "distro 1.7.0\n",
361
+ "dlib 19.24.2\n",
362
+ "dm-tree 0.1.8\n",
363
+ "docutils 0.18.1\n",
364
+ "dopamine-rl 4.0.6\n",
365
+ "duckdb 0.8.1\n",
366
+ "earthengine-api 0.1.373\n",
367
+ "easydict 1.10\n",
368
+ "ecos 2.0.12\n",
369
+ "editdistance 0.6.2\n",
370
+ "eerepr 0.0.4\n",
371
+ "en-core-web-sm 3.6.0\n",
372
+ "entrypoints 0.4\n",
373
+ "ephem 4.1.4\n",
374
+ "et-xmlfile 1.1.0\n",
375
+ "etils 1.5.0\n",
376
+ "etuples 0.3.9\n",
377
+ "exceptiongroup 1.1.3\n",
378
+ "executing 2.0.0\n",
379
+ "fastai 2.7.12\n",
380
+ "fastcore 1.5.29\n",
381
+ "fastdownload 0.0.7\n",
382
+ "fastjsonschema 2.18.1\n",
383
+ "fastprogress 1.0.3\n",
384
+ "fastrlock 0.8.2\n",
385
+ "filelock 3.12.4\n",
386
+ "Fiona 1.9.4.post1\n",
387
+ "firebase-admin 5.3.0\n",
388
+ "Flask 2.2.5\n",
389
+ "flatbuffers 23.5.26\n",
390
+ "flax 0.7.4\n",
391
+ "folium 0.14.0\n",
392
+ "fonttools 4.43.0\n",
393
+ "frozendict 2.3.8\n",
394
+ "frozenlist 1.4.0\n",
395
+ "fsspec 2023.6.0\n",
396
+ "future 0.18.3\n",
397
+ "gast 0.4.0\n",
398
+ "gcsfs 2023.6.0\n",
399
+ "GDAL 3.4.3\n",
400
+ "gdown 4.6.6\n",
401
+ "geemap 0.28.2\n",
402
+ "gensim 4.3.2\n",
403
+ "geocoder 1.38.1\n",
404
+ "geographiclib 2.0\n",
405
+ "geopandas 0.13.2\n",
406
+ "geopy 2.3.0\n",
407
+ "gin-config 0.5.0\n",
408
+ "glob2 0.7\n",
409
+ "google 2.0.3\n",
410
+ "google-api-core 2.11.1\n",
411
+ "google-api-python-client 2.84.0\n",
412
+ "google-auth 2.17.3\n",
413
+ "google-auth-httplib2 0.1.1\n",
414
+ "google-auth-oauthlib 1.0.0\n",
415
+ "google-cloud-bigquery 3.10.0\n",
416
+ "google-cloud-bigquery-connection 1.12.1\n",
417
+ "google-cloud-bigquery-storage 2.22.0\n",
418
+ "google-cloud-core 2.3.3\n",
419
+ "google-cloud-datastore 2.15.2\n",
420
+ "google-cloud-firestore 2.11.1\n",
421
+ "google-cloud-functions 1.13.3\n",
422
+ "google-cloud-language 2.9.1\n",
423
+ "google-cloud-storage 2.8.0\n",
424
+ "google-cloud-translate 3.11.3\n",
425
+ "google-colab 1.0.0\n",
426
+ "google-crc32c 1.5.0\n",
427
+ "google-pasta 0.2.0\n",
428
+ "google-resumable-media 2.6.0\n",
429
+ "googleapis-common-protos 1.60.0\n",
430
+ "googledrivedownloader 0.4\n",
431
+ "graphviz 0.20.1\n",
432
+ "greenlet 3.0.0\n",
433
+ "grpc-google-iam-v1 0.12.6\n",
434
+ "grpcio 1.59.0\n",
435
+ "grpcio-status 1.48.2\n",
436
+ "gspread 3.4.2\n",
437
+ "gspread-dataframe 3.3.1\n",
438
+ "gym 0.25.2\n",
439
+ "gym-notices 0.0.8\n",
440
+ "h5netcdf 1.2.0\n",
441
+ "h5py 3.9.0\n",
442
+ "holidays 0.34\n",
443
+ "holoviews 1.17.1\n",
444
+ "html5lib 1.1\n",
445
+ "httpimport 1.3.1\n",
446
+ "httplib2 0.22.0\n",
447
+ "huggingface-hub 0.17.3\n",
448
+ "humanize 4.7.0\n",
449
+ "hyperopt 0.2.7\n",
450
+ "idna 3.4\n",
451
+ "imageio 2.31.5\n",
452
+ "imageio-ffmpeg 0.4.9\n",
453
+ "imagesize 1.4.1\n",
454
+ "imbalanced-learn 0.10.1\n",
455
+ "imgaug 0.4.0\n",
456
+ "importlib-metadata 6.8.0\n",
457
+ "importlib-resources 6.1.0\n",
458
+ "imutils 0.5.4\n",
459
+ "inflect 7.0.0\n",
460
+ "iniconfig 2.0.0\n",
461
+ "intel-openmp 2023.2.0\n",
462
+ "ipyevents 2.0.2\n",
463
+ "ipyfilechooser 0.6.0\n",
464
+ "ipykernel 6.25.2\n",
465
+ "ipyleaflet 0.17.4\n",
466
+ "ipython 8.16.1\n",
467
+ "ipython-genutils 0.2.0\n",
468
+ "ipython-sql 0.5.0\n",
469
+ "ipytree 0.2.2\n",
470
+ "ipywidgets 7.7.1\n",
471
+ "itsdangerous 2.1.2\n",
472
+ "jax 0.4.16\n",
473
+ "jaxlib 0.4.16+cuda11.cudnn86\n",
474
+ "jedi 0.19.1\n",
475
+ "jeepney 0.7.1\n",
476
+ "jieba 0.42.1\n",
477
+ "Jinja2 3.1.2\n",
478
+ "joblib 1.3.2\n",
479
+ "jsonpickle 3.0.2\n",
480
+ "jsonschema 4.19.1\n",
481
+ "jsonschema-specifications 2023.7.1\n",
482
+ "jupyter 1.0.0\n",
483
+ "jupyter-client 6.1.12\n",
484
+ "jupyter-console 6.1.0\n",
485
+ "jupyter_core 5.3.2\n",
486
+ "jupyter-server 1.24.0\n",
487
+ "jupyterlab-pygments 0.2.2\n",
488
+ "jupyterlab-widgets 3.0.9\n",
489
+ "kaggle 1.5.16\n",
490
+ "keras 2.13.1\n",
491
+ "keyring 23.5.0\n",
492
+ "kiwisolver 1.4.5\n",
493
+ "langcodes 3.3.0\n",
494
+ "launchpadlib 1.10.16\n",
495
+ "lazr.restfulclient 0.14.4\n",
496
+ "lazr.uri 1.0.6\n",
497
+ "lazy_loader 0.3\n",
498
+ "libclang 16.0.6\n",
499
+ "librosa 0.10.1\n",
500
+ "lightgbm 4.0.0\n",
501
+ "linkify-it-py 2.0.2\n",
502
+ "lit 17.0.2\n",
503
+ "llvmlite 0.39.1\n",
504
+ "locket 1.0.0\n",
505
+ "logical-unification 0.4.6\n",
506
+ "LunarCalendar 0.0.9\n",
507
+ "lxml 4.9.3\n",
508
+ "Markdown 3.4.4\n",
509
+ "markdown-it-py 3.0.0\n",
510
+ "MarkupSafe 2.1.3\n",
511
+ "matplotlib 3.7.1\n",
512
+ "matplotlib-inline 0.1.6\n",
513
+ "matplotlib-venn 0.11.9\n",
514
+ "mdit-py-plugins 0.4.0\n",
515
+ "mdurl 0.1.2\n",
516
+ "miniKanren 1.0.3\n",
517
+ "missingno 0.5.2\n",
518
+ "mistune 0.8.4\n",
519
+ "mizani 0.9.3\n",
520
+ "mkl 2023.2.0\n",
521
+ "ml-dtypes 0.3.1\n",
522
+ "mlxtend 0.22.0\n",
523
+ "more-itertools 10.1.0\n",
524
+ "moviepy 1.0.3\n",
525
+ "mpmath 1.3.0\n",
526
+ "msgpack 1.0.7\n",
527
+ "multidict 6.0.4\n",
528
+ "multipledispatch 1.0.0\n",
529
+ "multitasking 0.0.11\n",
530
+ "murmurhash 1.0.10\n",
531
+ "music21 9.1.0\n",
532
+ "natsort 8.4.0\n",
533
+ "nbclassic 1.0.0\n",
534
+ "nbclient 0.8.0\n",
535
+ "nbconvert 6.5.4\n",
536
+ "nbformat 5.9.2\n",
537
+ "nest-asyncio 1.5.8\n",
538
+ "networkx 3.1\n",
539
+ "nibabel 4.0.2\n",
540
+ "nltk 3.8.1\n",
541
+ "notebook 6.5.5\n",
542
+ "notebook_shim 0.2.3\n",
543
+ "numba 0.56.4\n",
544
+ "numexpr 2.8.7\n",
545
+ "numpy 1.23.5\n",
546
+ "oauth2client 4.1.3\n",
547
+ "oauthlib 3.2.2\n",
548
+ "opencv-contrib-python 4.8.0.76\n",
549
+ "opencv-python 4.8.0.76\n",
550
+ "opencv-python-headless 4.8.1.78\n",
551
+ "openpyxl 3.1.2\n",
552
+ "opt-einsum 3.3.0\n",
553
+ "optax 0.1.7\n",
554
+ "orbax-checkpoint 0.4.1\n",
555
+ "osqp 0.6.2.post8\n",
556
+ "packaging 23.2\n",
557
+ "pandas 1.5.3\n",
558
+ "pandas-datareader 0.10.0\n",
559
+ "pandas-gbq 0.17.9\n",
560
+ "pandocfilters 1.5.0\n",
561
+ "panel 1.2.3\n",
562
+ "param 1.13.0\n",
563
+ "parso 0.8.3\n",
564
+ "partd 1.4.1\n",
565
+ "pathlib 1.0.1\n",
566
+ "pathy 0.10.2\n",
567
+ "patsy 0.5.3\n",
568
+ "peewee 3.16.3\n",
569
+ "pexpect 4.8.0\n",
570
+ "pickleshare 0.7.5\n",
571
+ "Pillow 9.4.0\n",
572
+ "pip 23.2.1\n",
573
+ "pip-tools 6.13.0\n",
574
+ "platformdirs 3.11.0\n",
575
+ "plotly 5.15.0\n",
576
+ "plotnine 0.12.3\n",
577
+ "pluggy 1.3.0\n",
578
+ "polars 0.17.3\n",
579
+ "pooch 1.7.0\n",
580
+ "portpicker 1.5.2\n",
581
+ "prefetch-generator 1.0.3\n",
582
+ "preshed 3.0.9\n",
583
+ "prettytable 3.9.0\n",
584
+ "proglog 0.1.10\n",
585
+ "progressbar2 4.2.0\n",
586
+ "prometheus-client 0.17.1\n",
587
+ "promise 2.3\n",
588
+ "prompt-toolkit 3.0.39\n",
589
+ "prophet 1.1.4\n",
590
+ "proto-plus 1.22.3\n",
591
+ "protobuf 3.20.3\n",
592
+ "psutil 5.9.5\n",
593
+ "psycopg2 2.9.9\n",
594
+ "ptyprocess 0.7.0\n",
595
+ "pure-eval 0.2.2\n",
596
+ "py-cpuinfo 9.0.0\n",
597
+ "py4j 0.10.9.7\n",
598
+ "pyarrow 9.0.0\n",
599
+ "pyasn1 0.5.0\n",
600
+ "pyasn1-modules 0.3.0\n",
601
+ "pycocotools 2.0.7\n",
602
+ "pycparser 2.21\n",
603
+ "pyct 0.5.0\n",
604
+ "pydantic 1.10.13\n",
605
+ "pydata-google-auth 1.8.2\n",
606
+ "pydot 1.4.2\n",
607
+ "pydot-ng 2.0.0\n",
608
+ "pydotplus 2.0.2\n",
609
+ "PyDrive 1.3.1\n",
610
+ "PyDrive2 1.6.3\n",
611
+ "pyerfa 2.0.0.3\n",
612
+ "pygame 2.5.2\n",
613
+ "Pygments 2.16.1\n",
614
+ "PyGObject 3.42.1\n",
615
+ "PyJWT 2.3.0\n",
616
+ "pymc 5.7.2\n",
617
+ "PyMeeus 0.5.12\n",
618
+ "pymystem3 0.2.0\n",
619
+ "pyngrok 7.0.0\n",
620
+ "PyOpenGL 3.1.7\n",
621
+ "pyOpenSSL 23.2.0\n",
622
+ "pyparsing 3.1.1\n",
623
+ "pyperclip 1.8.2\n",
624
+ "pyproj 3.6.1\n",
625
+ "pyproject_hooks 1.0.0\n",
626
+ "pyshp 2.3.1\n",
627
+ "PySocks 1.7.1\n",
628
+ "pytensor 2.14.2\n",
629
+ "pytest 7.4.2\n",
630
+ "python-apt 0.0.0\n",
631
+ "python-box 7.1.1\n",
632
+ "python-dateutil 2.8.2\n",
633
+ "python-louvain 0.16\n",
634
+ "python-slugify 8.0.1\n",
635
+ "python-utils 3.8.1\n",
636
+ "pytz 2023.3.post1\n",
637
+ "pyviz_comms 3.0.0\n",
638
+ "PyWavelets 1.4.1\n",
639
+ "PyYAML 6.0.1\n",
640
+ "pyzmq 23.2.1\n",
641
+ "qdldl 0.1.7.post0\n",
642
+ "qtconsole 5.4.4\n",
643
+ "QtPy 2.4.0\n",
644
+ "qudida 0.0.4\n",
645
+ "ratelim 0.1.6\n",
646
+ "referencing 0.30.2\n",
647
+ "regex 2023.6.3\n",
648
+ "requests 2.31.0\n",
649
+ "requests-oauthlib 1.3.1\n",
650
+ "requirements-parser 0.5.0\n",
651
+ "rich 13.6.0\n",
652
+ "rpds-py 0.10.4\n",
653
+ "rpy2 3.4.2\n",
654
+ "rsa 4.9\n",
655
+ "scikit-image 0.19.3\n",
656
+ "scikit-learn 1.2.2\n",
657
+ "scipy 1.11.3\n",
658
+ "scooby 0.7.4\n",
659
+ "scs 3.2.3\n",
660
+ "seaborn 0.12.2\n",
661
+ "SecretStorage 3.3.1\n",
662
+ "Send2Trash 1.8.2\n",
663
+ "setuptools 67.7.2\n",
664
+ "shapely 2.0.1\n",
665
+ "six 1.16.0\n",
666
+ "sklearn-pandas 2.2.0\n",
667
+ "smart-open 6.4.0\n",
668
+ "sniffio 1.3.0\n",
669
+ "snowballstemmer 2.2.0\n",
670
+ "sortedcontainers 2.4.0\n",
671
+ "soundfile 0.12.1\n",
672
+ "soupsieve 2.5\n",
673
+ "soxr 0.3.7\n",
674
+ "spacy 3.6.1\n",
675
+ "spacy-legacy 3.0.12\n",
676
+ "spacy-loggers 1.0.5\n",
677
+ "Sphinx 5.0.2\n",
678
+ "sphinxcontrib-applehelp 1.0.7\n",
679
+ "sphinxcontrib-devhelp 1.0.5\n",
680
+ "sphinxcontrib-htmlhelp 2.0.4\n",
681
+ "sphinxcontrib-jsmath 1.0.1\n",
682
+ "sphinxcontrib-qthelp 1.0.6\n",
683
+ "sphinxcontrib-serializinghtml 1.1.9\n",
684
+ "SQLAlchemy 2.0.21\n",
685
+ "sqlparse 0.4.4\n",
686
+ "srsly 2.4.8\n",
687
+ "stack-data 0.6.3\n",
688
+ "stanio 0.3.0\n",
689
+ "statsmodels 0.14.0\n",
690
+ "sympy 1.12\n",
691
+ "tables 3.8.0\n",
692
+ "tabulate 0.9.0\n",
693
+ "tbb 2021.10.0\n",
694
+ "tblib 2.0.0\n",
695
+ "tenacity 8.2.3\n",
696
+ "tensorboard 2.13.0\n",
697
+ "tensorboard-data-server 0.7.1\n",
698
+ "tensorflow 2.13.0\n",
699
+ "tensorflow-datasets 4.9.3\n",
700
+ "tensorflow-estimator 2.13.0\n",
701
+ "tensorflow-gcs-config 2.13.0\n",
702
+ "tensorflow-hub 0.14.0\n",
703
+ "tensorflow-io-gcs-filesystem 0.34.0\n",
704
+ "tensorflow-metadata 1.14.0\n",
705
+ "tensorflow-probability 0.20.1\n",
706
+ "tensorstore 0.1.45\n",
707
+ "termcolor 2.3.0\n",
708
+ "terminado 0.17.1\n",
709
+ "text-unidecode 1.3\n",
710
+ "textblob 0.17.1\n",
711
+ "tf-slim 1.1.0\n",
712
+ "thinc 8.1.12\n",
713
+ "threadpoolctl 3.2.0\n",
714
+ "tifffile 2023.9.26\n",
715
+ "tinycss2 1.2.1\n",
716
+ "toml 0.10.2\n",
717
+ "tomli 2.0.1\n",
718
+ "toolz 0.12.0\n",
719
+ "torch 2.0.1+cu118\n",
720
+ "torchaudio 2.0.2+cu118\n",
721
+ "torchdata 0.6.1\n",
722
+ "torchsummary 1.5.1\n",
723
+ "torchtext 0.15.2\n",
724
+ "torchvision 0.15.2+cu118\n",
725
+ "tornado 6.3.2\n",
726
+ "tqdm 4.66.1\n",
727
+ "traitlets 5.7.1\n",
728
+ "traittypes 0.2.1\n",
729
+ "triton 2.0.0\n",
730
+ "tweepy 4.13.0\n",
731
+ "typer 0.9.0\n",
732
+ "types-setuptools 68.2.0.0\n",
733
+ "typing_extensions 4.5.0\n",
734
+ "tzlocal 5.1\n",
735
+ "uc-micro-py 1.0.2\n",
736
+ "uritemplate 4.1.1\n",
737
+ "urllib3 2.0.6\n",
738
+ "vega-datasets 0.9.0\n",
739
+ "wadllib 1.3.6\n",
740
+ "wasabi 1.1.2\n",
741
+ "watchdog 3.0.0\n",
742
+ "wcwidth 0.2.8\n",
743
+ "webcolors 1.13\n",
744
+ "webencodings 0.5.1\n",
745
+ "websocket-client 1.6.3\n",
746
+ "Werkzeug 3.0.0\n",
747
+ "wheel 0.41.2\n",
748
+ "widgetsnbextension 3.6.6\n",
749
+ "wordcloud 1.9.2\n",
750
+ "wrapt 1.15.0\n",
751
+ "xarray 2023.7.0\n",
752
+ "xarray-einstats 0.6.0\n",
753
+ "xgboost 2.0.0\n",
754
+ "xlrd 2.0.1\n",
755
+ "xyzservices 2023.10.0\n",
756
+ "yarl 1.9.2\n",
757
+ "yellowbrick 1.5\n",
758
+ "yfinance 0.2.31\n",
759
+ "zict 3.0.0\n",
760
+ "zipp 3.17.0\n",
761
+ "Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (23.2)\n",
762
+ "\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n",
763
+ "\u001b[0m/root/.local/lib/python3.10/site-packages\n",
764
+ "Requirement already satisfied: pip in /usr/local/lib/python3.10/dist-packages (23.2.1)\n",
765
+ "\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n",
766
+ "\u001b[0m"
767
+ ]
768
+ }
769
+ ]
770
+ },
771
+ {
772
+ "cell_type": "code",
773
+ "source": [
774
+ "try:\n",
775
+ " check_gpu()\n",
776
+ " main()\n",
777
+ "except KeyboardInterrupt:\n",
778
+ " stop_solo_threads()"
779
+ ],
780
+ "metadata": {
781
+ "execution": {
782
+ "iopub.status.idle": "2023-09-23T13:57:33.428496Z",
783
+ "shell.execute_reply.started": "2023-09-23T13:56:02.582974Z",
784
+ "shell.execute_reply": "2023-09-23T13:57:33.427317Z"
785
+ },
786
+ "trusted": true,
787
+ "id": "xTcOPh8Cf_C8",
788
+ "colab": {
789
+ "base_uri": "https://localhost:8080/"
790
+ },
791
+ "outputId": "e37d6652-2ab1-46e6-a0d9-0854f7d55db5"
792
+ },
793
+ "execution_count": 12,
794
+ "outputs": [
795
+ {
796
+ "output_type": "stream",
797
+ "name": "stdout",
798
+ "text": [
799
+ "启动 安装和运行环境\n",
800
+ "安装\n",
801
+ "安装 完成\n",
802
+ "链接输出目录\n",
803
+ "链接输出目录 完成\n",
804
+ "当前无huggingface配置,可配置huggingface仓库和token将收藏的图片保存到huggingface仓库\n",
805
+ "安装需要的python环境\n",
806
+ "等待python环境安装...\n",
807
+ "等待python环境安装...\n",
808
+ "等待python环境安装...\n",
809
+ "等待python环境安装...\n",
810
+ "等待python环境安装...\n",
811
+ "等待python环境安装...\n",
812
+ "等待python环境安装...\n",
813
+ "等待python环境安装...\n",
814
+ "等待python环境安装...\n",
815
+ "等待python环境安装...\n",
816
+ "等待python环境安装...\n",
817
+ "解压环境\n",
818
+ "等待python环境安装...\n",
819
+ "等待python环境安装...\n",
820
+ "等待python环境安装...\n",
821
+ "等待python环境安装...\n",
822
+ "等待python环境安装...\n",
823
+ "等待python环境安装...\n",
824
+ "Python 3.10.12\n",
825
+ "pip 23.1.2 from /root/sdwui/sd_main_dir/venv/lib/python3.10/site-packages/pip (python 3.10)\n",
826
+ "安装需要的python环境 完成\n",
827
+ "使用自定义配置 包括tag翻译 \n",
828
+ "\n",
829
+ "文件 kl-f8-anime2.vae.pt 已存在 /root/sdwui/sd_main_dir/models/VAE\n",
830
+ "当前无huggingface配置,可配置huggingface仓库和token将收藏的图片保存到huggingface仓库\n",
831
+ "加载耗时: 280.95712876319885 秒\n",
832
+ "启动\n",
833
+ "0 --port 7861\n",
834
+ "fatal: No names found, cannot describe anything.\n",
835
+ "Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]\n",
836
+ "Version: 1.6.0\n",
837
+ "Commit hash: fbf9cb020fa9a0615413bc1bb02fa42a8bf73d04\n",
838
+ "Cloning Stable Diffusion into /root/sdwui/sd_main_dir/repositories/stable-diffusion-stability-ai...\n",
839
+ "Cloning into '/root/sdwui/sd_main_dir/repositories/stable-diffusion-stability-ai'...\n",
840
+ "remote: Enumerating objects: 577, done.\u001b[K\n",
841
+ "remote: Counting objects: 100% (307/307), done.\u001b[K\n",
842
+ "remote: Compressing objects: 100% (89/89), done.\u001b[K\n"
843
+ ]
844
+ },
845
+ {
846
+ "output_type": "stream",
847
+ "name": "stderr",
848
+ "text": [
849
+ "WARNING:pyngrok.process.ngrok:t=2023-10-10T05:15:33+0000 lvl=warn msg=\"ngrok config file found at legacy location, move to XDG location\" xdg_path=/root/.config/ngrok/ngrok.yml legacy_path=/root/.ngrok2/ngrok.yml\n"
850
+ ]
851
+ },
852
+ {
853
+ "output_type": "stream",
854
+ "name": "stdout",
855
+ "text": [
856
+ "ngrok 访问地址:https://2783-35-185-179-250.ngrok-free.app\n",
857
+ "remote: Total 577 (delta 246), reused 219 (delta 218), pack-reused 270\u001b[K\n",
858
+ "Receiving objects: 100% (577/577), 73.43 MiB | 14.76 MiB/s, done.\n",
859
+ "Resolving deltas: 100% (278/278), done.\n",
860
+ "Cloning Stable Diffusion XL into /root/sdwui/sd_main_dir/repositories/generative-models...\n",
861
+ "Cloning into '/root/sdwui/sd_main_dir/repositories/generative-models'...\n",
862
+ "remote: Enumerating objects: 740, done.\u001b[K\n",
863
+ "remote: Counting objects: 100% (393/393), done.\u001b[K\n",
864
+ "remote: Compressing objects: 100% (157/157), done.\u001b[K\n",
865
+ "remote: Total 740 (delta 307), reused 236 (delta 236), pack-reused 347\u001b[K\n",
866
+ "Receiving objects: 100% (740/740), 22.31 MiB | 14.72 MiB/s, done.\n",
867
+ "Resolving deltas: 100% (378/378), done.\n",
868
+ "Cloning K-diffusion into /root/sdwui/sd_main_dir/repositories/k-diffusion...\n",
869
+ "Cloning into '/root/sdwui/sd_main_dir/repositories/k-diffusion'...\n",
870
+ "remote: Enumerating objects: 1291, done.\u001b[K\n",
871
+ "remote: Counting objects: 100% (617/617), done.\u001b[K\n",
872
+ "remote: Compressing objects: 100% (118/118), done.\u001b[K\n",
873
+ "remote: Total 1291 (delta 532), reused 557 (delta 499), pack-reused 674\u001b[K\n",
874
+ "Receiving objects: 100% (1291/1291), 245.87 KiB | 14.46 MiB/s, done.\n",
875
+ "Resolving deltas: 100% (893/893), done.\n",
876
+ "Cloning CodeFormer into /root/sdwui/sd_main_dir/repositories/CodeFormer...\n",
877
+ "Cloning into '/root/sdwui/sd_main_dir/repositories/CodeFormer'...\n",
878
+ "remote: Enumerating objects: 594, done.\u001b[K\n",
879
+ "remote: Counting objects: 100% (245/245), done.\u001b[K\n",
880
+ "remote: Compressing objects: 100% (88/88), done.\u001b[K\n",
881
+ "remote: Total 594 (delta 175), reused 173 (delta 157), pack-reused 349\u001b[K\n",
882
+ "Receiving objects: 100% (594/594), 17.31 MiB | 16.73 MiB/s, done.\n",
883
+ "Resolving deltas: 100% (286/286), done.\n",
884
+ "Cloning BLIP into /root/sdwui/sd_main_dir/repositories/BLIP...\n",
885
+ "Cloning into '/root/sdwui/sd_main_dir/repositories/BLIP'...\n",
886
+ "remote: Enumerating objects: 277, done.\u001b[K\n",
887
+ "remote: Counting objects: 100% (165/165), done.\u001b[K\n",
888
+ "remote: Compressing objects: 100% (30/30), done.\u001b[K\n",
889
+ "remote: Total 277 (delta 137), reused 136 (delta 135), pack-reused 112\u001b[K\n",
890
+ "Receiving objects: 100% (277/277), 7.03 MiB | 4.63 MiB/s, done.\n",
891
+ "Resolving deltas: 100% (152/152), done.\n",
892
+ "Launching Web UI with arguments: --device-id=0 --port 7861 --ui-config-file=/root/sdwui/temp/sd-configs/dist/ui-config.json --ui-settings-file=/root/sdwui/temp/sd-configs/dist/config.json --disable-safe-unpickle --deepdanbooru --no-hashing --no-download-sd-model --administrator --skip-torch-cuda-test --skip-version-check --disable-nan-check --opt-sdp-no-mem-attention --xformers-flash-attention --xformers --api --listen --lowram --disable-console-progressbars --no-half-vae\n",
893
+ "Checkpoint not found; loading fallback epiC.safetensors\n",
894
+ "Loading weights [None] from /root/sdwui/sd_main_dir/models/Stable-diffusion/epiC.safetensors\n",
895
+ "Running on local URL: http://0.0.0.0:7861\n",
896
+ "\n",
897
+ "To create a public link, set `share=True` in `launch()`.\n",
898
+ "Startup time: 28.4s (prepare environment: 16.0s, import torch: 5.8s, import gradio: 2.0s, setup paths: 0.7s, initialize shared: 0.3s, other imports: 1.1s, setup codeformer: 0.2s, load scripts: 0.9s, create ui: 1.0s, gradio launch: 0.2s, add APIs: 0.2s).\n",
899
+ "Creating model from config: /root/sdwui/sd_main_dir/configs/v1-inference.yaml\n",
900
+ "Downloading (…)olve/main/vocab.json: 100% 961k/961k [00:00<00:00, 2.10MB/s]\n",
901
+ "Downloading (…)olve/main/merges.txt: 100% 525k/525k [00:00<00:00, 44.3MB/s]\n",
902
+ "Downloading (…)cial_tokens_map.json: 100% 389/389 [00:00<00:00, 2.39MB/s]\n",
903
+ "Downloading (…)okenizer_config.json: 100% 905/905 [00:00<00:00, 3.99MB/s]\n",
904
+ "Downloading (…)lve/main/config.json: 100% 4.52k/4.52k [00:00<00:00, 15.7MB/s]\n",
905
+ "Couldn't find VAE named ; using None instead\n",
906
+ "Applying attention optimization: xformers... done.\n",
907
+ "Model loaded in 15.0s (load weights from disk: 6.9s, create model: 4.0s, apply weights to model: 0.4s, calculate empty prompt: 3.4s).\n"
908
+ ]
909
+ }
910
+ ]
911
+ },
912
+ {
913
+ "cell_type": "code",
914
+ "source": [
915
+ "# 打包收藏文件夹 如果需要可以取消下面两行的注释\n",
916
+ "# zipPath('$install_path/sd_main_dir/log','log')\n",
917
+ "# !mv {output_path}/log.tar {output_path}/log.tar.bak\n",
918
+ "# createOrUpdateDataSet(f'{output_path}/log.tar.bak','sd-webui-log-bak')\n",
919
+ "\n",
920
+ "# 打包 这一行的结果是 压缩一个目录,并放在 output_path: /content/ 目录下 名字是训练输出.tar\n",
921
+ "# zipPath('$install_path/sd_main_dir/textual_inversion','训练输出')\n",
922
+ "# zipPath('$install_path/sd_main_dir/outputs','outputs')\n",
923
+ "\n",
924
+ "# 打包venv并上传到数据集\n",
925
+ "# zipPath('$install_path/sd_main_dir/venv','venv')\n",
926
+ "# !mv {output_path}/venv.tar /content/venv.tar.bak\n",
927
+ "# createOrUpdateDataSet('/content/venv.tar.bak','sd-webui-venv')\n",
928
+ "\n",
929
+ "# 打包命令参考,--exclude 可以排除不需要打包的目录\n",
930
+ "# !tar -cf $output_path/webui.tar.bak --exclude=venv --exclude=extensions -C /sd_main_dir/ ."
931
+ ],
932
+ "metadata": {
933
+ "trusted": true,
934
+ "id": "JneYrfP-f_C-"
935
+ },
936
+ "execution_count": 13,
937
+ "outputs": []
938
+ }
939
+ ]
940
+ }