aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_samplers.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 09:04:53 +0000
committerGitHub <noreply@github.com>2023-07-16 09:04:53 +0000
commit0198eaec455157a7dc1c950708d1ec95bcf4629c (patch)
tree33d8e22448356c2f7c9455b3af17353ef497bbac /modules/sd_samplers.py
parent9d3dd64fe9e95873347710ca1df1f1e88d1908e1 (diff)
parent14cf434bc36d0ef31f31d4c6cd2bd15d7857d5c8 (diff)
downloadstable-diffusion-webui-gfx803-0198eaec455157a7dc1c950708d1ec95bcf4629c.tar.gz
stable-diffusion-webui-gfx803-0198eaec455157a7dc1c950708d1ec95bcf4629c.tar.bz2
stable-diffusion-webui-gfx803-0198eaec455157a7dc1c950708d1ec95bcf4629c.zip
Merge pull request #11757 from AUTOMATIC1111/sdxl
SD XL support
Diffstat (limited to 'modules/sd_samplers.py')
-rw-r--r--modules/sd_samplers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/sd_samplers.py b/modules/sd_samplers.py
index f22aad8f..bea2684c 100644
--- a/modules/sd_samplers.py
+++ b/modules/sd_samplers.py
@@ -28,6 +28,9 @@ def create_sampler(name, model):
assert config is not None, f'bad sampler name: {name}'
+ if model.is_sdxl and config.options.get("no_sdxl", False):
+ raise Exception(f"Sampler {config.name} is not supported for SDXL")
+
sampler = config.constructor(model)
sampler.config = config