Skip to content

Commit

Permalink
fix: #569 no deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bing-su committed Apr 9, 2024
1 parent f39ccbf commit 218e0ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/!adetailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 218e0ce

Please sign in to comment.