mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-04-30 19:21:33 +00:00
fix: close Processing object after generation
This commit is contained in:
@@ -557,6 +557,8 @@ class AfterDetailerScript(scripts.Script):
|
|||||||
msg = f"[-] ADetailer: 'NansException' occurred with {ordinal(n + 1)} settings.\n{e}"
|
msg = f"[-] ADetailer: 'NansException' occurred with {ordinal(n + 1)} settings.\n{e}"
|
||||||
print(msg, file=sys.stderr)
|
print(msg, file=sys.stderr)
|
||||||
continue
|
continue
|
||||||
|
finally:
|
||||||
|
p2.close()
|
||||||
|
|
||||||
self.compare_prompt(p2, processed, n=n)
|
self.compare_prompt(p2, processed, n=n)
|
||||||
p2 = copy(i2i)
|
p2 = copy(i2i)
|
||||||
|
|||||||
@@ -65,6 +65,9 @@ if TYPE_CHECKING:
|
|||||||
iteration: int = 1
|
iteration: int = 1
|
||||||
is_hr_pass: bool = False
|
is_hr_pass: bool = False
|
||||||
|
|
||||||
|
def close(self) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
|
class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
|
||||||
sampler: Callable | None = None
|
sampler: Callable | None = None
|
||||||
|
|||||||
Reference in New Issue
Block a user