Skip to content

Commit

Permalink
move huggingface import lower
Browse files Browse the repository at this point in the history
  • Loading branch information
hollowstrawberry authored Nov 17, 2024
1 parent 0751ef2 commit 891808a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lora_Trainer_XL.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"import toml\n",
"import pathlib\n",
"from time import time\n",
"from huggingface_hub import HfFileSystem\n",
"from IPython.display import Markdown, display\n",
"\n",
"# These carry information from past executions\n",
Expand Down Expand Up @@ -549,6 +548,7 @@
" username = match.group(1)\n",
" model_name = match.group(2)\n",
" model_file = f\"{username}/{model_name}\"\n",
" from huggingface_hub import HfFileSystem\n",
" fs = HfFileSystem()\n",
" existing_folders = set(fs.ls(model_file, detail=False))\n",
" necessary_folders = [ \"scheduler\", \"text_encoder\", \"text_encoder_2\", \"tokenizer\", \"tokenizer_2\", \"unet\", \"vae\" ]\n",
Expand Down

0 comments on commit 891808a

Please sign in to comment.