codeShare commited on
Commit
9599ba8
1 Parent(s): 731aacb

Upload indexed_text_encoding_converter.ipynb

Browse files
Google Colab Notebooks/indexed_text_encoding_converter.ipynb CHANGED
@@ -71,9 +71,9 @@
71
  "# @title Make your own text_encodings .safetensor file for later use (using GPU is recommended to speed things up)\n",
72
  "\n",
73
  "# User input\n",
74
- "target = home_directory + 'text-to-image-prompts/suffix_tripple/'\n",
75
- "output_folder = home_directory + 'output/suffix_tripple/'\n",
76
- "root_filename = 'suffix_tripple'\n",
77
  "NUM_FILES = 1\n",
78
  "#--------#\n",
79
  "\n",
@@ -227,9 +227,10 @@
227
  "# @title Download the text_encodings as .zip\n",
228
  "import os\n",
229
  "%cd {home_directory}\n",
 
230
  "#os.remove(f'{home_directory}results.zip')\n",
231
  "zip_dest = f'{home_directory}results.zip'\n",
232
- "!zip -r {zip_dest} {output_folder}"
233
  ],
234
  "metadata": {
235
  "id": "cR-ed0CGhekk"
@@ -242,8 +243,16 @@
242
  "source": [
243
  "# @title Download the text_encodings to google drive as .zip\n",
244
  "from google.colab import drive\n",
245
- "drive.mount('/content/drive')\n",
246
- "zip_dest = '/content/drive/MyDrive/suffix_tripple.zip'\n",
 
 
 
 
 
 
 
 
247
  "!zip -r {zip_dest} {output_folder}"
248
  ],
249
  "metadata": {
 
71
  "# @title Make your own text_encodings .safetensor file for later use (using GPU is recommended to speed things up)\n",
72
  "\n",
73
  "# User input\n",
74
+ "target = home_directory + 'text-to-image-prompts/prefix_suffix_pairs/'\n",
75
+ "output_folder = home_directory + 'output/prefix_suffix_pairs/'\n",
76
+ "root_filename = 'prefix_suffix_pairs'\n",
77
  "NUM_FILES = 1\n",
78
  "#--------#\n",
79
  "\n",
 
227
  "# @title Download the text_encodings as .zip\n",
228
  "import os\n",
229
  "%cd {home_directory}\n",
230
+ "output_folder = '/content/output'\n",
231
  "#os.remove(f'{home_directory}results.zip')\n",
232
  "zip_dest = f'{home_directory}results.zip'\n",
233
+ "!zip -r {zip_dest} '/content/output'"
234
  ],
235
  "metadata": {
236
  "id": "cR-ed0CGhekk"
 
243
  "source": [
244
  "# @title Download the text_encodings to google drive as .zip\n",
245
  "from google.colab import drive\n",
246
+ "\n",
247
+ "output_folder = '/content/output'\n",
248
+ "#-----#\n",
249
+ "try mounted:\n",
250
+ "except:\n",
251
+ " mounted = True\n",
252
+ " drive.mount('/content/drive')\n",
253
+ "#------#\n",
254
+ "\n",
255
+ "zip_dest = '/content/drive/MyDrive/e621_and_suffixes.zip'\n",
256
  "!zip -r {zip_dest} {output_folder}"
257
  ],
258
  "metadata": {