Upload indexed_text_encoding_converter.ipynb
Browse files
Google Colab Notebooks/indexed_text_encoding_converter.ipynb
CHANGED
@@ -29,42 +29,9 @@
|
|
29 |
"cell_type": "code",
|
30 |
"execution_count": null,
|
31 |
"metadata": {
|
32 |
-
"id": "cskYkw0zXHEm"
|
33 |
-
"outputId": "40cd8c83-6619-4acf-f720-c4126b9d99e5",
|
34 |
-
"colab": {
|
35 |
-
"base_uri": "https://localhost:8080/"
|
36 |
-
}
|
37 |
},
|
38 |
-
"outputs": [
|
39 |
-
{
|
40 |
-
"output_type": "stream",
|
41 |
-
"name": "stdout",
|
42 |
-
"text": [
|
43 |
-
"/content\n",
|
44 |
-
"/content\n",
|
45 |
-
"/content/text-to-image-prompts/suffix_pairs/raw\n",
|
46 |
-
"0\n",
|
47 |
-
"100\n",
|
48 |
-
"200\n",
|
49 |
-
"300\n",
|
50 |
-
"400\n",
|
51 |
-
"500\n",
|
52 |
-
"600\n",
|
53 |
-
"700\n",
|
54 |
-
"800\n",
|
55 |
-
"900\n",
|
56 |
-
"/content/output/suffix_pairs/text\n",
|
57 |
-
"Saving segment suffix_pairs-1.json to /content/output/suffix_pairs/text/...\n",
|
58 |
-
"/content/output/suffix_pairs/text_encodings\n",
|
59 |
-
"Saving segment suffix_pairs-1.safetensors to /content/output/suffix_pairs/text_encodings/...\n",
|
60 |
-
"0\n",
|
61 |
-
"100\n",
|
62 |
-
"200\n",
|
63 |
-
"300\n",
|
64 |
-
"400\n"
|
65 |
-
]
|
66 |
-
}
|
67 |
-
],
|
68 |
"source": [
|
69 |
"# @title Make your own text_encodings .safetensor file for later use (using GPU is recommended to speed things up)\n",
|
70 |
"\n",
|
@@ -258,6 +225,19 @@
|
|
258 |
},
|
259 |
"execution_count": null,
|
260 |
"outputs": []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
}
|
262 |
]
|
263 |
}
|
|
|
29 |
"cell_type": "code",
|
30 |
"execution_count": null,
|
31 |
"metadata": {
|
32 |
+
"id": "cskYkw0zXHEm"
|
|
|
|
|
|
|
|
|
33 |
},
|
34 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
"source": [
|
36 |
"# @title Make your own text_encodings .safetensor file for later use (using GPU is recommended to speed things up)\n",
|
37 |
"\n",
|
|
|
225 |
},
|
226 |
"execution_count": null,
|
227 |
"outputs": []
|
228 |
+
},
|
229 |
+
{
|
230 |
+
"cell_type": "code",
|
231 |
+
"source": [
|
232 |
+
"from google.colab import drive\n",
|
233 |
+
"drive.mount('/content/drive')\n",
|
234 |
+
"#zip_dest = '/content/drive/MyDrive/suffix_pairs.zip'"
|
235 |
+
],
|
236 |
+
"metadata": {
|
237 |
+
"id": "zTRmgabymGI1"
|
238 |
+
},
|
239 |
+
"execution_count": null,
|
240 |
+
"outputs": []
|
241 |
}
|
242 |
]
|
243 |
}
|