113
113
" #@markdown SDv2.0 and mdjrny-v4 style has been added\n " ,
114
114
"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",
115
115
" 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 " ,
117
117
" \n " ,
118
118
" #@markdown # Parameters\n " ,
119
119
" #@markdown Select this if the model is based on SD2.0\n " ,
194
194
" \n " ,
195
195
" if run_in_gdrive:\n " ,
196
196
" 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 " ,
199
199
" else:\n " ,
200
200
" root_dir = \" /content\"\n " ,
201
+ " output_path = \"\"\n " ,
201
202
" \n " ,
202
203
" %cd {root_dir}\n " ,
203
204
" \n " ,
245
246
" !git clone https://github.com/acheong08/stable-diffusion-webui\n " ,
246
247
" %cd {root_dir}/stable-diffusion-webui/\n " ,
247
248
" !git pull\n " ,
249
+ " !git checkout dev\n " ,
248
250
" %cd {root_dir}\n " ,
249
251
" use_hypernetworks = False #@param {'type':'boolean'}\n " ,
250
252
" \n " ,
281
283
" %cd /content/stable-diffusion-webui\n " ,
282
284
" !sed -i \" s/'cpu'/devices.get_optimal_device()/g\" modules/extras.py\n " ,
283
285
" 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 " ,
285
287
" \n " ,
286
288
" install_deps()\n " ,
287
289
" run_webui()\n " ,
367
369
"outputs" : []
368
370
}
369
371
]
370
- }
372
+ }
0 commit comments