mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-03-14 17:57:38 +00:00
fix: minimum version 1.4.0 to 1.1.0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user