diff options
author | Stephan Reinwald <me@stephan-reinwald.de> | 2022-09-12 06:44:45 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-12 07:20:38 +0000 |
commit | 655ef8e8cb3db06cccf8a43e583918ce5aa38ef1 (patch) | |
tree | 3f4701872c36914b3c8a2de3546c817434cd0072 | |
parent | ab0a79cdf40a149442a759226cf990b7f3033b01 (diff) | |
download | stable-diffusion-webui-gfx803-655ef8e8cb3db06cccf8a43e583918ce5aa38ef1.tar.gz stable-diffusion-webui-gfx803-655ef8e8cb3db06cccf8a43e583918ce5aa38ef1.tar.bz2 stable-diffusion-webui-gfx803-655ef8e8cb3db06cccf8a43e583918ce5aa38ef1.zip |
Added cmd arg to load custom ui settings file
-rw-r--r-- | modules/shared.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/shared.py b/modules/shared.py index a78c7f89..64861016 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -13,8 +13,6 @@ from modules.devices import get_optimal_device import modules.styles
import modules.interrogate
-config_filename = "config.json"
-
sd_model_file = os.path.join(script_path, 'model.ckpt')
if not os.path.exists(sd_model_file):
sd_model_file = "models/ldm/stable-diffusion-v1/model.ckpt"
@@ -42,6 +40,7 @@ parser.add_argument("--listen", action='store_true', help="launch gradio with 0. parser.add_argument("--port", type=int, help="launch gradio with given server port, you need root/admin rights for ports < 1024, defaults to 7860 if available", default=None)
parser.add_argument("--show-negative-prompt", action='store_true', help="does not do anything", default=False)
parser.add_argument("--ui-config-file", type=str, help="filename to use for ui configuration", default=os.path.join(script_path, 'ui-config.json'))
+parser.add_argument("--ui-settings-file", type=str, help="filename to use for ui settings", default=os.path.join(script_path, 'config.json'))
cmd_opts = parser.parse_args()
@@ -50,6 +49,7 @@ device = get_optimal_device() batch_cond_uncond = cmd_opts.always_batch_cond_uncond or not (cmd_opts.lowvram or cmd_opts.medvram)
parallel_processing_allowed = not cmd_opts.lowvram and not cmd_opts.medvram
+config_filename = cmd_opts.ui_settings_file
class State:
interrupted = False
|