Upload fusion_t2i_CLIP_interrogator.ipynb
Browse files
Google Colab Jupyter Notebooks/fusion_t2i_CLIP_interrogator.ipynb
CHANGED
@@ -328,6 +328,7 @@
|
|
328 |
" try:vocab_loaded\n",
|
329 |
" except:\n",
|
330 |
" vocab_loaded = 'general'\n",
|
|
|
331 |
" _text_encodings = load_file(f'{root_filename}.safetensors')['weights'].to(torch.uint8)\n",
|
332 |
" text_encodings = torch.zeros(num_items , dim)\n",
|
333 |
" tmp = torch.ones(dim).to(dot_dtype)\n",
|
|
|
328 |
" try:vocab_loaded\n",
|
329 |
" except:\n",
|
330 |
" vocab_loaded = 'general'\n",
|
331 |
+
" %cd {encodings_folder}\n",
|
332 |
" _text_encodings = load_file(f'{root_filename}.safetensors')['weights'].to(torch.uint8)\n",
|
333 |
" text_encodings = torch.zeros(num_items , dim)\n",
|
334 |
" tmp = torch.ones(dim).to(dot_dtype)\n",
|