diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-12-31 10:02:28 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-12-31 10:02:28 +0000 |
commit | 3f401cdb644066fd43abf6642d2e53be53c73668 (patch) | |
tree | c5ac536017fb4bc1708e7c54385cd320bdb918a9 /modules/shared.py | |
parent | fef98723b2b1c7a9893ead41bbefcb36192babd6 (diff) | |
parent | 9a5c689c4960259f32cf627384ef5691ded5c017 (diff) | |
download | stable-diffusion-webui-gfx803-3f401cdb644066fd43abf6642d2e53be53c73668.tar.gz stable-diffusion-webui-gfx803-3f401cdb644066fd43abf6642d2e53be53c73668.tar.bz2 stable-diffusion-webui-gfx803-3f401cdb644066fd43abf6642d2e53be53c73668.zip |
Merge remote-tracking branch 'baai-open-internal/master' into alt-diffusion
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index c494a3b9..2b31e717 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -108,6 +108,14 @@ restricted_opts = { "outdir_txt2img_grids",
"outdir_save",
}
+from omegaconf import OmegaConf
+config = OmegaConf.load(f"{cmd_opts.config}")
+# XLMR-Large
+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
|