aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-12-31 15:06:35 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-12-31 15:06:35 +0000
commitf34c7341720fb2059992926c9f9ae6ff25f7385b (patch)
treebe719a629f8754c206d891b1850f0b5eaf186e2e /modules/shared.py
parent3f401cdb644066fd43abf6642d2e53be53c73668 (diff)
downloadstable-diffusion-webui-gfx803-f34c7341720fb2059992926c9f9ae6ff25f7385b.tar.gz
stable-diffusion-webui-gfx803-f34c7341720fb2059992926c9f9ae6ff25f7385b.tar.bz2
stable-diffusion-webui-gfx803-f34c7341720fb2059992926c9f9ae6ff25f7385b.zip
alt-diffusion integration
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 2b31e717..715b9169 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -23,7 +23,7 @@ demo = None
sd_model_file = os.path.join(script_path, 'model.ckpt')
default_sd_model_file = sd_model_file
parser = argparse.ArgumentParser()
-parser.add_argument("--config", type=str, default=os.path.join(script_path, "v1-inference.yaml"), help="path to config which constructs model",)
+parser.add_argument("--config", type=str, default=os.path.join(script_path, "configs/v1-inference.yaml"), help="path to config which constructs model",)
parser.add_argument("--ckpt", type=str, default=sd_model_file, help="path to checkpoint of stable diffusion model; if specified, this checkpoint will be added to the list of checkpoints and loaded",)
parser.add_argument("--ckpt-dir", type=str, default=None, help="Path to directory with stable diffusion checkpoints")
parser.add_argument("--gfpgan-dir", type=str, help="GFPGAN directory", default=('./src/gfpgan' if os.path.exists('./src/gfpgan') else './GFPGAN'))
@@ -108,14 +108,6 @@ 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