Skip to content

Commit

Permalink
create links for embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
ddPn08 committed Dec 30, 2022
1 parent 092888a commit 869d6b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion automatic1111.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@
"os.makedirs(f\"{models_path}/Stable-diffusion\", exist_ok=True)\n",
"\n",
"for dir in os.listdir(models_path):\n",
" ! rm -Rf stable-diffusion-webui/models/{dir} && ln -s {models_path}/{dir} stable-diffusion-webui/models/{dir}\n",
" if dir == \"embeddings\":\n",
" ! rm -Rf stable-diffusion-webui/embeddings && ln -s {models_path}/embeddings stable-diffusion-webui/models/embeddings\n",
" else:\n",
" ! rm -Rf stable-diffusion-webui/models/{dir} && ln -s {models_path}/{dir} stable-diffusion-webui/models/{dir}\n",
"\n",
"! rm -f stable-diffusion-webui/outputs && ln -s {data_dir}/outputs stable-diffusion-webui/outputs\n",
"! rm -f stable-diffusion-webui/config.json && ln -s {config_path}/config.json stable-diffusion-webui/config.json\n",
Expand Down

0 comments on commit 869d6b8

Please sign in to comment.