mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-03-14 17:57:38 +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}"
|
||||
print(msg, file=sys.stderr)
|
||||
continue
|
||||
finally:
|
||||
p2.close()
|
||||
|
||||
self.compare_prompt(p2, processed, n=n)
|
||||
p2 = copy(i2i)
|
||||
|
||||
@@ -65,6 +65,9 @@ if TYPE_CHECKING:
|
||||
iteration: int = 1
|
||||
is_hr_pass: bool = False
|
||||
|
||||
def close(self) -> None:
|
||||
pass
|
||||
|
||||
@dataclass
|
||||
class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
|
||||
sampler: Callable | None = None
|
||||
|
||||
Reference in New Issue
Block a user