aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorzhaohu xing <920232796@qq.com>2022-12-02 08:08:46 +0000
committerzhaohu xing <920232796@qq.com>2022-12-02 08:08:46 +0000
commit9c86fb8cace6d8ac0843e0ddad0ba5ae7f3148c9 (patch)
tree25b764cf7e03d1c636335704ab7da3e40f975fea /modules/shared.py
parent52cc83d36b7663a77b79fd2258d2ca871af73e55 (diff)
downloadstable-diffusion-webui-gfx803-9c86fb8cace6d8ac0843e0ddad0ba5ae7f3148c9.tar.gz
stable-diffusion-webui-gfx803-9c86fb8cace6d8ac0843e0ddad0ba5ae7f3148c9.tar.bz2
stable-diffusion-webui-gfx803-9c86fb8cace6d8ac0843e0ddad0ba5ae7f3148c9.zip
fix bug
Signed-off-by: zhaohu xing <920232796@qq.com>
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 1408dee3..ac7678c3 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -111,7 +111,11 @@ restricted_opts = {
from omegaconf import OmegaConf
config = OmegaConf.load(f"{cmd_opts.config}")
# XLMR-Large
-text_model_name = config.model.params.cond_stage_config.params.name
+try:
+ text_model_name = config.model.params.cond_stage_config.params.name
+
+except :
+ text_model_name = "stable_diffusion"
cmd_opts.disable_extension_access = (cmd_opts.share or cmd_opts.listen or cmd_opts.server_name) and not cmd_opts.enable_insecure_extension_access