aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-03 14:28:30 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-03 14:28:30 +0000
commit595c827bd31773cc98eb6e87b11090960a32b2a2 (patch)
treeda1adfa7885262ae90cd79d8e0d5ecf6351d44a8 /modules/shared.py
parentf40617d6c4e366773677baa8d7f4114ba2893282 (diff)
downloadstable-diffusion-webui-gfx803-595c827bd31773cc98eb6e87b11090960a32b2a2.tar.gz
stable-diffusion-webui-gfx803-595c827bd31773cc98eb6e87b11090960a32b2a2.tar.bz2
stable-diffusion-webui-gfx803-595c827bd31773cc98eb6e87b11090960a32b2a2.zip
option to unload GFPGAN after using
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index b02c9e36..c8c2749a 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -25,6 +25,7 @@ parser.add_argument("--allow-code", action='store_true', help="allow custom scri
parser.add_argument("--medvram", action='store_true', help="enable stable diffusion model optimizations for sacrficing a little speed for low VRM usage")
parser.add_argument("--lowvram", action='store_true', help="enable stable diffusion model optimizations for sacrficing a lot of speed for very low VRM usage")
parser.add_argument("--always-batch-cond-uncond", action='store_true', help="a workaround test; may help with speed in you use --lowvram")
+parser.add_argument("--unload-gfpgan", action='store_true', help="unload GFPGAN every time after processing images. Warning: seems to cause memory leaks")
parser.add_argument("--precision", type=str, help="evaluate at this precision", choices=["full", "autocast"], default="autocast")
parser.add_argument("--share", action='store_true', help="use share=True for gradio and make the UI accessible through their site (doesn't work for me but you might have better luck)")
cmd_opts = parser.parse_args()