Upload indexed_text_encoding_converter.ipynb
Browse files
indexed_text_encoding_converter.ipynb
CHANGED
|
@@ -3,7 +3,8 @@
|
|
| 3 |
"nbformat_minor": 0,
|
| 4 |
"metadata": {
|
| 5 |
"colab": {
|
| 6 |
-
"provenance": []
|
|
|
|
| 7 |
},
|
| 8 |
"kernelspec": {
|
| 9 |
"name": "python3",
|
|
@@ -11,7 +12,8 @@
|
|
| 11 |
},
|
| 12 |
"language_info": {
|
| 13 |
"name": "python"
|
| 14 |
-
}
|
|
|
|
| 15 |
},
|
| 16 |
"cells": [
|
| 17 |
{
|
|
@@ -41,10 +43,10 @@
|
|
| 41 |
"#-------#\n",
|
| 42 |
"\n",
|
| 43 |
"# User input\n",
|
| 44 |
-
"target = home_directory + 'text-to-image-prompts/names/
|
| 45 |
-
"output_folder = home_directory + 'output/
|
| 46 |
-
"root_filename = '
|
| 47 |
-
"NUM_FILES =
|
| 48 |
"#--------#\n",
|
| 49 |
"\n",
|
| 50 |
"# Setup environment\n",
|
|
@@ -195,15 +197,24 @@
|
|
| 195 |
" names_dict = {}\n",
|
| 196 |
" index = 0\n",
|
| 197 |
" #------#\n",
|
| 198 |
-
"
|
| 199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
"# @title Download the text_encodings as .zip\n",
|
| 201 |
"import os\n",
|
| 202 |
"%cd {home_directory}\n",
|
| 203 |
-
"os.remove(f'{home_directory}results.zip')\n",
|
| 204 |
"zip_dest = f'{home_directory}results.zip'\n",
|
| 205 |
"!zip -r {zip_dest} {output_folder}"
|
| 206 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
}
|
| 208 |
]
|
| 209 |
}
|
|
|
|
| 3 |
"nbformat_minor": 0,
|
| 4 |
"metadata": {
|
| 5 |
"colab": {
|
| 6 |
+
"provenance": [],
|
| 7 |
+
"gpuType": "T4"
|
| 8 |
},
|
| 9 |
"kernelspec": {
|
| 10 |
"name": "python3",
|
|
|
|
| 12 |
},
|
| 13 |
"language_info": {
|
| 14 |
"name": "python"
|
| 15 |
+
},
|
| 16 |
+
"accelerator": "GPU"
|
| 17 |
},
|
| 18 |
"cells": [
|
| 19 |
{
|
|
|
|
| 43 |
"#-------#\n",
|
| 44 |
"\n",
|
| 45 |
"# User input\n",
|
| 46 |
+
"target = home_directory + 'text-to-image-prompts/names/fullnames/'\n",
|
| 47 |
+
"output_folder = home_directory + 'output/fullnames/'\n",
|
| 48 |
+
"root_filename = 'names_fullnames_text_👱_♀️female_fullnames'\n",
|
| 49 |
+
"NUM_FILES = 9\n",
|
| 50 |
"#--------#\n",
|
| 51 |
"\n",
|
| 52 |
"# Setup environment\n",
|
|
|
|
| 197 |
" names_dict = {}\n",
|
| 198 |
" index = 0\n",
|
| 199 |
" #------#\n",
|
| 200 |
+
" #----#"
|
| 201 |
+
]
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"cell_type": "code",
|
| 205 |
+
"source": [
|
| 206 |
"# @title Download the text_encodings as .zip\n",
|
| 207 |
"import os\n",
|
| 208 |
"%cd {home_directory}\n",
|
| 209 |
+
"#os.remove(f'{home_directory}results.zip')\n",
|
| 210 |
"zip_dest = f'{home_directory}results.zip'\n",
|
| 211 |
"!zip -r {zip_dest} {output_folder}"
|
| 212 |
+
],
|
| 213 |
+
"metadata": {
|
| 214 |
+
"id": "cR-ed0CGhekk"
|
| 215 |
+
},
|
| 216 |
+
"execution_count": null,
|
| 217 |
+
"outputs": []
|
| 218 |
}
|
| 219 |
]
|
| 220 |
}
|