Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Commit ac6115b

Browse files
author
Antonio Cheong
committed
Save images to google drive only
1 parent 321e657 commit ac6115b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Diffusion_WebUI.ipynb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"#@markdown SDv2.0 and mdjrny-v4 style has been added\n",
114114
"defaultModelURLs = [\"\" ,\"https://huggingface.co/acheong08/secretAI/resolve/main/stableckpt/animefull-final-pruned/model.ckpt\", \"https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt\", \"https://huggingface.co/hakurei/waifu-diffusion-v1-3/resolve/main/wd-v1-3-float32.ckpt\", \"https://huggingface.co/Deltaadams/HentaiDiffusion/resolve/main/HD-16.ckpt\", \"https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt\", \"https://huggingface.co/runwayml/stable-diffusion-inpainting/resolve/main/sd-v1-5-inpainting.ckpt\", \"https://huggingface.co/acheong08/f222/resolve/main/f222.ckpt\", \"https://huggingface.co/acheong08/Anything/resolve/main/Anything-V3.0-pruned-fp32.ckpt\", \"https://huggingface.co/acheong08/r34/resolve/main/r34_e4.ckpt\", \"https://huggingface.co/acheong08/HassansBlend/resolve/main/HassansBlend.ckpt\", \"https://huggingface.co/stabilityai/stable-diffusion-2/resolve/main/768-v-ema.ckpt\", \"https://huggingface.co/prompthero/openjourney/resolve/main/mdjrny-v4.ckpt\"]\n",
115115
"defaultModels = [\"\" ,\"NovelAI\", \"SD1-4\", \"WaifuDiffusion\", \"HentaiDiffusion\", \"SD1-5\", \"SD-inpainting\", \"f222-NSFW\", \"Anything-V3\", \"Rule34\", \"HassansBlend\", \"SDv2-0\", \"OpenMidjourney\"]\n",
116-
"defaultModel = \"\" #@param [\"\" ,\"NovelAI\", \"SD1-4\", \"WaifuDiffusion\", \"HentaiDiffusion\", \"SD1-5\", \"SD-inpainting\", \"f222-NSFW\", \"Anything-V3\", \"Rule34\", \"HassansBlend\", \"SDv2-0\", \"OpenMidjourney\"]\n",
116+
"defaultModel = \"Anything-V3\" #@param [\"\" ,\"NovelAI\", \"SD1-4\", \"WaifuDiffusion\", \"HentaiDiffusion\", \"SD1-5\", \"SD-inpainting\", \"f222-NSFW\", \"Anything-V3\", \"Rule34\", \"HassansBlend\", \"SDv2-0\", \"OpenMidjourney\"]\n",
117117
"\n",
118118
"#@markdown # Parameters\n",
119119
"#@markdown Select this if the model is based on SD2.0\n",
@@ -194,10 +194,11 @@
194194
"\n",
195195
"if run_in_gdrive:\n",
196196
" drive.mount('/content/drive')\n",
197-
" !mkdir -p {'/content/drive/MyDrive/AI'}\n",
198-
" root_dir = \"/content/drive/MyDrive/AI\"\n",
197+
" !mkdir -p {'/content/drive/MyDrive/AI/output'}\n",
198+
" output_path = \"--img-output-dir /content/drive/MyDrive/AI/output/\"\n",
199199
"else:\n",
200200
" root_dir = \"/content\"\n",
201+
" output_path = \"\"\n",
201202
"\n",
202203
"%cd {root_dir}\n",
203204
"\n",
@@ -245,6 +246,7 @@
245246
" !git clone https://github.com/acheong08/stable-diffusion-webui\n",
246247
" %cd {root_dir}/stable-diffusion-webui/\n",
247248
" !git pull\n",
249+
" !git checkout dev\n",
248250
" %cd {root_dir}\n",
249251
" use_hypernetworks = False #@param {'type':'boolean'}\n",
250252
"\n",
@@ -281,7 +283,7 @@
281283
" %cd /content/stable-diffusion-webui\n",
282284
" !sed -i \"s/'cpu'/devices.get_optimal_device()/g\" modules/extras.py\n",
283285
" vram = \"--lowvram\"\n",
284-
" !COMMANDLINE_ARGS=\"{other_args} {vae_args} {vram} --gradio-auth {gradio_username}:{gradio_password}\" REQS_FILE=\"requirements.txt\" python launch.py\n",
286+
" !COMMANDLINE_ARGS=\"{other_args} {vae_args} {vram} --gradio-auth {gradio_username}:{gradio_password} {output_path}\" REQS_FILE=\"requirements.txt\" python launch.py\n",
285287
"\n",
286288
"install_deps()\n",
287289
"run_webui()\n",
@@ -367,4 +369,4 @@
367369
"outputs": []
368370
}
369371
]
370-
}
372+
}

0 commit comments

Comments
 (0)