diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-21 04:38:07 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-21 04:38:07 +0000 |
commit | 76ae1019b96c4673231a116f0b20bb85ebec5666 (patch) | |
tree | 72dbe23b0e02c01a60edd6c28d634ff020bbdf5e /modules/shared_options.py | |
parent | a7f18b22979338e3b3f705708e0319d738f43bf0 (diff) | |
download | stable-diffusion-webui-gfx803-76ae1019b96c4673231a116f0b20bb85ebec5666.tar.gz stable-diffusion-webui-gfx803-76ae1019b96c4673231a116f0b20bb85ebec5666.tar.bz2 stable-diffusion-webui-gfx803-76ae1019b96c4673231a116f0b20bb85ebec5666.zip |
add settings for http/https URLs in source images in api
Diffstat (limited to 'modules/shared_options.py')
-rw-r--r-- | modules/shared_options.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/shared_options.py b/modules/shared_options.py index 8630d474..5f30e8e9 100644 --- a/modules/shared_options.py +++ b/modules/shared_options.py @@ -111,6 +111,12 @@ options_templates.update(options_section(('system', "System"), { "hide_ldm_prints": OptionInfo(True, "Prevent Stability-AI's ldm/sgm modules from printing noise to console."),
}))
+options_templates.update(options_section(('API', "API"), {
+ "api_enable_requests": OptionInfo(True, "Allow http:// and https:// URLs for input images in API"),
+ "api_forbid_local_requests": OptionInfo(True, "Forbid URLs to local resources"),
+ "api_useragent": OptionInfo("", "User agent for requests"),
+}))
+
options_templates.update(options_section(('training', "Training"), {
"unload_models_when_training": OptionInfo(False, "Move VAE and CLIP to RAM when training if possible. Saves VRAM."),
"pin_memory": OptionInfo(False, "Turn on pin_memory for DataLoader. Makes training slightly faster but can increase memory usage."),
|