aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_samplers.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-14 18:41:21 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-14 18:41:21 +0000
commit5dee0fa1f812cf9f5fa6675c22c9a57afad39983 (patch)
tree4f7b92c052e45b595d013d5535307b03b3a881fb /modules/sd_samplers.py
parentac2d47ff4c00b041cae3d882c2832662c2c64935 (diff)
downloadstable-diffusion-webui-gfx803-5dee0fa1f812cf9f5fa6675c22c9a57afad39983.tar.gz
stable-diffusion-webui-gfx803-5dee0fa1f812cf9f5fa6675c22c9a57afad39983.tar.bz2
stable-diffusion-webui-gfx803-5dee0fa1f812cf9f5fa6675c22c9a57afad39983.zip
add a message about unsupported samplers
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