fix: minimum version 1.4.0 to 1.1.0

This commit is contained in:
Dowon
2023-10-24 20:13:32 +09:00
parent cebd492613
commit 10fd2906a3
2 changed files with 13 additions and 10 deletions

View File

@@ -126,14 +126,6 @@ class AfterDetailerScript(scripts.Script):
self.controlnet_ext = None
if not hasattr(self, "before_process"):
msg = """
[-] ADetailer: `stable-diffusion-webui < 1.4.0` is no longer supported.
Please upgrade to stable-diffusion-webui >= 1.4.0.
or you can use ADetailer v23.10.1.
"""
raise RuntimeError(dedent(msg))
def __repr__(self):
return f"{self.__class__.__name__}(version={__version__})"
@@ -755,7 +747,8 @@ class AfterDetailerScript(scripts.Script):
if self.need_call_process(p):
with preseve_prompts(p):
copy_p = copy(p)
p.scripts.before_process(copy_p)
if hasattr(p.scripts, "before_process"):
p.scripts.before_process(copy_p)
p.scripts.process(copy_p)
self.write_params_txt(p)