diff --git a/scripts/!adetailer.py b/scripts/!adetailer.py index d2b74ec..298fd95 100644 --- a/scripts/!adetailer.py +++ b/scripts/!adetailer.py @@ -6,7 +6,7 @@ import sys import traceback from contextlib import contextmanager, suppress -from copy import copy, deepcopy +from copy import copy from functools import partial from pathlib import Path from textwrap import dedent @@ -523,7 +523,7 @@ def get_i2i_p(self, p, args: ADetailerArgs, image): height=height, restore_faces=args.ad_restore_face, tiling=p.tiling, - extra_generation_params=p.extra_generation_params, + extra_generation_params=p.extra_generation_params.copy(), do_not_save_samples=True, do_not_save_grid=True, override_settings=override_settings, @@ -781,8 +781,6 @@ def _postprocess_image_inner( p2.seed = self.get_each_tap_seed(seed, j) p2.subseed = self.get_each_tap_seed(subseed, j) - p2.extra_generation_params = deepcopy(p2.extra_generation_params) - try: processed = process_images(p2) except NansException as e: